aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts
diff options
context:
space:
mode:
authorOleksandr Zharov <alex.zeed@gmail.com>2023-04-15 23:23:41 +0300
committerChristian Marangi <ansuelsmth@gmail.com>2023-04-17 18:59:28 +0200
commit998c34d3fee5ef8468595c809f14e21c3016326c (patch)
treefd3cbfa6f6c49fafe0100726ea2b44a6dbab04eb /target/linux/ramips/dts
parent10eb3fa35ab1eaad767308afae71891c554364c9 (diff)
downloadupstream-998c34d3fee5ef8468595c809f14e21c3016326c.tar.gz
upstream-998c34d3fee5ef8468595c809f14e21c3016326c.tar.bz2
upstream-998c34d3fee5ef8468595c809f14e21c3016326c.zip
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@gmail.com>
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r--target/linux/ramips/dts/mt7628an_xiaomi_mi-ra75.dts11
1 files changed, 11 insertions, 0 deletions
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@60000 {
label = "overlay";