Skip to content

Commit 1e33e0d

Browse files
wensmripard
authored andcommitted
arm64: dts: allwinner: h6: orangepi: Add device nodes for LEDs
The Orange Pi Lite 2 and Orange Pi One Plus both have two LEDs, one red and one green. These are driven directly by GPIO lines in an active high arrangement. The red LED is labeled "power", so it is set to be on by default. Note that the default drive current for the GPIO lines makes the LEDs very bright. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
1 parent 9b8d1cc commit 1e33e0d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@
2222
stdout-path = "serial0:115200n8";
2323
};
2424

25+
leds {
26+
compatible = "gpio-leds";
27+
28+
power {
29+
label = "orangepi:red:power";
30+
gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
31+
default-state = "on";
32+
};
33+
34+
status {
35+
label = "orangepi:green:status";
36+
gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
37+
};
38+
};
39+
2540
reg_vcc5v: vcc5v {
2641
/* board wide 5V supply directly from the DC jack */
2742
compatible = "regulator-fixed";

0 commit comments

Comments
 (0)