From 998c34d3fee5ef8468595c809f14e21c3016326c Mon Sep 17 00:00:00 2001 From: Oleksandr Zharov Date: Sat, 15 Apr 2023 23:23:41 +0300 Subject: 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 --- target/linux/ramips/dts/mt7628an_xiaomi_mi-ra75.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'target/linux') 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"; -- cgit v1.2.3