ramips: mt7621: add both gsw/dsa hnat support

Signed-off-by: meisreallyba <meisreallyba@gmail.com>
Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
This commit is contained in:
AmadeusGhost 2022-05-27 23:15:02 +08:00 committed by AmadeusGhost
parent c85b4ebbc1
commit 590517f040

View File

@ -439,8 +439,6 @@
};
crypto@1e004000 {
status = "okay";
compatible = "mediatek,mtk-eip93";
reg = <0x1e004000 0x1000>;
@ -448,7 +446,7 @@
interrupts = <GIC_SHARED 19 IRQ_TYPE_LEVEL_HIGH>;
};
ethsys: syscon@1e000000 {
ethsys: ethsys@1e000000 {
compatible = "mediatek,mt7621-ethsys",
"syscon";
reg = <0x1e000000 0x1000>;
@ -492,7 +490,13 @@
compatible = "mediatek,eth-mac";
reg = <1>;
status = "disabled";
phy-mode = "rgmii-rxid";
phy-mode = "rgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
mdio: mdio-bus {
@ -557,11 +561,57 @@
};
};
hnat: hnat@1e100000 {
compatible = "mediatek,mtk-hnat_v1";
ext-devices = "apcli0", "apclii0","apclix0",
"ra0", "rai0", "rax0", "wlan0", "wlan1";
reg = <0x1e100000 0x3000>;
resets = <&ethsys 0>;
reset-names = "mtketh";
mtketh-wan = "wan";
mtketh-ppd = "lan";
mtketh-lan = "lan";
mtketh-max-gmac = <1>;
mtkdsa-wan-port = <4>;
};
gsw: gsw@1e110000 {
compatible = "mediatek,mt7621-gsw";
compatible = "mediatek,mt753x";
reg = <0x1e110000 0x8000>;
interrupt-parent = <&gic>;
interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
mediatek,mcm;
mediatek,mdio = <&mdio>;
mt7530,direct-phy-access;
resets = <&rstctrl 2>;
reset-names = "mcm";
status = "disabled";
port@5 {
compatible = "mediatek,mt753x-port";
reg = <5>;
phy-mode = "rgmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@6 {
compatible = "mediatek,mt753x-port";
reg = <6>;
phy-mode = "rgmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
pcie: pcie@1e140000 {