Skip to contentSkip to conversation

arm64: dts: meson-gxl-s905d-phicomm-n1: add status LED

PATCH Applied Chuanhong Guo 3 participants 4 messages Mar 12, 2019 – Mar 14, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: meson-gxl-s905d-phicomm-n1: add status LED

There is a white LED on the front panel behind the logo and the manufacturer uses that LED to indicate network and USB drive status.

---
 .../boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts    | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts +10 -0
index 9a8a8a7e4b53..b5667f1fb2c8 100644
@@ -14,6 +14,16 @@
 	cvbs-connector {
 		status = "disabled";
 	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		status {
+			label = "n1:white:status";
+			gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
+			default-state = "on";
+		};
+	};
 };
 
 &cvbs_vdac_port {
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Chuanhong,

Quoted 20 lines · Chuanhong Guo

There is a white LED on the front panel behind the logo and the manufacturer uses that LED to indicate network and USB drive status.

---
 .../boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts    | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts +3 -0
index 9a8a8a7e4b53..b5667f1fb2c8 100644
@@ -14,6 +14,16 @@
 	cvbs-connector {
 		status = "disabled";
 	};
+
+	leds {
+		compatible = "gpio-leds";

arch/arm64/boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts line 29

Quoted 10 lines
arch/arm64/boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts +7 -0
+
+		status {
+			label = "n1:white:status";
+			gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
+			default-state = "on";
+		};
+	};
 };
 
 &cvbs_vdac_port {

BTW, do you know if it's possible to have a sample of the Phicomm N1 in order to be added in kernelci ?

Neil

#2 lore raw

Hi!

Quoted 3 lines · Neil Armstrong

[...]
BTW, do you know if it's possible to have a sample of the Phicomm N1 in order to be added in kernelci ?

It's easy to purchase one in China and second-handed ones are dirt cheap, but I don't think it's available worldwide.
I'm not familiar with world-wide shipping or exporting stuff so I can't help much here.

Quoted 2 lines

Neil

maintainer Applied
#3 lore raw
In reply to Neil Armstrong
Quoted 31 lines · Neil Armstrong

Hi Chuanhong,

Quoted 28 lines · Chuanhong Guo

There is a white LED on the front panel behind the logo and the manufacturer uses that LED to indicate network and USB drive status.

---
 .../boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts    | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts +10 -0
index 9a8a8a7e4b53..b5667f1fb2c8 100644
@@ -14,6 +14,16 @@
 	cvbs-connector {
 		status = "disabled";
 	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		status {
+			label = "n1:white:status";
+			gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
+			default-state = "on";
+		};
+	};
 };
 
Quoted 4 lines

arch/arm64/boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts line 29

Quoted 2 lines
arch/arm64/boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts +0 -0
 &cvbs_vdac_port {

Queued for v5.2 with Neil's tag (branch: v5.2/dt64)

Kevin