]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: shmobile: armadillo-reference: Add PWM backlight node to DT
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 11 Sep 2013 11:51:13 +0000 (13:51 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 8 Oct 2013 00:25:14 +0000 (09:25 +0900)
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts

index 9fcffc175da272a9736456fde9b70415b14ca993..8b2aab5c1d3cabb241338cb5247a6e39a132255f 100644 (file)
@@ -11,6 +11,7 @@
 /dts-v1/;
 /include/ "r8a7740.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pwm/pwm.h>
 
 / {
        model = "armadillo 800 eva reference";
                        gpios = <&pfc 177 GPIO_ACTIVE_HIGH>;
                };
        };
+
+       backlight {
+               compatible = "pwm-backlight";
+               pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>;
+               brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
+               default-brightness-level = <9>;
+               pinctrl-0 = <&backlight_pins>;
+               pinctrl-names = "default";
+       };
 };
 
 &i2c0 {
                renesas,groups = "intc_irq10";
                renesas,function = "intc";
        };
+
+       backlight_pins: backlight {
+               renesas,groups = "tpu0_to2_1";
+               renesas,function = "tpu0";
+       };
+};
+
+&tpu {
+       status = "okay";
 };