]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ARM: dts: rskrza1: Add LED0 pin support
authorChris Brandt <chris.brandt@renesas.com>
Thu, 20 Jul 2017 18:20:19 +0000 (13:20 -0500)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 31 Jul 2017 15:10:11 +0000 (17:10 +0200)
Add pin configuration for LED0 which is connected to a GPIO.

Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r7s72100-rskrza1.dts

index f8285b9511409d6f4a2ad74621bb75419b1a2eac..5dcaaf131d2788ac55be89d3d4d9f9ced9beac9e 100644 (file)
@@ -10,6 +10,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";
+
+               led0 {
+                       gpios = <&port7 1 GPIO_ACTIVE_LOW>;
+               };
+       };
 };
 
 &extal_clk {