Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b270a63d authored by Romain Perier's avatar Romain Perier Committed by Heiko Stuebner
Browse files

ARM: dts: rockchip: Add LEDs via gpio-leds for Radxa Rock2 Square



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: default avatarRomain Perier <romain.perier@gmail.com>
Reviewed-by: default avatarSjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 47bf3a5c
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -49,6 +49,22 @@
		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>;