MT7988 add LED Blue/Green + WPS/Reset Button
Subsystems (2)
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
@@ -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
@@ -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
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.Signed-off-by EasyNetDev <[email protected]>
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
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 ButtonQuoted 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.Signed-off-by EasyNetDev <[email protected]>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