Skip to contentSkip to conversation

ARM: dts: rockchip: Adding LEDs handling via leds-gpio for the Radxa Rock2 Square

PATCH New Romain Perier 3 participants 3 messages Dec 31, 2015 – Jan 9, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: dts: rockchip: Adding LEDs handling via leds-gpio for the 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.

---

Changes in v2:
- Changed labels according to what is defined in the schematics
- Added a long commit message describing this patch in details

 arch/arm/boot/dts/rk3288-rock2-square.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
arch/arm/boot/dts/rk3288-rock2-square.dts +17 -0
index c5453a0..0813428 100644
@@ -56,6 +56,23 @@
 		pinctrl-0 = <&ir_int>;
 	};
 
+	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";
+		};
+	};
+
+
 	sound {
 		compatible = "simple-audio-card";
 		simple-audio-card,name = "SPDIF";
Signature · 1 line
2.5.0
#1 lore raw

PATCH v2 1/1 ARM: dts: rockchip: Adding LEDs handling via leds-gpio for the Radxa Rock2 Square

Quoted 8 lines · Romain Perier

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.

Quoted 38 lines

---

Changes in v2:
- Changed labels according to what is defined in the schematics
- Added a long commit message describing this patch in details

?arch/arm/boot/dts/rk3288-rock2-square.dts | 17 +++++++++++++++++ ?1 file changed, 17 insertions(+)

arch/arm/boot/dts/rk3288-rock2-square.dts +0 -0
index c5453a0..0813428 100644
@@ -56,6 +56,23 @@
 ?		pinctrl-0 = <&ir_int>;
 ?	};

?

arch/arm/boot/dts/rk3288-rock2-square.dts +17 -0
+	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";
+		};
+	};
+
+

? sound {
? compatible = "simple-audio-card";
? simple-audio-card,name = "SPDIF";

Signature · 2 lines
Sjoerd Simons
Collabora Ltd.
maintainer Applied
#2 lore raw

PATCH v2 1/1 ARM: dts: rockchip: Adding LEDs handling via leds-gpio for the Radxa Rock2 Square

In reply to Romain Perier

Am Donnerstag, 31. Dezember 2015, 10:13:52 schrieb Romain Perier:

Quoted 6 lines

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.

applied to my dts32-branch for 4.6 with Sjoerd's Review

Thanks
Heiko