[PATCH/RFC] arm64: dts: renesas: salvator-common: gpio-leds prototype

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Magnus Damm <damm+renesas@xxxxxxxxxxxxx>

This patch adds support for a couple of LEDs on Salvator-X and XS boards.

I've verified that LED4, LED5 and LED6 work by exporting GPIOs for GP6_11,
GP6_12 and GP6_13 on the board on port 9011. This patch has not yet been
tested though. Also to make matters slightly more complicated, even if LEDs
might work with this patch as-is, the code in this patch is most likely not
suitable for upstream consumption. This since SW20, SW21 and SW22 are also
using the same GPIOs as the LEDs.

Signed-off-by: Magnus Damm <damm+renesas@xxxxxxxxxxxxx>
---

 arch/arm64/boot/dts/renesas/salvator-common.dtsi |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

--- 0001/arch/arm64/boot/dts/renesas/salvator-common.dtsi
+++ work/arch/arm64/boot/dts/renesas/salvator-common.dtsi	2020-03-18 16:18:44.234040458 +0900
@@ -166,6 +166,20 @@
 		};
 	};
 
+	leds {
+		compatible = "gpio-leds";
+
+		led4 {
+			gpios = <&gpio6 11 GPIO_ACTIVE_HIGH>;
+		};
+		led5 {
+			gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
+		};
+		led6 {
+			gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
+		};
+	};
+
 	reg_1p8v: regulator0 {
 		compatible = "regulator-fixed";
 		regulator-name = "fixed-1.8V";



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux