Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
-&mdio0 {
- regmap = <ð1>;
- builtin-switch;
- resets = <&rst 22>;
- reset-names = "mdio";
-};
-
ð0 {
compatible = "qca,ar7241-eth", "syscon";
ð0 {
compatible = "qca,ar7241-eth", "syscon";
resets = <&rst 8>, <&rst 9>;
reset-names = "mac", "phy";
resets = <&rst 8>, <&rst 9>;
reset-names = "mac", "phy";
+ phy-mode = "mii";
+ phy-handle = <&swphy4>;
resets = <&rst 23>;
reset-names = "mdio";
builtin-switch;
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";
+ };
+ };
+ };
- compatible = "qca,ar7241-eth", "syscon";
+ compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
pll-data = <0x00110000 0x00001099 0x00991099>;
pll-data = <0x00110000 0x00001099 0x00991099>;
- phy-handle = <&phy4>;
-
mtd-mac-address = <&uboot 0x1fc00>;
mtd-mac-address-increment = <(-1)>;
};
mtd-mac-address = <&uboot 0x1fc00>;
mtd-mac-address-increment = <(-1)>;
};
mtd-mac-address-increment = <1>;
};
mtd-mac-address-increment = <1>;
};
-&mdio0 {
- status = "okay";
-
- phy4: ethernet-phy@4 {
- reg = <4>;
- phy-mode = "mii";
- };
-};
-
&gpio {
status = "okay";
};
&gpio {
status = "okay";
};
+ compatible = "syscon", "simple-mfd";
+ compatible = "syscon", "simple-mfd";
-&mdio0 {
- status = "okay";
-
- phy4: ethernet-phy@4 {
- reg = <4>;
- phy-mode = "mii";
- };
-};
-
ð0 {
status = "okay";
mtd-mac-address = <&art 0x0>;
ð0 {
status = "okay";
mtd-mac-address = <&art 0x0>;
};
ð1 {
status = "okay";
};
ð1 {
status = "okay";
+ compatible = "syscon", "simple-mfd";
-&mdio0 {
- status = "okay";
-
- phy4: ethernet-phy@4 {
- reg = <4>;
- phy-mode = "mii";
- };
-};
-
ð0 {
status = "okay";
mtd-mac-address = <&art 0x0>;
ð0 {
status = "okay";
mtd-mac-address = <&art 0x0>;
-
- phy-mode = "mii";
- phy-handle = <&phy4>;