]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: mxs: Add backlight support for M28EVK
authorMarek Vasut <marex@denx.de>
Thu, 11 Jul 2013 19:30:16 +0000 (21:30 +0200)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 16 Jul 2013 09:43:12 +0000 (17:43 +0800)
This patch adds backlight support for M28EVK.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx28-m28evk.dts

index 44d9da57736e637ef4fcc4a113fcef651a07d58d..0d322a2bebaf5fe31e088d8b98c73f08ed4b9d7d 100644 (file)
                                pinctrl-0 = <&auart2_2pins_b>;
                                status = "okay";
                        };
+
+                       pwm: pwm@80064000 {
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&pwm4_pins_a>;
+                               status = "okay";
+                       };
                };
        };
 
                };
        };
 
+       backlight {
+               compatible = "pwm-backlight";
+               pwms = <&pwm 4 5000000>;
+               brightness-levels = <0 4 8 16 32 64 128 255>;
+               default-brightness-level = <6>;
+       };
+
        regulators {
                compatible = "simple-bus";