ARM: dts: genmai: Add user led device nodes
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Thu, 22 Jun 2017 14:54:35 +0000 (16:54 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 31 Jul 2017 15:09:53 +0000 (17:09 +0200)
Add device nodes for user leds on Genmai board.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r7s72100-genmai.dts

index 0766661d4206d9ea9b953f41a9f9e499f8e722ed..e7824f0857c66d168645021a1acfa0b318a84a8d 100644 (file)
@@ -11,6 +11,7 @@
 
 /dts-v1/;
 #include "r7s72100.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/pinctrl/r7s72100-pinctrl.h>
 
 / {
                #address-cells = <1>;
                #size-cells = <1>;
        };
+
+       leds {
+               status = "okay";
+               compatible = "gpio-leds";
+
+               led1 {
+                       gpios = <&port4 10 GPIO_ACTIVE_LOW>;
+               };
+
+               led2 {
+                       gpios = <&port4 11 GPIO_ACTIVE_LOW>;
+               };
+       };
 };
 
 &pinctrl {