Skip to content

Commit 243e84d

Browse files
fabiobaltieriMaureenHelm
authored andcommitted
ethernet: phy_mii: get the MDIO bus with DT_INST_BUS
Now that all in-tree phys are declared under their mdio bus, drop the `mdio` property and use DT_INST_BUS to find the bus. Signed-off-by: Fabio Baltieri <[email protected]>
1 parent 9ec936a commit 243e84d

File tree

10 files changed

+1
-13
lines changed

10 files changed

+1
-13
lines changed

boards/arm/atsame54_xpro/atsame54_xpro.dts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,5 @@ zephyr_udc0: &usb0 {
136136
compatible = "ethernet-phy";
137137
status = "okay";
138138
address = <0>;
139-
mdio = <&mdio>;
140139
};
141140
};

boards/arm/s32z270dc2_r52/s32z270dc2_r52.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@
9999
phy0: ethernet-phy {
100100
compatible = "ethernet-phy";
101101
address = <0x7>;
102-
mdio = <&emdio>;
103102
status = "okay";
104103
};
105104
};

boards/arm/sam4e_xpro/sam4e_xpro.dts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@
201201
compatible = "ethernet-phy";
202202
status = "okay";
203203
address = <0>;
204-
mdio = <&mdio>;
205204
};
206205
};
207206

boards/arm/sam_e70_xplained/sam_e70_xplained-common.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ zephyr_udc0: &usbhs {
140140
compatible = "ethernet-phy";
141141
status = "okay";
142142
address = <0>;
143-
mdio = <&mdio>;
144143
};
145144
};
146145

boards/arm/sam_v71_xult/sam_v71_xult-common.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ zephyr_udc0: &usbhs {
249249
compatible = "ethernet-phy";
250250
status = "okay";
251251
address = <0>;
252-
mdio = <&mdio>;
253252
};
254253
};
255254

boards/arm64/fvp_base_revc_2xaemv8a/fvp_base_revc_2xaemv8a.dts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@
151151
compatible = "ethernet-phy";
152152
status = "disabled";
153153
address = <0>;
154-
mdio = <&mdio>;
155154
};
156155
};
157156
};

boards/xtensa/esp32_ethernet_kit/esp32_ethernet_kit.dts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@
123123
compatible = "ethernet-phy";
124124
status = "disabled";
125125
address = <1>;
126-
mdio = <&mdio>;
127126
};
128127
};
129128

drivers/ethernet/phy/phy_mii.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ static const struct phy_mii_dev_config phy_mii_dev_config_##n = { \
481481
.fixed = IS_FIXED_LINK(n), \
482482
.fixed_speed = DT_INST_ENUM_IDX_OR(n, fixed_link, 0), \
483483
.mdio = UTIL_AND(UTIL_NOT(IS_FIXED_LINK(n)), \
484-
DEVICE_DT_GET(DT_INST_PHANDLE(n, mdio))) \
484+
DEVICE_DT_GET(DT_INST_BUS(n))) \
485485
};
486486

487487
#define PHY_MII_DEVICE(n) \

dts/arm64/fvp/fvp-aemv8r.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@
123123
compatible = "ethernet-phy";
124124
status = "disabled";
125125
address = <0>;
126-
mdio = <&mdio>;
127126
};
128127
};
129128
};

dts/bindings/ethernet/ethernet-phy.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ properties:
1414
type: int
1515
required: true
1616
description: PHY address
17-
mdio:
18-
type: phandle
19-
required: true
20-
description: MDIO driver node
2117
no-reset:
2218
type: boolean
2319
description: Do not reset the PHY during initialization

0 commit comments

Comments
 (0)