devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: sun8i: a83t: bananapi-m3: Add LED device nodes
@ 2018-01-03  6:28 Chen-Yu Tsai
       [not found] ` <20180103062844.30315-1-wens-jdAy2FN1RRM@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Chen-Yu Tsai @ 2018-01-03  6:28 UTC (permalink / raw)
  To: Maxime Ripard
  Cc: Chen-Yu Tsai, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

The Bananapi M3 has two controllable LEDs, blue and green, that are tied
to the PMIC's two GPIO pins.

Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
---
 arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
index 6550bf0e594b..78fe61d97790 100644
--- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
@@ -60,6 +60,20 @@
 		stdout-path = "serial0:115200n8";
 	};
 
+	leds {
+		compatible = "gpio-leds";
+
+		blue {
+			label = "bananapi-m3:blue:usr";
+			gpios = <&axp_gpio 1 GPIO_ACTIVE_HIGH>;
+		};
+
+		green {
+			label = "bananapi-m3:green:usr";
+			gpios = <&axp_gpio 0 GPIO_ACTIVE_HIGH>;
+		};
+	};
+
 	reg_usb1_vbus: reg-usb1-vbus {
 		compatible = "regulator-fixed";
 		regulator-name = "usb1-vbus";
-- 
2.15.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: dts: sun8i: a83t: bananapi-m3: Add LED device nodes
       [not found] ` <20180103062844.30315-1-wens-jdAy2FN1RRM@public.gmane.org>
@ 2018-01-04 14:10   ` Maxime Ripard
       [not found]     ` <20180104141042.zcsmyohzyyod6nlt-ZC1Zs529Oq4@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Maxime Ripard @ 2018-01-04 14:10 UTC (permalink / raw)
  To: Chen-Yu Tsai
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

On Wed, Jan 03, 2018 at 02:28:44PM +0800, Chen-Yu Tsai wrote:
> The Bananapi M3 has two controllable LEDs, blue and green, that are tied
> to the PMIC's two GPIO pins.
> 
> Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>

Acked-by: Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: dts: sun8i: a83t: bananapi-m3: Add LED device nodes
       [not found]     ` <20180104141042.zcsmyohzyyod6nlt-ZC1Zs529Oq4@public.gmane.org>
@ 2018-02-13  9:54       ` Chen-Yu Tsai
  0 siblings, 0 replies; 3+ messages in thread
From: Chen-Yu Tsai @ 2018-02-13  9:54 UTC (permalink / raw)
  To: Maxime Ripard; +Cc: devicetree, linux-arm-kernel

On Thu, Jan 4, 2018 at 10:10 PM, Maxime Ripard
<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote:
> On Wed, Jan 03, 2018 at 02:28:44PM +0800, Chen-Yu Tsai wrote:
>> The Bananapi M3 has two controllable LEDs, blue and green, that are tied
>> to the PMIC's two GPIO pins.
>>
>> Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
>
> Acked-by: Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>

Applied for 4.17.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-13  9:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-03  6:28 [PATCH] ARM: dts: sun8i: a83t: bananapi-m3: Add LED device nodes Chen-Yu Tsai
     [not found] ` <20180103062844.30315-1-wens-jdAy2FN1RRM@public.gmane.org>
2018-01-04 14:10   ` Maxime Ripard
     [not found]     ` <20180104141042.zcsmyohzyyod6nlt-ZC1Zs529Oq4@public.gmane.org>
2018-02-13  9:54       ` 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).