Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
};
&mdio0 {
+ status = "okay";
+
+ compatible = "qca,ar7240-mdio";
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";
+ };
+ };
+ };
};
ð0 {
resets = <&rst 8>, <&rst 9>;
reset-names = "phy", "mac";
-};
-
-&mdio1 {
- builtin-switch;
+ phy-mode = "mii";
+ phy-handle = <&swphy4>;
};
ð1 {
ð0 {
status = "okay";
- phy-handle = <&phy4>;
-
mtd-mac-address = <&uboot 0x1fc00>;
mtd-mac-address-increment = <(-1)>;
};
mtd-mac-address-increment = <1>;
};
-&mdio0 {
- status = "okay";
-
- phy4: ethernet-phy@4 {
- reg = <4>;
- phy-mode = "mii";
- };
-};
-
&pcie {
status = "okay";
ð0 {
status = "okay";
- phy-handle = <&phy4>;
-
mtd-mac-address = <&uboot 0x1fc00>;
mtd-mac-address-increment = <(-1)>;
};
mtd-mac-address-increment = <1>;
};
-&mdio0 {
- status = "okay";
-
- phy4: ethernet-phy@4 {
- reg = <4>;
- phy-mode = "mii";
- };
-};
-
&pcie {
status = "okay";