]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: rockchip: Add LEDs via gpio-leds for Radxa Rock2 Square
authorRomain Perier <romain.perier@gmail.com>
Thu, 31 Dec 2015 09:13:52 +0000 (10:13 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 24 Jan 2016 22:28:23 +0000 (23:28 +0100)
Describe the two user-controllable LEDs on Rock2 Square boards.
All information have been retrieved from the schematics and the vendor
devicetree. The default-triggers mimic the behaviour of the vendor-kernel to
keep functionalities in sync.

Signed-off-by: Romain Perier <romain.perier@gmail.com>
Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rk3288-rock2-square.dts

index c5453a0b07fca940227c8f24a92b838cbe43219d..bcaf868a76bb00406b1a596e26d0c67231cc39f1 100644 (file)
                stdout-path = "serial2:115200n8";
        };
 
+       gpio-leds {
+               compatible = "gpio-leds";
+
+               heartbeat {
+                       gpios = <&gpio7 15 GPIO_ACTIVE_LOW>;
+                       label = "rock2:green:state1";
+                       linux,default-trigger = "heartbeat";
+               };
+
+               mmc {
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+                       label = "rock2:blue:state2";
+                       linux,default-trigger = "mmc0";
+               };
+       };
+
        ir: ir-receiver {
                compatible = "gpio-ir-receiver";
                gpios = <&gpio8 1 GPIO_ACTIVE_LOW>;