arm64: dts: allwinner: h6: Add LED device nodes for Pine H64
Subsystems (2)
PATCH 1/1 arm64: dts: allwinner: h6: Add LED device nodes for Pine H64
The Pine H64 has 3 GPIO-controlled LEDs, which are labeled "heartbeat", "link", and "status".
Add device nodes for them.
Signed-off-by Chen-Yu Tsai <[email protected]>
--- .../boot/dts/allwinner/sun50i-h6-pine-h64.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +19 -0
@@ -20,6 +20,25 @@ chosen { stdout-path = "serial0:115200n8"; }; + + leds { + compatible = "gpio-leds"; + + heartbeat { + label = "pine-h64:green:heartbeat"; + gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */ + }; + + link { + label = "pine-h64:white:link"; + gpios = <&r_pio 0 3 GPIO_ACTIVE_HIGH>; /* PL3 */ + }; + + status { + label = "pine-h64:blue:status"; + gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */ + }; + }; }; &r_i2c {
Signature · 1 line
2.17.1
PATCH 1/1 arm64: dts: allwinner: h6: Add LED device nodes for Pine H64
Quoted 7 lines · Chen-Yu Tsai
The Pine H64 has 3 GPIO-controlled LEDs, which are labeled "heartbeat", "link", and "status".
Add device nodes for them.
Signed-off-by Chen-Yu Tsai <[email protected]>---
Acked-by Maxime Ripard <[email protected]>
Thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180620/3e704fb9/attachment-0001.sig>
Chen-Yu Tsai
AppliedPATCH 1/1 arm64: dts: allwinner: h6: Add LED device nodes for Pine H64
Quoted 10 lines · Maxime Ripard
Quoted 7 lines · Chen-Yu Tsai
The Pine H64 has 3 GPIO-controlled LEDs, which are labeled "heartbeat", "link", and "status".
Add device nodes for them.
Signed-off-by Chen-Yu Tsai <[email protected]>---
Acked-by Maxime Ripard <[email protected]>
Applied.