arm64: dts: marvell: espressobin: Add support for LED2
authorPali Rohár <pali@kernel.org>
Tue, 6 Oct 2020 12:44:55 +0000 (14:44 +0200)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Sun, 29 Nov 2020 11:10:21 +0000 (12:10 +0100)
LED2 is connected to MPP1_2 pin. It is working only on V7 boards.
V5 boards have hw bug which cause that LED2 is non-working.

So enable LED2 only for Espressobin V7 boards.

Note that LED1 is connected to LED_WLAN# pin on miniPCIe card and LED3 to
power supply. Therefore on Espressobin board only LED2 can be controlled
directly from the host. LED1 is possible to control via WiFi card inserted
in miniPCIe slot if driver for particular card supports it.

Signed-off-by: Pali Rohár <pali@kernel.org>
Tested-by: Gérald Kerma <gerald@gk2.net>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7-emmc.dts
arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts
arch/arm64/boot/dts/marvell/armada-3720-espressobin.dtsi

index e225dce64b9eac442267ef40922dcfb7d6d78d38..58b94db5f65272d48c9a41e1c614eb768c99df39 100644 (file)
@@ -39,3 +39,7 @@
 &sdhci0 {
        status = "okay";
 };
+
+&led2 {
+       status = "okay";
+};
index 44dbe9a21cc7ec7ea645f8df572e617d93b9abea..b22ae550a45b8ac10deffc338c35573ed3122e3a 100644 (file)
@@ -34,3 +34,7 @@
 &switch0port3 {
        label = "wan";
 };
+
+&led2 {
+       status = "okay";
+};
index 8a1c678bea5fd7f741128b01b733205f5655a7ce..daffe136c5235471e25e1f33eb63d94f119a59b2 100644 (file)
                          3300000 0x0>;
                enable-active-high;
        };
+
+       led2: gpio-led2 {
+               /* led2 is working only on v7 board */
+               status = "disabled";
+
+               compatible = "gpio-leds";
+
+               led2 {
+                       label = "led2";
+                       gpios = <&gpionb 2 GPIO_ACTIVE_LOW>;
+                       default-state = "off";
+               };
+       };
 };
 
 /* J9 */