ramips: improve gpio control for Phicomm PSG1218
authorShiji Yang <yangshiji66@qq.com>
Mon, 22 Feb 2021 16:10:45 +0000 (00:10 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 23 Feb 2021 17:31:35 +0000 (18:31 +0100)
Description:
1. From key and led config setting, we can find only "uartf" and "i2c" are used
as gpio by check mt7620 datasheet. It's time to remove unused pin group.

2. PSG1218 only have three led, so we can remove ethernet led pinctrl. refer to
Phicomm K2G.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi
target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts
target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts

index 4163a9cd4382e98036c118d4127e7f9974ba784a..c3ec73b681a25df6b087be044359d039b8c88297 100644 (file)
        };
 };
 
+&state_default {
+       gpio {
+               groups = "i2c", "uartf";
+               function = "gpio";
+       };
+};
+
 &pcie {
        status = "okay";
 };
index baa0d8b261797652b7e01bef8fee5dc2ba3f70fe..d17f2fce5923a410287ed186ea98c2a1a8b9cb34 100644 (file)
@@ -5,17 +5,7 @@
        model = "Phicomm PSG1218 rev.A";
 };
 
-&state_default {
-       gpio {
-               groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
-               function = "gpio";
-       };
-};
-
 &ethernet {
-       pinctrl-names = "default";
-       pinctrl-0 = <&ephy_pins>;
-
        mtd-mac-address = <&factory 0x28>;
 
        mediatek,portmap = "llllw";
index f7e70c92c8c56bb5ebb714ac8193c3b3e020ba38..822fb13b6f4468fff5e50113616d9ccf68b9d2d9 100644 (file)
@@ -5,16 +5,6 @@
        model = "Phicomm PSG1218 rev.B";
 };
 
-&state_default {
-       gpio {
-               groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "pa";
-               function = "gpio";
-       };
-};
-
 &ethernet {
-       pinctrl-names = "default";
-       pinctrl-0 = <&ephy_pins>;
-
        mtd-mac-address = <&factory 0x28>;
 };