* [PATCH] arm64: dts: allwinner: h6: Add LED device nodes for Pine H64
@ 2018-06-20 7:13 Chen-Yu Tsai
2018-06-20 8:43 ` Maxime Ripard
0 siblings, 1 reply; 3+ messages in thread
From: Chen-Yu Tsai @ 2018-06-20 7:13 UTC (permalink / raw)
To: Maxime Ripard; +Cc: devicetree, Chen-Yu Tsai, linux-arm-kernel
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 <wens@csie.org>
---
.../boot/dts/allwinner/sun50i-h6-pine-h64.dts | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts
index b6f2d6b2ecae..2e97173c9204 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts
@@ -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 {
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: dts: allwinner: h6: Add LED device nodes for Pine H64
2018-06-20 7:13 [PATCH] arm64: dts: allwinner: h6: Add LED device nodes for Pine H64 Chen-Yu Tsai
@ 2018-06-20 8:43 ` Maxime Ripard
2018-06-26 3:29 ` Chen-Yu Tsai
0 siblings, 1 reply; 3+ messages in thread
From: Maxime Ripard @ 2018-06-20 8:43 UTC (permalink / raw)
To: Chen-Yu Tsai; +Cc: devicetree, linux-arm-kernel
[-- Attachment #1.1: Type: text/plain, Size: 445 bytes --]
On Wed, Jun 20, 2018 at 03:13:41PM +0800, Chen-Yu Tsai wrote:
> 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 <wens@csie.org>
> ---
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Thanks!
Maxime
--
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: dts: allwinner: h6: Add LED device nodes for Pine H64
2018-06-20 8:43 ` Maxime Ripard
@ 2018-06-26 3:29 ` Chen-Yu Tsai
0 siblings, 0 replies; 3+ messages in thread
From: Chen-Yu Tsai @ 2018-06-26 3:29 UTC (permalink / raw)
To: Maxime Ripard; +Cc: devicetree, linux-arm-kernel
On Wed, Jun 20, 2018 at 4:43 PM, Maxime Ripard
<maxime.ripard@bootlin.com> wrote:
> On Wed, Jun 20, 2018 at 03:13:41PM +0800, Chen-Yu Tsai wrote:
>> 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 <wens@csie.org>
>> ---
>
> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-06-26 3:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-20 7:13 [PATCH] arm64: dts: allwinner: h6: Add LED device nodes for Pine H64 Chen-Yu Tsai
2018-06-20 8:43 ` Maxime Ripard
2018-06-26 3:29 ` Chen-Yu Tsai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).