};
};
-&mdio0 {
- regmap = <ð1>;
- builtin-switch;
- resets = <&rst 22>;
- reset-names = "mdio";
-};
-
ð0 {
compatible = "qca,ar7241-eth", "syscon";
resets = <&rst 8>, <&rst 9>;
reset-names = "mac", "phy";
+ phy-mode = "mii";
+ phy-handle = <&swphy4>;
};
&mdio1 {
+ status = "okay";
+
resets = <&rst 23>;
reset-names = "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";
+ };
+ };
+ };
};
ð1 {
- compatible = "qca,ar7241-eth", "syscon";
+ compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
pll-data = <0x00110000 0x00001099 0x00991099>;