Commit 1632fbde authored by Philip Avinash's avatar Philip Avinash Committed by Benoit Cousson

ARM: dts: AM33XX: Add PWM backlight DT data to am335x-evmsk

PWM output from ecap2 uses as backlight source. Also adds low threshold
value to have a uniform divisions in brightness-levels scales with
inverse polarity.
Signed-off-by: default avatarPhilip Avinash <avinashphilip@ti.com>
Reviewed-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarBenoit Cousson <benoit.cousson@linaro.org>
parent 6993fd01
...@@ -71,6 +71,12 @@ clkout2_pin: pinmux_clkout2_pin { ...@@ -71,6 +71,12 @@ clkout2_pin: pinmux_clkout2_pin {
0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */ 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
>; >;
}; };
ecap2_pins: backlight_pins {
pinctrl-single,pins = <
0x19c 0x4 /* mcasp0_ahclkr.ecap2_in_pwm2_out MODE4 */
>;
};
}; };
ocp { ocp {
...@@ -120,6 +126,16 @@ lis331dlh: lis331dlh@18 { ...@@ -120,6 +126,16 @@ lis331dlh: lis331dlh@18 {
st,max-limit-z = <750>; st,max-limit-z = <750>;
}; };
}; };
epwmss2: epwmss@48304000 {
status = "okay";
ecap2: ecap@48304100 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&ecap2_pins>;
};
};
}; };
vbat: fixedregulator@0 { vbat: fixedregulator@0 {
...@@ -199,6 +215,13 @@ switch@4 { ...@@ -199,6 +215,13 @@ switch@4 {
gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
}; };
}; };
backlight {
compatible = "pwm-backlight";
pwms = <&ecap2 0 50000 1>;
brightness-levels = <0 58 61 66 75 90 125 170 255>;
default-brightness-level = <8>;
};
}; };
#include "tps65910.dtsi" #include "tps65910.dtsi"
......
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