Skip to contentSkip to conversation

MT7988 add LED Blue/Green + WPS/Reset Button

PATCH In review EasyNetDev 3 participants 3 messages Sep 20, 2025 – Sep 22, 2025

Subsystems (2)
lore
Share & tools
lore

EasyNetDev

author
#0 lore raw

PATCH 1/1 MT7988 add LED Blue/Green + WPS/Reset Button

MT7988 is missing LED Blue and Green from DTS.
EEPROM is hard wired to LED Green and you can't use it without LED support.
WPS/Reset button is just for future customization of the U-Boot booting.

---
 arch/arm/dts/mt7988-rfb.dts    | 23 +++++++++++++++++++++++
 arch/arm/dts/mt7988-sd-rfb.dts | 23 +++++++++++++++++++++++
 2 files changed, 46 insertions(+)
arch/arm/dts/mt7988-rfb.dts +23 -0
index 1694ef8d9c3..1a2a0bd7d70 100644
@@ -38,6 +38,29 @@
 		regulator-boot-on;
 		regulator-always-on;
 	};
+
+	keys {
+		compatible = "gpio-keys";
+
+		wps {
+			label = "wps/reset";
+				gpios = <&pio 14 GPIO_ACTIVE_LOW>;
+			};
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		led_status_green: green {
+			label = "green:status";
+			gpios = <&pio 79 GPIO_ACTIVE_HIGH>;
+		};
+
+		led_status_blue: blue {
+			label = "blue:status";
+			gpios = <&pio 63 GPIO_ACTIVE_HIGH>;
+		};
+	};
 };
 
 &uart0 {
arch/arm/dts/mt7988-sd-rfb.dts +23 -0
index 63e923137c2..de24ae2d1c4 100644
@@ -29,6 +29,29 @@
 		regulator-boot-on;
 		regulator-always-on;
 	};
+
+	keys {
+		compatible = "gpio-keys";
+
+		wps {
+			label = "wps/reset";
+				gpios = <&pio 14 GPIO_ACTIVE_LOW>;
+			};
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		led_status_green: green {
+			label = "green:status";
+			gpios = <&pio 79 GPIO_ACTIVE_HIGH>;
+		};
+
+		led_status_blue: blue {
+			label = "blue:status";
+			gpios = <&pio 63 GPIO_ACTIVE_HIGH>;
+		};
+	};
 };
 
 &uart0 {
Signature · 1 line
2.51.0
#1 lore raw

Hi

Quoted 6 lines

Gesendet: Samstag, 20. September 2025 um 18:35
Von: EasyNetDev <[email protected]>
An: [email protected]
CC: EasyNetDev <[email protected]>
Betreff: [PATCH] MT7988 add LED Blue/Green + WPS/Reset Button

Quoted 6 lines

MT7988 is missing LED Blue and Green from DTS.
EEPROM is hard wired to LED Green and you can't use it without LED support.
WPS/Reset button is just for future customization of the U-Boot booting.

please use real name here :)

Quoted 4 lines
---
 arch/arm/dts/mt7988-rfb.dts    | 23 +++++++++++++++++++++++
 arch/arm/dts/mt7988-sd-rfb.dts | 23 +++++++++++++++++++++++
 2 files changed, 46 insertions(+)

i'm not sure if RFB (which dts you are patching) has also green/blue led and the buttons.

If you really need this, you have to create an own devicetree for BPI-R4 (i guess you are using this board).

btw. in uboot eeprom can be written without setting the green led...somehow pinctrl driver behaves differently (or pin is already initialized to work).

regards Frank

#2 lore raw
Quoted 22 lines · Frank Wunderlich

External email : Please do not click links or open attachments until you have verified the sender or the content.

Hi

Quoted 6 lines

Gesendet: Samstag, 20. September 2025 um 18:35
Von: EasyNetDev <[email protected]>
An: [email protected]
CC: EasyNetDev <[email protected]>
Betreff: [PATCH] MT7988 add LED Blue/Green + WPS/Reset Button

Quoted 7 lines

MT7988 is missing LED Blue and Green from DTS.
EEPROM is hard wired to LED Green and you can't use it without LED support.
WPS/Reset button is just for future customization of the U-Boot booting.

please use real name here :)

Quoted 7 lines
Quoted 4 lines
---
 arch/arm/dts/mt7988-rfb.dts    | 23 +++++++++++++++++++++++
 arch/arm/dts/mt7988-sd-rfb.dts | 23 +++++++++++++++++++++++
 2 files changed, 46 insertions(+)

i'm not sure if RFB (which dts you are patching) has also green/blue led and the buttons.

All MediaTek's RFBs have no LEDs. We discourage defining LEDs/buttons in the RFB dts files.

Quoted 11 lines

If you really need this, you have to create an own devicetree for BPI-R4 (i guess you are
using this board).

btw. in uboot eeprom can be written without setting the green led...somehow pinctrl driver
behaves differently (or pin is already initialized to work).

regards Frank