ARM: dts: gose: Add GPIO leds to DT
authorSimon Horman <horms+renesas@verge.net.au>
Wed, 18 Nov 2015 22:20:35 +0000 (14:20 -0800)
committerSimon Horman <horms+renesas@verge.net.au>
Sun, 24 Jan 2016 23:55:00 +0000 (08:55 +0900)
Instantiate the GPIO leds in the gose device tree.

Based on similar work for the koelsch board by Magnus Damm.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Tested-by: Magnus Damm <damm+renesas@opensource.se>
arch/arm/boot/dts/r8a7793-gose.dts

index ccbc1c66cc6c70311e010f71b4dadb17032276ed..90b587c3c73687282582590e0986eb3e58b8790d 100644 (file)
                        debounce-interval = <20>;
                };
        };
+
+       leds {
+               compatible = "gpio-leds";
+               led6 {
+                       gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
+                       label = "LED6";
+               };
+               led7 {
+                       gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
+                       label = "LED7";
+               };
+               led8 {
+                       gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
+                       label = "LED8";
+               };
+       };
 };
 
 &extal_clk {