Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: de332de26d19 ("ARM: dts: sunxi: Switch from phy to phy-handle")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>

authored by

Chen-Yu Tsai and committed by
Maxime Ripard
968f2c91 f46f408c

+204 -133
+6 -4
arch/arm/boot/dts/sun6i-a31-colombus.dts
··· 79 79 phy-handle = <&phy1>; 80 80 phy-mode = "rgmii"; 81 81 status = "okay"; 82 - 83 - phy1: ethernet-phy@1 { 84 - reg = <1>; 85 - }; 86 82 }; 87 83 88 84 &i2c0 { ··· 97 101 reg = <0x1d>; 98 102 interrupt-parent = <&pio>; 99 103 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PA9 */ 104 + }; 105 + }; 106 + 107 + &mdio { 108 + phy1: ethernet-phy@1 { 109 + reg = <1>; 100 110 }; 101 111 }; 102 112
+9 -7
arch/arm/boot/dts/sun6i-a31-hummingbird.dts
··· 156 156 phy-handle = <&phy1>; 157 157 phy-mode = "rgmii"; 158 158 status = "okay"; 159 - 160 - phy1: ethernet-phy@1 { 161 - reg = <1>; 162 - reset-gpios = <&pio 0 21 GPIO_ACTIVE_LOW>; 163 - reset-assert-us = <10000>; 164 - reset-deassert-us = <30000>; 165 - }; 166 159 }; 167 160 168 161 &hdmi { ··· 190 197 pinctrl-names = "default"; 191 198 pinctrl-0 = <&s_ir_rx_pin>; 192 199 status = "okay"; 200 + }; 201 + 202 + &mdio { 203 + phy1: ethernet-phy@1 { 204 + reg = <1>; 205 + reset-gpios = <&pio 0 21 GPIO_ACTIVE_LOW>; 206 + reset-assert-us = <10000>; 207 + reset-deassert-us = <30000>; 208 + }; 193 209 }; 194 210 195 211 &mmc0 {
+6 -4
arch/arm/boot/dts/sun6i-a31-i7.dts
··· 120 120 phy-handle = <&phy1>; 121 121 phy-mode = "mii"; 122 122 status = "okay"; 123 - 124 - phy1: ethernet-phy@1 { 125 - reg = <1>; 126 - }; 127 123 }; 128 124 129 125 &hdmi { ··· 136 140 pinctrl-names = "default"; 137 141 pinctrl-0 = <&s_ir_rx_pin>; 138 142 status = "okay"; 143 + }; 144 + 145 + &mdio { 146 + phy1: ethernet-phy@1 { 147 + reg = <1>; 148 + }; 139 149 }; 140 150 141 151 &mmc0 {
+6 -4
arch/arm/boot/dts/sun6i-a31-m9.dts
··· 88 88 phy-mode = "mii"; 89 89 phy-supply = <&reg_dldo1>; 90 90 status = "okay"; 91 - 92 - phy1: ethernet-phy@1 { 93 - reg = <1>; 94 - }; 95 91 }; 96 92 97 93 &ir { 98 94 pinctrl-names = "default"; 99 95 pinctrl-0 = <&s_ir_rx_pin>; 100 96 status = "okay"; 97 + }; 98 + 99 + &mdio { 100 + phy1: ethernet-phy@1 { 101 + reg = <1>; 102 + }; 101 103 }; 102 104 103 105 &mmc0 {
+6 -4
arch/arm/boot/dts/sun6i-a31-mele-a1000g-quad.dts
··· 88 88 phy-mode = "mii"; 89 89 phy-supply = <&reg_dldo1>; 90 90 status = "okay"; 91 - 92 - phy1: ethernet-phy@1 { 93 - reg = <1>; 94 - }; 95 91 }; 96 92 97 93 &ir { 98 94 pinctrl-names = "default"; 99 95 pinctrl-0 = <&s_ir_rx_pin>; 100 96 status = "okay"; 97 + }; 98 + 99 + &mdio { 100 + phy1: ethernet-phy@1 { 101 + reg = <1>; 102 + }; 101 103 }; 102 104 103 105 &mmc0 {
+6 -2
arch/arm/boot/dts/sun6i-a31.dtsi
··· 939 939 snps,fixed-burst; 940 940 snps,force_sf_dma_mode; 941 941 status = "disabled"; 942 - #address-cells = <1>; 943 - #size-cells = <0>; 942 + 943 + mdio: mdio { 944 + compatible = "snps,dwmac-mdio"; 945 + #address-cells = <1>; 946 + #size-cells = <0>; 947 + }; 944 948 }; 945 949 946 950 crypto: crypto-engine@1c15000 {
+6 -3
arch/arm/boot/dts/sun6i-a31s-cs908.dts
··· 70 70 phy-handle = <&phy1>; 71 71 phy-mode = "mii"; 72 72 status = "okay"; 73 - phy1: ethernet-phy@1 { 74 - reg = <1>; 75 - }; 76 73 }; 77 74 78 75 &ir { 79 76 pinctrl-names = "default"; 80 77 pinctrl-0 = <&s_ir_rx_pin>; 81 78 status = "okay"; 79 + }; 80 + 81 + &mdio { 82 + phy1: ethernet-phy@1 { 83 + reg = <1>; 84 + }; 82 85 }; 83 86 84 87 &ohci1 {
+6 -4
arch/arm/boot/dts/sun6i-a31s-sina31s.dts
··· 119 119 phy-mode = "mii"; 120 120 phy-supply = <&reg_dldo1>; 121 121 status = "okay"; 122 - 123 - phy1: ethernet-phy@1 { 124 - reg = <1>; 125 - }; 126 122 }; 127 123 128 124 &hdmi { ··· 153 157 linux,code = <KEY_VOLUMEDOWN>; 154 158 channel = <0>; 155 159 voltage = <349206>; 160 + }; 161 + }; 162 + 163 + &mdio { 164 + phy1: ethernet-phy@1 { 165 + reg = <1>; 156 166 }; 157 167 }; 158 168
+9 -7
arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts
··· 96 96 phy-mode = "rgmii"; 97 97 phy-supply = <&reg_dldo1>; 98 98 status = "okay"; 99 - 100 - phy1: ethernet-phy@1 { 101 - reg = <1>; 102 - reset-gpios = <&pio 0 21 GPIO_ACTIVE_LOW>; /* PA21 */ 103 - reset-assert-us = <10000>; 104 - reset-deassert-us = <30000>; 105 - }; 106 99 }; 107 100 108 101 &ir { 109 102 pinctrl-names = "default"; 110 103 pinctrl-0 = <&s_ir_rx_pin>; 111 104 status = "okay"; 105 + }; 106 + 107 + &mdio { 108 + phy1: ethernet-phy@1 { 109 + reg = <1>; 110 + reset-gpios = <&pio 0 21 GPIO_ACTIVE_LOW>; /* PA21 */ 111 + reset-assert-us = <10000>; 112 + reset-deassert-us = <30000>; 113 + }; 112 114 }; 113 115 114 116 &mmc0 {
+6 -4
arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts
··· 133 133 phy-mode = "rgmii"; 134 134 phy-supply = <&reg_gmac_3v3>; 135 135 status = "okay"; 136 - 137 - phy1: ethernet-phy@1 { 138 - reg = <1>; 139 - }; 140 136 }; 141 137 142 138 &hdmi { ··· 165 169 pinctrl-names = "default"; 166 170 pinctrl-0 = <&ir0_rx_pin>; 167 171 status = "okay"; 172 + }; 173 + 174 + &gmac_mdio { 175 + phy1: ethernet-phy@1 { 176 + reg = <1>; 177 + }; 168 178 }; 169 179 170 180 &mmc0 {
+6 -4
arch/arm/boot/dts/sun7i-a20-bananapi.dts
··· 135 135 phy-mode = "rgmii"; 136 136 phy-supply = <&reg_gmac_3v3>; 137 137 status = "okay"; 138 - 139 - phy1: ethernet-phy@1 { 140 - reg = <1>; 141 - }; 142 138 }; 143 139 144 140 &hdmi { ··· 165 169 pinctrl-names = "default"; 166 170 pinctrl-0 = <&ir0_rx_pin>; 167 171 status = "okay"; 172 + }; 173 + 174 + &gmac_mdio { 175 + phy1: ethernet-phy@1 { 176 + reg = <1>; 177 + }; 168 178 }; 169 179 170 180 &mmc0 {
+6 -4
arch/arm/boot/dts/sun7i-a20-bananapro.dts
··· 113 113 phy-mode = "rgmii"; 114 114 phy-supply = <&reg_gmac_3v3>; 115 115 status = "okay"; 116 - 117 - phy1: ethernet-phy@1 { 118 - reg = <1>; 119 - }; 120 116 }; 121 117 122 118 &i2c0 { ··· 137 141 pinctrl-names = "default"; 138 142 pinctrl-0 = <&ir0_rx_pin>; 139 143 status = "okay"; 144 + }; 145 + 146 + &gmac_mdio { 147 + phy1: ethernet-phy@1 { 148 + reg = <1>; 149 + }; 140 150 }; 141 151 142 152 &mmc0 {
+6 -4
arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
··· 118 118 phy-handle = <&phy1>; 119 119 phy-mode = "mii"; 120 120 status = "okay"; 121 - 122 - phy1: ethernet-phy@1 { 123 - reg = <1>; 124 - }; 125 121 }; 126 122 127 123 &hdmi { ··· 155 159 bus-width = <4>; 156 160 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ 157 161 status = "okay"; 162 + }; 163 + 164 + &gmac_mdio { 165 + phy1: ethernet-phy@1 { 166 + reg = <1>; 167 + }; 158 168 }; 159 169 160 170 &ohci0 {
+6 -4
arch/arm/boot/dts/sun7i-a20-cubietruck.dts
··· 153 153 phy-handle = <&phy1>; 154 154 phy-mode = "rgmii"; 155 155 status = "okay"; 156 - 157 - phy1: ethernet-phy@1 { 158 - reg = <1>; 159 - }; 160 156 }; 161 157 162 158 &hdmi { ··· 188 192 pinctrl-names = "default"; 189 193 pinctrl-0 = <&ir0_rx_pin>; 190 194 status = "okay"; 195 + }; 196 + 197 + &gmac_mdio { 198 + phy1: ethernet-phy@1 { 199 + reg = <1>; 200 + }; 191 201 }; 192 202 193 203 &mmc0 {
+10 -8
arch/arm/boot/dts/sun7i-a20-hummingbird.dts
··· 104 104 phy-mode = "rgmii"; 105 105 phy-supply = <&reg_gmac_vdd>; 106 106 status = "okay"; 107 - 108 - phy1: ethernet-phy@1 { 109 - reg = <1>; 110 - reset-gpios = <&pio 0 17 GPIO_ACTIVE_LOW>; /* PA17 */ 111 - reset-assert-us = <10000>; 112 - /* wait 1s after reset, otherwise fail to read phy id */ 113 - reset-deassert-us = <1000000>; 114 - }; 115 107 }; 116 108 117 109 &i2c0 { ··· 135 143 pinctrl-names = "default"; 136 144 pinctrl-0 = <&ir0_rx_pin>; 137 145 status = "okay"; 146 + }; 147 + 148 + &gmac_mdio { 149 + phy1: ethernet-phy@1 { 150 + reg = <1>; 151 + reset-gpios = <&pio 0 17 GPIO_ACTIVE_LOW>; /* PA17 */ 152 + reset-assert-us = <10000>; 153 + /* wait 1s after reset, otherwise fail to read phy id */ 154 + reset-deassert-us = <1000000>; 155 + }; 138 156 }; 139 157 140 158 &mmc0 {
+6 -4
arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts
··· 119 119 phy-mode = "mii"; 120 120 phy-supply = <&reg_gmac_3v3>; 121 121 status = "okay"; 122 - 123 - phy1: ethernet-phy@1 { 124 - reg = <1>; 125 - }; 126 122 }; 127 123 128 124 &i2c0 { ··· 139 143 pinctrl-names = "default"; 140 144 pinctrl-0 = <&ir0_rx_pin>; 141 145 status = "okay"; 146 + }; 147 + 148 + &gmac_mdio { 149 + phy1: ethernet-phy@1 { 150 + reg = <1>; 151 + }; 142 152 }; 143 153 144 154 &mmc0 {
+6 -4
arch/arm/boot/dts/sun7i-a20-icnova-swac.dts
··· 79 79 phy-handle = <&phy1>; 80 80 phy-mode = "mii"; 81 81 status = "okay"; 82 - 83 - phy1: ethernet-phy@1 { 84 - reg = <1>; 85 - }; 86 82 }; 87 83 88 84 &i2c0 { ··· 93 97 94 98 &i2c1 { 95 99 status = "okay"; 100 + }; 101 + 102 + &gmac_mdio { 103 + phy1: ethernet-phy@1 { 104 + reg = <1>; 105 + }; 96 106 }; 97 107 98 108 &mmc0 {
+2
arch/arm/boot/dts/sun7i-a20-itead-ibox.dts
··· 100 100 phy-handle = <&phy1>; 101 101 phy-mode = "mii"; 102 102 status = "okay"; 103 + }; 103 104 105 + &gmac_mdio { 104 106 phy1: ethernet-phy@1 { 105 107 reg = <1>; 106 108 };
-2
arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts
··· 123 123 phy-mode = "rgmii"; 124 124 phy-supply = <&reg_gmac_3v3>; 125 125 status = "okay"; 126 - /delete-property/#address-cells; 127 - /delete-property/#size-cells; 128 126 129 127 fixed-link { 130 128 speed = <1000>;
+6 -4
arch/arm/boot/dts/sun7i-a20-m3.dts
··· 85 85 phy-handle = <&phy1>; 86 86 phy-mode = "mii"; 87 87 status = "okay"; 88 - 89 - phy1: ethernet-phy@1 { 90 - reg = <1>; 91 - }; 92 88 }; 93 89 94 90 &i2c0 { ··· 105 109 pinctrl-names = "default"; 106 110 pinctrl-0 = <&ir0_rx_pin>; 107 111 status = "okay"; 112 + }; 113 + 114 + &gmac_mdio { 115 + phy1: ethernet-phy@1 { 116 + reg = <1>; 117 + }; 108 118 }; 109 119 110 120 &mmc0 {
+6 -4
arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts
··· 114 114 phy-handle = <&phy1>; 115 115 phy-mode = "rgmii"; 116 116 status = "okay"; 117 - 118 - phy1: ethernet-phy@1 { 119 - reg = <1>; 120 - }; 121 117 }; 122 118 123 119 &hdmi { ··· 195 199 linux,code = <KEY_ENTER>; 196 200 channel = <0>; 197 201 voltage = <1400000>; 202 + }; 203 + }; 204 + 205 + &gmac_mdio { 206 + phy1: ethernet-phy@1 { 207 + reg = <1>; 198 208 }; 199 209 }; 200 210
+10 -8
arch/arm/boot/dts/sun7i-a20-olimex-som204-evb.dts
··· 109 109 phy-mode = "rgmii"; 110 110 phy-supply = <&reg_vcc3v3>; 111 111 status = "okay"; 112 - 113 - phy3: ethernet-phy@3 { 114 - reg = <3>; 115 - reset-gpios = <&pio 0 17 GPIO_ACTIVE_LOW>; /* PA17 */ 116 - reset-assert-us = <10000>; 117 - /* wait 1s after reset, otherwise fail to read phy id */ 118 - reset-deassert-us = <1000000>; 119 - }; 120 112 }; 121 113 122 114 &hdmi { ··· 151 159 pinctrl-names = "default"; 152 160 pinctrl-0 = <&ir0_rx_pin>; 153 161 status = "okay"; 162 + }; 163 + 164 + &gmac_mdio { 165 + phy3: ethernet-phy@3 { 166 + reg = <3>; 167 + reset-gpios = <&pio 0 17 GPIO_ACTIVE_LOW>; /* PA17 */ 168 + reset-assert-us = <10000>; 169 + /* wait 1s after reset, otherwise fail to read phy id */ 170 + reset-deassert-us = <1000000>; 171 + }; 154 172 }; 155 173 156 174 &mmc0 {
+6 -4
arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts
··· 109 109 phy-handle = <&phy1>; 110 110 phy-mode = "mii"; 111 111 status = "okay"; 112 - 113 - phy1: ethernet-phy@1 { 114 - reg = <1>; 115 - }; 116 112 }; 117 113 118 114 &hdmi { ··· 142 146 compatible = "atmel,24c16"; 143 147 reg = <0x50>; 144 148 pagesize = <16>; 149 + }; 150 + }; 151 + 152 + &gmac_mdio { 153 + phy1: ethernet-phy@1 { 154 + reg = <1>; 145 155 }; 146 156 }; 147 157
+6 -4
arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
··· 114 114 phy-handle = <&phy1>; 115 115 phy-mode = "rgmii"; 116 116 status = "okay"; 117 - 118 - phy1: ethernet-phy@1 { 119 - reg = <1>; 120 - }; 121 117 }; 122 118 123 119 &hdmi { ··· 148 152 149 153 &lradc { 150 154 vref-supply = <&reg_vcc3v0>; 155 + }; 156 + 157 + &gmac_mdio { 158 + phy1: ethernet-phy@1 { 159 + reg = <1>; 160 + }; 151 161 }; 152 162 153 163 &mmc0 {
+6 -4
arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
··· 121 121 phy-handle = <&phy1>; 122 122 phy-mode = "mii"; 123 123 status = "okay"; 124 - 125 - phy1: ethernet-phy@1 { 126 - reg = <1>; 127 - }; 128 124 }; 129 125 130 126 &hdmi { ··· 208 212 linux,code = <KEY_ENTER>; 209 213 channel = <0>; 210 214 voltage = <1398804>; 215 + }; 216 + }; 217 + 218 + &gmac_mdio { 219 + phy1: ethernet-phy@1 { 220 + reg = <1>; 211 221 }; 212 222 }; 213 223
+6 -4
arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts
··· 124 124 phy-mode = "rgmii"; 125 125 phy-supply = <&reg_gmac_3v3>; 126 126 status = "okay"; 127 - 128 - phy1: ethernet-phy@1 { 129 - reg = <1>; 130 - }; 131 127 }; 132 128 133 129 &hdmi { ··· 152 156 pinctrl-names = "default"; 153 157 pinctrl-0 = <&ir0_rx_pin>; 154 158 status = "okay"; 159 + }; 160 + 161 + &gmac_mdio { 162 + phy1: ethernet-phy@1 { 163 + reg = <1>; 164 + }; 155 165 }; 156 166 157 167 &mmc0 {
+6 -4
arch/arm/boot/dts/sun7i-a20-orangepi.dts
··· 100 100 phy-mode = "rgmii"; 101 101 phy-supply = <&reg_gmac_3v3>; 102 102 status = "okay"; 103 - 104 - phy1: ethernet-phy@1 { 105 - reg = <1>; 106 - }; 107 103 }; 108 104 109 105 &i2c0 { ··· 118 122 pinctrl-names = "default"; 119 123 pinctrl-0 = <&ir0_rx_pin>; 120 124 status = "okay"; 125 + }; 126 + 127 + &gmac_mdio { 128 + phy1: ethernet-phy@1 { 129 + reg = <1>; 130 + }; 121 131 }; 122 132 123 133 &mmc0 {
+6 -4
arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts
··· 117 117 phy-handle = <&phy1>; 118 118 phy-mode = "rgmii"; 119 119 status = "okay"; 120 - 121 - phy1: ethernet-phy@1 { 122 - reg = <1>; 123 - }; 124 120 }; 125 121 126 122 &hdmi { ··· 143 147 pinctrl-names = "default"; 144 148 pinctrl-0 = <&ir0_rx_pin>; 145 149 status = "okay"; 150 + }; 151 + 152 + &gmac_mdio { 153 + phy1: ethernet-phy@1 { 154 + reg = <1>; 155 + }; 146 156 }; 147 157 148 158 &mmc0 {
+6 -4
arch/arm/boot/dts/sun7i-a20-pcduino3.dts
··· 125 125 phy-handle = <&phy1>; 126 126 phy-mode = "mii"; 127 127 status = "okay"; 128 - 129 - phy1: ethernet-phy@1 { 130 - reg = <1>; 131 - }; 132 128 }; 133 129 134 130 &i2c0 { ··· 143 147 pinctrl-names = "default"; 144 148 pinctrl-0 = <&ir0_rx_pin>; 145 149 status = "okay"; 150 + }; 151 + 152 + &gmac_mdio { 153 + phy1: ethernet-phy@1 { 154 + reg = <1>; 155 + }; 146 156 }; 147 157 148 158 &mmc0 {
+6 -4
arch/arm/boot/dts/sun7i-a20-wits-pro-a20-dkt.dts
··· 84 84 phy-handle = <&phy1>; 85 85 phy-mode = "rgmii"; 86 86 status = "okay"; 87 - 88 - phy1: ethernet-phy@1 { 89 - reg = <1>; 90 - }; 91 87 }; 92 88 93 89 &i2c0 { ··· 105 109 }; 106 110 107 111 #include "axp209.dtsi" 112 + 113 + &gmac_mdio { 114 + phy1: ethernet-phy@1 { 115 + reg = <1>; 116 + }; 117 + }; 108 118 109 119 &mmc0 { 110 120 vmmc-supply = <&reg_vcc3v3>;
+6 -2
arch/arm/boot/dts/sun7i-a20.dtsi
··· 1437 1437 snps,fixed-burst; 1438 1438 snps,force_sf_dma_mode; 1439 1439 status = "disabled"; 1440 - #address-cells = <1>; 1441 - #size-cells = <0>; 1440 + 1441 + gmac_mdio: mdio { 1442 + compatible = "snps,dwmac-mdio"; 1443 + #address-cells = <1>; 1444 + #size-cells = <0>; 1445 + }; 1442 1446 }; 1443 1447 1444 1448 hstimer@1c60000 {
+6 -4
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
··· 132 132 phy-mode = "rgmii"; 133 133 phy-supply = <&reg_cldo1>; 134 134 status = "okay"; 135 - 136 - phy1: ethernet-phy@1 { 137 - reg = <1>; 138 - }; 139 135 }; 140 136 141 137 &i2c3 { 142 138 pinctrl-names = "default"; 143 139 pinctrl-0 = <&i2c3_pins>; 144 140 status = "okay"; 141 + }; 142 + 143 + &mdio { 144 + phy1: ethernet-phy@1 { 145 + reg = <1>; 146 + }; 145 147 }; 146 148 147 149 &mmc0 {
+2
arch/arm/boot/dts/sun9i-a80-optimus.dts
··· 127 127 phy-mode = "rgmii"; 128 128 phy-supply = <&reg_cldo1>; 129 129 status = "okay"; 130 + }; 130 131 132 + &mdio { 131 133 phy1: ethernet-phy@1 { 132 134 reg = <1>; 133 135 };
+6 -2
arch/arm/boot/dts/sun9i-a80.dtsi
··· 331 331 snps,fixed-burst; 332 332 snps,force_sf_dma_mode; 333 333 status = "disabled"; 334 - #address-cells = <1>; 335 - #size-cells = <0>; 334 + 335 + mdio: mdio { 336 + compatible = "snps,dwmac-mdio"; 337 + #address-cells = <1>; 338 + #size-cells = <0>; 339 + }; 336 340 }; 337 341 338 342 ehci0: usb@a00000 {