ramips: add Xiaomi RA75 red signal led
authorOleksandr Zharov <alex.zeed@gmail.com>
Sat, 15 Apr 2023 20:23:41 +0000 (23:23 +0300)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 17 Apr 2023 16:59:28 +0000 (18:59 +0200)
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>
target/linux/ramips/dts/mt7628an_xiaomi_mi-ra75.dts

index 78653344896a239aa01f5170032afd6221ef4c63..173bcd992d73e7f1c33a1643322f91865c690f1d 100644 (file)
                        label = "amber:signal";
                        gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
                };
+               led_signal_red: signal_red {
+                       label = "red:signal";
+                       gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
+               };
        };
 
        keys {
 
 };
 
+&state_default {
+       gpio {
+               groups = "gpio", "refclk", "wdt", "wled_an", "uart1";
+               function = "gpio";
+       };
+};
+
 &partitions {
        partition@60000 {
                label = "overlay";