Commit 2e3a9385 authored by Sourav Poddar's avatar Sourav Poddar Committed by Benoit Cousson

ARM: dts: am43x-epos-evm: Add pwm backlight support.

Add pwm backlight support for am43x epos evm.
Signed-off-by: default avatarSourav Poddar <sourav.poddar@ti.com>
Signed-off-by: default avatarBenoit Cousson <bcousson@baylibre.com>
parent aa842305
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "am4372.dtsi" #include "am4372.dtsi"
#include <dt-bindings/pinctrl/am43xx.h> #include <dt-bindings/pinctrl/am43xx.h>
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pwm/pwm.h>
/ { / {
model = "TI AM43x EPOS EVM"; model = "TI AM43x EPOS EVM";
...@@ -79,6 +80,12 @@ i2c0_pins: pinmux_i2c0_pins { ...@@ -79,6 +80,12 @@ i2c0_pins: pinmux_i2c0_pins {
0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ 0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */
>; >;
}; };
ecap0_pins: backlight_pins {
pinctrl-single,pins = <
0x164 MUX_MODE0 /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
>;
};
}; };
matrix_keypad: matrix_keypad@0 { matrix_keypad: matrix_keypad@0 {
...@@ -113,6 +120,13 @@ &gpio2 18 GPIO_ACTIVE_HIGH /* Bank2, pin18 */ ...@@ -113,6 +120,13 @@ &gpio2 18 GPIO_ACTIVE_HIGH /* Bank2, pin18 */
0x0203006c /* DOWN */ 0x0203006c /* DOWN */
0x03030069>; /* LEFT */ 0x03030069>; /* LEFT */
}; };
backlight {
compatible = "pwm-backlight";
pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;
brightness-levels = <0 51 53 56 62 75 101 152 255>;
default-brightness-level = <8>;
};
}; };
&mmc1 { &mmc1 {
...@@ -184,3 +198,13 @@ &gpio2 { ...@@ -184,3 +198,13 @@ &gpio2 {
&gpio3 { &gpio3 {
status = "okay"; status = "okay";
}; };
&epwmss0 {
status = "okay";
};
&ecap0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&ecap0_pins>;
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment