Commit 968f2c91 authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Maxime Ripard

ARM: dts: sunxi: Add mdio bus sub-node to GMAC

The DWMAC binding never supported having the Ethernet PHY node as a
direct child to the controller, nor did it support the "phy" property
as a way to specify which Ethernet PHY to use. What seemed to work
was simply the implementation ignoring the "phy" property and instead
probing all addresses on the MDIO bus and using the first available
one.

The recent switch from "phy" to "phy-handle" breaks the assumptions
of the implementation, and does not match what the binding requires.
The binding requires that if an MDIO bus is described, it shall be
a sub-node with the "snps,dwmac-mdio" compatible string.

Add a device node for the MDIO bus, and move the Ethernet PHY node
under it. Also fix up the #address-cells and #size-cells properties
where needed.

Fixes: de332de2 ("ARM: dts: sunxi: Switch from phy to phy-handle")
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
parent f46f408c
...@@ -79,10 +79,6 @@ &gmac { ...@@ -79,10 +79,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "rgmii"; phy-mode = "rgmii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&i2c0 { &i2c0 {
...@@ -104,6 +100,12 @@ mma8452: mma8452@1d { ...@@ -104,6 +100,12 @@ mma8452: mma8452@1d {
}; };
}; };
&mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v0>; vmmc-supply = <&reg_vcc3v0>;
bus-width = <4>; bus-width = <4>;
......
...@@ -156,13 +156,6 @@ &gmac { ...@@ -156,13 +156,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "rgmii"; phy-mode = "rgmii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
reset-gpios = <&pio 0 21 GPIO_ACTIVE_LOW>;
reset-assert-us = <10000>;
reset-deassert-us = <30000>;
};
}; };
&hdmi { &hdmi {
...@@ -199,6 +192,15 @@ &ir { ...@@ -199,6 +192,15 @@ &ir {
status = "okay"; status = "okay";
}; };
&mdio {
phy1: ethernet-phy@1 {
reg = <1>;
reset-gpios = <&pio 0 21 GPIO_ACTIVE_LOW>;
reset-assert-us = <10000>;
reset-deassert-us = <30000>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_dcdc1>; vmmc-supply = <&reg_dcdc1>;
bus-width = <4>; bus-width = <4>;
......
...@@ -120,10 +120,6 @@ &gmac { ...@@ -120,10 +120,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "mii"; phy-mode = "mii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&hdmi { &hdmi {
...@@ -142,6 +138,12 @@ &ir { ...@@ -142,6 +138,12 @@ &ir {
status = "okay"; status = "okay";
}; };
&mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -88,10 +88,6 @@ &gmac { ...@@ -88,10 +88,6 @@ &gmac {
phy-mode = "mii"; phy-mode = "mii";
phy-supply = <&reg_dldo1>; phy-supply = <&reg_dldo1>;
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&ir { &ir {
...@@ -100,6 +96,12 @@ &ir { ...@@ -100,6 +96,12 @@ &ir {
status = "okay"; status = "okay";
}; };
&mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_dcdc1>; vmmc-supply = <&reg_dcdc1>;
bus-width = <4>; bus-width = <4>;
......
...@@ -88,10 +88,6 @@ &gmac { ...@@ -88,10 +88,6 @@ &gmac {
phy-mode = "mii"; phy-mode = "mii";
phy-supply = <&reg_dldo1>; phy-supply = <&reg_dldo1>;
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&ir { &ir {
...@@ -100,6 +96,12 @@ &ir { ...@@ -100,6 +96,12 @@ &ir {
status = "okay"; status = "okay";
}; };
&mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_dcdc1>; vmmc-supply = <&reg_dcdc1>;
bus-width = <4>; bus-width = <4>;
......
...@@ -939,9 +939,13 @@ gmac: ethernet@1c30000 { ...@@ -939,9 +939,13 @@ gmac: ethernet@1c30000 {
snps,fixed-burst; snps,fixed-burst;
snps,force_sf_dma_mode; snps,force_sf_dma_mode;
status = "disabled"; status = "disabled";
mdio: mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
}; };
};
crypto: crypto-engine@1c15000 { crypto: crypto-engine@1c15000 {
compatible = "allwinner,sun6i-a31-crypto", compatible = "allwinner,sun6i-a31-crypto",
......
...@@ -70,9 +70,6 @@ &gmac { ...@@ -70,9 +70,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "mii"; phy-mode = "mii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&ir { &ir {
...@@ -81,6 +78,12 @@ &ir { ...@@ -81,6 +78,12 @@ &ir {
status = "okay"; status = "okay";
}; };
&mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&ohci1 { &ohci1 {
status = "okay"; status = "okay";
}; };
......
...@@ -119,10 +119,6 @@ &gmac { ...@@ -119,10 +119,6 @@ &gmac {
phy-mode = "mii"; phy-mode = "mii";
phy-supply = <&reg_dldo1>; phy-supply = <&reg_dldo1>;
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&hdmi { &hdmi {
...@@ -160,6 +156,12 @@ button-349 { ...@@ -160,6 +156,12 @@ button-349 {
}; };
}; };
&mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_dcdc1>; vmmc-supply = <&reg_dcdc1>;
bus-width = <4>; bus-width = <4>;
......
...@@ -96,7 +96,15 @@ &gmac { ...@@ -96,7 +96,15 @@ &gmac {
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-supply = <&reg_dldo1>; phy-supply = <&reg_dldo1>;
status = "okay"; status = "okay";
};
&ir {
pinctrl-names = "default";
pinctrl-0 = <&s_ir_rx_pin>;
status = "okay";
};
&mdio {
phy1: ethernet-phy@1 { phy1: ethernet-phy@1 {
reg = <1>; reg = <1>;
reset-gpios = <&pio 0 21 GPIO_ACTIVE_LOW>; /* PA21 */ reset-gpios = <&pio 0 21 GPIO_ACTIVE_LOW>; /* PA21 */
...@@ -105,12 +113,6 @@ phy1: ethernet-phy@1 { ...@@ -105,12 +113,6 @@ phy1: ethernet-phy@1 {
}; };
}; };
&ir {
pinctrl-names = "default";
pinctrl-0 = <&s_ir_rx_pin>;
status = "okay";
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_dcdc1>; vmmc-supply = <&reg_dcdc1>;
bus-width = <4>; bus-width = <4>;
......
...@@ -133,10 +133,6 @@ &gmac { ...@@ -133,10 +133,6 @@ &gmac {
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-supply = <&reg_gmac_3v3>; phy-supply = <&reg_gmac_3v3>;
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&hdmi { &hdmi {
...@@ -171,6 +167,12 @@ &ir0 { ...@@ -171,6 +167,12 @@ &ir0 {
status = "okay"; status = "okay";
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -135,10 +135,6 @@ &gmac { ...@@ -135,10 +135,6 @@ &gmac {
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-supply = <&reg_gmac_3v3>; phy-supply = <&reg_gmac_3v3>;
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&hdmi { &hdmi {
...@@ -171,6 +167,12 @@ &ir0 { ...@@ -171,6 +167,12 @@ &ir0 {
status = "okay"; status = "okay";
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -113,10 +113,6 @@ &gmac { ...@@ -113,10 +113,6 @@ &gmac {
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-supply = <&reg_gmac_3v3>; phy-supply = <&reg_gmac_3v3>;
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&i2c0 { &i2c0 {
...@@ -143,6 +139,12 @@ &ir0 { ...@@ -143,6 +139,12 @@ &ir0 {
status = "okay"; status = "okay";
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -118,10 +118,6 @@ &gmac { ...@@ -118,10 +118,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "mii"; phy-mode = "mii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&hdmi { &hdmi {
...@@ -161,6 +157,12 @@ &mmc0 { ...@@ -161,6 +157,12 @@ &mmc0 {
status = "okay"; status = "okay";
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&ohci0 { &ohci0 {
status = "okay"; status = "okay";
}; };
......
...@@ -153,10 +153,6 @@ &gmac { ...@@ -153,10 +153,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "rgmii"; phy-mode = "rgmii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&hdmi { &hdmi {
...@@ -194,6 +190,12 @@ &ir0 { ...@@ -194,6 +190,12 @@ &ir0 {
status = "okay"; status = "okay";
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -104,14 +104,6 @@ &gmac { ...@@ -104,14 +104,6 @@ &gmac {
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-supply = <&reg_gmac_vdd>; phy-supply = <&reg_gmac_vdd>;
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
reset-gpios = <&pio 0 17 GPIO_ACTIVE_LOW>; /* PA17 */
reset-assert-us = <10000>;
/* wait 1s after reset, otherwise fail to read phy id */
reset-deassert-us = <1000000>;
};
}; };
&i2c0 { &i2c0 {
...@@ -145,6 +137,16 @@ &ir0 { ...@@ -145,6 +137,16 @@ &ir0 {
status = "okay"; status = "okay";
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
reset-gpios = <&pio 0 17 GPIO_ACTIVE_LOW>; /* PA17 */
reset-assert-us = <10000>;
/* wait 1s after reset, otherwise fail to read phy id */
reset-deassert-us = <1000000>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v0>; vmmc-supply = <&reg_vcc3v0>;
bus-width = <4>; bus-width = <4>;
......
...@@ -119,10 +119,6 @@ &gmac { ...@@ -119,10 +119,6 @@ &gmac {
phy-mode = "mii"; phy-mode = "mii";
phy-supply = <&reg_gmac_3v3>; phy-supply = <&reg_gmac_3v3>;
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&i2c0 { &i2c0 {
...@@ -145,6 +141,12 @@ &ir0 { ...@@ -145,6 +141,12 @@ &ir0 {
status = "okay"; status = "okay";
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -79,10 +79,6 @@ &gmac { ...@@ -79,10 +79,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "mii"; phy-mode = "mii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&i2c0 { &i2c0 {
...@@ -99,6 +95,12 @@ &i2c1 { ...@@ -99,6 +95,12 @@ &i2c1 {
status = "okay"; status = "okay";
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -100,7 +100,9 @@ &gmac { ...@@ -100,7 +100,9 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "mii"; phy-mode = "mii";
status = "okay"; status = "okay";
};
&gmac_mdio {
phy1: ethernet-phy@1 { phy1: ethernet-phy@1 {
reg = <1>; reg = <1>;
}; };
......
...@@ -123,8 +123,6 @@ &gmac { ...@@ -123,8 +123,6 @@ &gmac {
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-supply = <&reg_gmac_3v3>; phy-supply = <&reg_gmac_3v3>;
status = "okay"; status = "okay";
/delete-property/#address-cells;
/delete-property/#size-cells;
fixed-link { fixed-link {
speed = <1000>; speed = <1000>;
......
...@@ -85,10 +85,6 @@ &gmac { ...@@ -85,10 +85,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "mii"; phy-mode = "mii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&i2c0 { &i2c0 {
...@@ -111,6 +107,12 @@ &ir0 { ...@@ -111,6 +107,12 @@ &ir0 {
status = "okay"; status = "okay";
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -114,10 +114,6 @@ &gmac { ...@@ -114,10 +114,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "rgmii"; phy-mode = "rgmii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&hdmi { &hdmi {
...@@ -202,6 +198,12 @@ button-1400 { ...@@ -202,6 +198,12 @@ button-1400 {
}; };
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -109,14 +109,6 @@ &gmac { ...@@ -109,14 +109,6 @@ &gmac {
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-supply = <&reg_vcc3v3>; phy-supply = <&reg_vcc3v3>;
status = "okay"; status = "okay";
phy3: ethernet-phy@3 {
reg = <3>;
reset-gpios = <&pio 0 17 GPIO_ACTIVE_LOW>; /* PA17 */
reset-assert-us = <10000>;
/* wait 1s after reset, otherwise fail to read phy id */
reset-deassert-us = <1000000>;
};
}; };
&hdmi { &hdmi {
...@@ -161,6 +153,16 @@ &ir0 { ...@@ -161,6 +153,16 @@ &ir0 {
status = "okay"; status = "okay";
}; };
&gmac_mdio {
phy3: ethernet-phy@3 {
reg = <3>;
reset-gpios = <&pio 0 17 GPIO_ACTIVE_LOW>; /* PA17 */
reset-assert-us = <10000>;
/* wait 1s after reset, otherwise fail to read phy id */
reset-deassert-us = <1000000>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -109,10 +109,6 @@ &gmac { ...@@ -109,10 +109,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "mii"; phy-mode = "mii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&hdmi { &hdmi {
...@@ -149,6 +145,12 @@ eeprom: eeprom@50 { ...@@ -149,6 +145,12 @@ eeprom: eeprom@50 {
}; };
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -114,10 +114,6 @@ &gmac { ...@@ -114,10 +114,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "rgmii"; phy-mode = "rgmii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&hdmi { &hdmi {
...@@ -154,6 +150,12 @@ &lradc { ...@@ -154,6 +150,12 @@ &lradc {
vref-supply = <&reg_vcc3v0>; vref-supply = <&reg_vcc3v0>;
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -121,10 +121,6 @@ &gmac { ...@@ -121,10 +121,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "mii"; phy-mode = "mii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&hdmi { &hdmi {
...@@ -215,6 +211,12 @@ button-1398 { ...@@ -215,6 +211,12 @@ button-1398 {
}; };
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -124,10 +124,6 @@ &gmac { ...@@ -124,10 +124,6 @@ &gmac {
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-supply = <&reg_gmac_3v3>; phy-supply = <&reg_gmac_3v3>;
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&hdmi { &hdmi {
...@@ -158,6 +154,12 @@ &ir0 { ...@@ -158,6 +154,12 @@ &ir0 {
status = "okay"; status = "okay";
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -100,10 +100,6 @@ &gmac { ...@@ -100,10 +100,6 @@ &gmac {
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-supply = <&reg_gmac_3v3>; phy-supply = <&reg_gmac_3v3>;
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&i2c0 { &i2c0 {
...@@ -124,6 +120,12 @@ &ir0 { ...@@ -124,6 +120,12 @@ &ir0 {
status = "okay"; status = "okay";
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -117,10 +117,6 @@ &gmac { ...@@ -117,10 +117,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "rgmii"; phy-mode = "rgmii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&hdmi { &hdmi {
...@@ -149,6 +145,12 @@ &ir0 { ...@@ -149,6 +145,12 @@ &ir0 {
status = "okay"; status = "okay";
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -125,10 +125,6 @@ &gmac { ...@@ -125,10 +125,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "mii"; phy-mode = "mii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&i2c0 { &i2c0 {
...@@ -149,6 +145,12 @@ &ir0 { ...@@ -149,6 +145,12 @@ &ir0 {
status = "okay"; status = "okay";
}; };
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -84,10 +84,6 @@ &gmac { ...@@ -84,10 +84,6 @@ &gmac {
phy-handle = <&phy1>; phy-handle = <&phy1>;
phy-mode = "rgmii"; phy-mode = "rgmii";
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&i2c0 { &i2c0 {
...@@ -110,6 +106,12 @@ &i2c2 { ...@@ -110,6 +106,12 @@ &i2c2 {
#include "axp209.dtsi" #include "axp209.dtsi"
&gmac_mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
......
...@@ -1437,9 +1437,13 @@ gmac: ethernet@1c50000 { ...@@ -1437,9 +1437,13 @@ gmac: ethernet@1c50000 {
snps,fixed-burst; snps,fixed-burst;
snps,force_sf_dma_mode; snps,force_sf_dma_mode;
status = "disabled"; status = "disabled";
gmac_mdio: mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
}; };
};
hstimer@1c60000 { hstimer@1c60000 {
compatible = "allwinner,sun7i-a20-hstimer"; compatible = "allwinner,sun7i-a20-hstimer";
......
...@@ -132,10 +132,6 @@ &gmac { ...@@ -132,10 +132,6 @@ &gmac {
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-supply = <&reg_cldo1>; phy-supply = <&reg_cldo1>;
status = "okay"; status = "okay";
phy1: ethernet-phy@1 {
reg = <1>;
};
}; };
&i2c3 { &i2c3 {
...@@ -144,6 +140,12 @@ &i2c3 { ...@@ -144,6 +140,12 @@ &i2c3 {
status = "okay"; status = "okay";
}; };
&mdio {
phy1: ethernet-phy@1 {
reg = <1>;
};
};
&mmc0 { &mmc0 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>; pinctrl-0 = <&mmc0_pins>;
......
...@@ -127,7 +127,9 @@ &gmac { ...@@ -127,7 +127,9 @@ &gmac {
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-supply = <&reg_cldo1>; phy-supply = <&reg_cldo1>;
status = "okay"; status = "okay";
};
&mdio {
phy1: ethernet-phy@1 { phy1: ethernet-phy@1 {
reg = <1>; reg = <1>;
}; };
......
...@@ -331,9 +331,13 @@ gmac: ethernet@830000 { ...@@ -331,9 +331,13 @@ gmac: ethernet@830000 {
snps,fixed-burst; snps,fixed-burst;
snps,force_sf_dma_mode; snps,force_sf_dma_mode;
status = "disabled"; status = "disabled";
mdio: mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
}; };
};
ehci0: usb@a00000 { ehci0: usb@a00000 {
compatible = "allwinner,sun9i-a80-ehci", "generic-ehci"; compatible = "allwinner,sun9i-a80-ehci", "generic-ehci";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment