ramips: improve GPIO pin control for HC5x61
authorShiji Yang <yangshiji66@qq.com>
Mon, 1 Mar 2021 06:35:12 +0000 (14:35 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 19 Mar 2021 00:25:26 +0000 (01:25 +0100)
HC5661 does not have USB port, remove usb power control pin.
HC5x61 do not have LAN LEDs, remove ethernet LED control pin.
Only HC5861 has PA in 2.4G channel.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts
target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi

index 5b6777998413225f5e90195cb690d1020059d0c1..d1a7f69e176549b3dc9619f09e1afcb3c3f0217a 100644 (file)
                        linux,default-trigger = "phy0tpt";
                };
        };
+
+       gpio_export {
+               compatible = "gpio-export";
+               #size-cells = <0>;
+
+               usbpower {
+                       gpio-export,name = "usbpower";
+                       gpio-export,output = <1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
+               };
+       };
 };
 
 &ehci {
index 08163e56ba8c519c697ed71b797222857044cda1..d77df2158c7bb053fbafb2b1ac4c328ef56a79fa 100644 (file)
                ieee80211-freq-limit = <5000000 6000000>;
        };
 };
+
+&wmac {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pa_pins>;
+};
index 8d5d8e95eee89bc98f5a3507bc3990aee6f4c8a4..369e40731926f258390febacfa9a8f658cfb80ee 100644 (file)
                        linux,code = <KEY_RESTART>;
                };
        };
-
-       gpio_export {
-               compatible = "gpio-export";
-               #size-cells = <0>;
-
-               usbpower {
-                       gpio-export,name = "usbpower";
-                       gpio-export,output = <1>;
-                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
-               };
-       };
-};
-
-&sysc {
-       ralink,gpiomux = "i2c", "jtag";
-       ralink,uartmux = "gpio";
-       ralink,wdtmux = <1>;
 };
 
 &gpio3 {
 };
 
 &ethernet {
-       pinctrl-names = "default";
-       pinctrl-0 = <&ephy_pins>;
-
        mtd-mac-address = <&factory 0x4>;
 
        mediatek,portmap = "wllll";
 
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
-       pinctrl-names = "default";
-       pinctrl-0 = <&pa_pins>;
 };
 
 &state_default {