All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: allwinner: a64: olinuxino: add user red LED
@ 2020-03-25 20:59 ` Petr Štetiar
  0 siblings, 0 replies; 10+ messages in thread
From: Petr Štetiar @ 2020-03-25 20:59 UTC (permalink / raw)
  To: Maxime Ripard, Chen-Yu Tsai, Rob Herring, Mark Rutland
  Cc: Petr Štetiar, linux-arm-kernel, devicetree, linux-kernel

There is a red LED marked as `GPIO_LED1` on the silkscreen and connected
to PE17 by default. So lets add this missing bit in the current hardware
description.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
---
 arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
index 6dfafa1c879b..b9f90e19c035 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
@@ -32,6 +32,15 @@
 		};
 	};
 
+	leds {
+		compatible = "gpio-leds";
+
+		user {
+			label = "a64-olinuxino:red:user";
+			gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */
+		};
+	};
+
 	reg_usb1_vbus: usb1-vbus {
 		compatible = "regulator-fixed";
 		regulator-name = "usb1-vbus";

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

end of thread, other threads:[~2020-03-31  9:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25 20:59 [PATCH] arm64: dts: allwinner: a64: olinuxino: add user red LED Petr Štetiar
2020-03-25 20:59 ` Petr Štetiar
2020-03-30 17:53 ` Maxime Ripard
2020-03-30 17:53   ` Maxime Ripard
2020-03-31  1:19   ` Chen-Yu Tsai
2020-03-31  1:19     ` Chen-Yu Tsai
2020-03-31  8:26     ` Petr Štetiar
2020-03-31  8:26       ` Petr Štetiar
2020-03-31  9:00     ` Maxime Ripard
2020-03-31  9:00       ` Maxime Ripard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.