[PATCH] MT7988 add LED Blue/Green + WPS/Reset Button
EasyNetDev
devel at easynet.dev
Sat Sep 20 18:35:33 CEST 2025
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 <devel at easynet.dev>
---
arch/arm/dts/mt7988-rfb.dts | 23 +++++++++++++++++++++++
arch/arm/dts/mt7988-sd-rfb.dts | 23 +++++++++++++++++++++++
2 files changed, 46 insertions(+)
diff --git a/arch/arm/dts/mt7988-rfb.dts b/arch/arm/dts/mt7988-rfb.dts
index 1694ef8d9c3..1a2a0bd7d70 100644
--- a/arch/arm/dts/mt7988-rfb.dts
+++ b/arch/arm/dts/mt7988-rfb.dts
@@ -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 {
diff --git a/arch/arm/dts/mt7988-sd-rfb.dts b/arch/arm/dts/mt7988-sd-rfb.dts
index 63e923137c2..de24ae2d1c4 100644
--- a/arch/arm/dts/mt7988-sd-rfb.dts
+++ b/arch/arm/dts/mt7988-sd-rfb.dts
@@ -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 {
--
2.51.0
More information about the U-Boot
mailing list