ath79: ar7241: Update dts for current ag71xx driver

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
This commit is contained in:
Chuanhong Guo 2018-07-17 17:09:14 +08:00 committed by John Crispin
parent b6c8e5deae
commit 113b4cf90f
6 changed files with 23 additions and 44 deletions

View file

@ -39,13 +39,6 @@
}; };
}; };
&mdio0 {
regmap = <&eth1>;
builtin-switch;
resets = <&rst 22>;
reset-names = "mdio";
};
&eth0 { &eth0 {
compatible = "qca,ar7241-eth", "syscon"; compatible = "qca,ar7241-eth", "syscon";
@ -53,16 +46,35 @@
resets = <&rst 8>, <&rst 9>; resets = <&rst 8>, <&rst 9>;
reset-names = "mac", "phy"; reset-names = "mac", "phy";
phy-mode = "mii";
phy-handle = <&swphy4>;
}; };
&mdio1 { &mdio1 {
status = "okay";
resets = <&rst 23>; resets = <&rst 23>;
reset-names = "mdio"; reset-names = "mdio";
builtin-switch; builtin-switch;
builtin_switch: switch0@1f {
compatible = "qca,ar8216-builtin";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x1f>;
mdio-bus {
swphy4: ethernet-phy@4 {
reg = <4>;
phy-mode = "mii";
};
};
};
}; };
&eth1 { &eth1 {
compatible = "qca,ar7241-eth", "syscon"; compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
pll-data = <0x00110000 0x00001099 0x00991099>; pll-data = <0x00110000 0x00001099 0x00991099>;

View file

@ -97,8 +97,6 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
phy-handle = <&phy4>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
mtd-mac-address-increment = <(-1)>; mtd-mac-address-increment = <(-1)>;
}; };
@ -110,15 +108,6 @@
mtd-mac-address-increment = <1>; mtd-mac-address-increment = <1>;
}; };
&mdio0 {
status = "okay";
phy4: ethernet-phy@4 {
reg = <4>;
phy-mode = "mii";
};
};
&gpio { &gpio {
status = "okay"; status = "okay";
}; };

View file

@ -9,5 +9,5 @@
}; };
&eth1 { &eth1 {
compatible = "syscon"; compatible = "syscon", "simple-mfd";
}; };

View file

@ -9,7 +9,7 @@
}; };
&eth1 { &eth1 {
compatible = "syscon"; compatible = "syscon", "simple-mfd";
}; };
&usb_phy { &usb_phy {

View file

@ -117,24 +117,14 @@
}; };
}; };
&mdio0 {
status = "okay";
phy4: ethernet-phy@4 {
reg = <4>;
phy-mode = "mii";
};
};
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; mtd-mac-address = <&art 0x0>;
phy-handle = <&phy4>;
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
compatible = "syscon"; compatible = "syscon", "simple-mfd";
}; };

View file

@ -122,22 +122,10 @@
}; };
}; };
&mdio0 {
status = "okay";
phy4: ethernet-phy@4 {
reg = <4>;
phy-mode = "mii";
};
};
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; mtd-mac-address = <&art 0x0>;
phy-mode = "mii";
phy-handle = <&phy4>;
}; };
&eth1 { &eth1 {