]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ramips: add missing LEDs and modem control for ASUS 4G-AX56 17927/head
authorHenrik Ginstmark <henrik@ginstmark.se>
Sun, 9 Feb 2025 19:22:43 +0000 (20:22 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 17 Mar 2025 14:13:42 +0000 (15:13 +0100)
Add missing LEDs and modem control for ASUS 4G-AX56
 - wifi2.4G white
 - wifi5G   white
 - wan      two-coloured, white and red
 - modem    four-coloured white, blue, yellow and red
   change
      label = "xxxx:modem";
   to
      color = <LED_COLOR_ID_xxxx>;
      function = LED_FUNCTION_MOBILE;
 - rssi-1   white
 - rssi-2   white
 - rssi-3   white

and modem reboot and reset

Combined into one commit

Signed-off-by: Henrik Ginstmark <henrik@ginstmark.se>
Link: https://github.com/openwrt/openwrt/pull/17927
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ramips/dts/mt7621_asus_4g-ax56.dts

index 159feeb9dc2bb9fc435f4d426e0720a3f3a656f5..1d20e1c680cd6aedc8f0d4d054ab17ce5c61bb31 100755 (executable)
                        function = LED_FUNCTION_POWER;
                        gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
                };
+
+               wlan2g {
+                       color = <LED_COLOR_ID_WHITE>;
+                       function = LED_FUNCTION_WLAN_2GHZ;
+                       gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "phy0tpt";
+               };
+
+               wlan5g {
+                       color = <LED_COLOR_ID_WHITE>;
+                       function = LED_FUNCTION_WLAN_5GHZ;
+                       gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "phy1tpt";
+               };
+
+               wan_white {
+                       color = <LED_COLOR_ID_WHITE>;
+                       function = LED_FUNCTION_WAN;
+                       gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
+               };
+
+               wan_red {
+                       color = <LED_COLOR_ID_RED>;
+                       function = LED_FUNCTION_WAN;
+                       gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
+               };
+
+               modem_red {
+                       color = <LED_COLOR_ID_RED>;
+                       function = LED_FUNCTION_MOBILE;
+                       gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
+               };
+
+               modem_yellow {
+                       color = <LED_COLOR_ID_YELLOW>;
+                       function = LED_FUNCTION_MOBILE;
+                       gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
+               };
+
+               modem_blue {
+                       color = <LED_COLOR_ID_BLUE>;
+                       function = LED_FUNCTION_MOBILE;
+                       gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
+               };
+
+               modem_white {
+                       color = <LED_COLOR_ID_WHITE>;
+                       function = LED_FUNCTION_MOBILE;
+                       gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
+               };
+
+               rssi_1 {
+                       label = "white:rssi-1";
+                       gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
+               };
+
+               rssi_2 {
+                       label = "white:rssi-2";
+                       gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
+               };
+
+               rssi_3 {
+                       label = "white:rssi-3";
+                       gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
+               };
        };
 
        keys {
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
+
+       gpio-export {
+               compatible = "gpio-export";
+
+               modem_reboot {
+                       gpio-export,name = "reboot:modem";
+                       gpio-export,output = <1>;
+                       gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
+               };
+
+               modem_reset {
+                       gpio-export,name = "reset:modem";
+                       gpio-export,output = <1>;
+                       gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
+               };
+       };
 };
 
 &nand {