1
0
Fork 0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-03 13:26:18 +02:00

ramips: improve gpio control for Phicomm PSG1218

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>
This commit is contained in:
Shiji Yang 2021-02-23 00:10:45 +08:00 committed by Adrian Schmutzler
parent fde9703a48
commit d1176ad95a
3 changed files with 7 additions and 20 deletions

View File

@ -84,6 +84,13 @@
};
};
&state_default {
gpio {
groups = "i2c", "uartf";
function = "gpio";
};
};
&pcie {
status = "okay";
};

View 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";

View 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>;
};