[openwrt/openwrt] ramips: add Xiaomi RA75 red signal led
LEDE Commits
lede-commits at lists.infradead.org
Mon Apr 17 10:00:23 PDT 2023
ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/998c34d3fee5ef8468595c809f14e21c3016326c
commit 998c34d3fee5ef8468595c809f14e21c3016326c
Author: Oleksandr Zharov <alex.zeed at gmail.com>
AuthorDate: Sat Apr 15 23:23:41 2023 +0300
ramips: add Xiaomi RA75 red signal led
RA75 has 5 physical LEDs under 2 indicators, mixed with light pipes:
Indicator "System":
GPIO0: blue
GPIO2: amber
Indicator "Signal":
GPIO44: blue
GPIO37: amber
GPIO46: red
All except GPIO46 were already added by Jo Deisenhofer. GPIO46 is used for UART1 by
default, so it needs additional pin control change in devicetree to be operational.
Verified on my RA75.
Signed-off-by: Oleksandr Zharov <alex.zeed at gmail.com>
---
target/linux/ramips/dts/mt7628an_xiaomi_mi-ra75.dts | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_mi-ra75.dts b/target/linux/ramips/dts/mt7628an_xiaomi_mi-ra75.dts
index 7865334489..173bcd992d 100644
--- a/target/linux/ramips/dts/mt7628an_xiaomi_mi-ra75.dts
+++ b/target/linux/ramips/dts/mt7628an_xiaomi_mi-ra75.dts
@@ -32,6 +32,10 @@
label = "amber:signal";
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
+ led_signal_red: signal_red {
+ label = "red:signal";
+ gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
+ };
};
keys {
@@ -51,6 +55,13 @@
};
+&state_default {
+ gpio {
+ groups = "gpio", "refclk", "wdt", "wled_an", "uart1";
+ function = "gpio";
+ };
+};
+
&partitions {
partition at 60000 {
label = "overlay";
More information about the lede-commits
mailing list