From: Oleksandr Zharov Date: Sat, 15 Apr 2023 20:23:41 +0000 (+0300) Subject: ramips: add Xiaomi RA75 red signal led X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=998c34d3fee5ef8468595c809f14e21c3016326c;p=openwrt%2Fstaging%2Fblocktrron.git 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 --- 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";