ARM: dts: sun8i: a83t: bananapi-m3: Add LED device nodes
authorChen-Yu Tsai <wens@csie.org>
Wed, 3 Jan 2018 06:28:44 +0000 (14:28 +0800)
committerChen-Yu Tsai <wens@csie.org>
Tue, 13 Feb 2018 11:13:26 +0000 (19:13 +0800)
The Bananapi M3 has two controllable LEDs, blue and green, that are tied
to the PMIC's two GPIO pins.

Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts

index 6550bf0..78fe61d 100644 (file)
                stdout-path = "serial0:115200n8";
        };
 
+       leds {
+               compatible = "gpio-leds";
+
+               blue {
+                       label = "bananapi-m3:blue:usr";
+                       gpios = <&axp_gpio 1 GPIO_ACTIVE_HIGH>;
+               };
+
+               green {
+                       label = "bananapi-m3:green:usr";
+                       gpios = <&axp_gpio 0 GPIO_ACTIVE_HIGH>;
+               };
+       };
+
        reg_usb1_vbus: reg-usb1-vbus {
                compatible = "regulator-fixed";
                regulator-name = "usb1-vbus";