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 <fabiobaltieri@google.com>
This commit is contained in:
parent
9ec936a2ea
commit
243e84d155
10 changed files with 1 additions and 13 deletions
|
@ -136,6 +136,5 @@ zephyr_udc0: &usb0 {
|
|||
compatible = "ethernet-phy";
|
||||
status = "okay";
|
||||
address = <0>;
|
||||
mdio = <&mdio>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -99,7 +99,6 @@
|
|||
phy0: ethernet-phy {
|
||||
compatible = "ethernet-phy";
|
||||
address = <0x7>;
|
||||
mdio = <&emdio>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -201,7 +201,6 @@
|
|||
compatible = "ethernet-phy";
|
||||
status = "okay";
|
||||
address = <0>;
|
||||
mdio = <&mdio>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -140,7 +140,6 @@ zephyr_udc0: &usbhs {
|
|||
compatible = "ethernet-phy";
|
||||
status = "okay";
|
||||
address = <0>;
|
||||
mdio = <&mdio>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -249,7 +249,6 @@ zephyr_udc0: &usbhs {
|
|||
compatible = "ethernet-phy";
|
||||
status = "okay";
|
||||
address = <0>;
|
||||
mdio = <&mdio>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -151,7 +151,6 @@
|
|||
compatible = "ethernet-phy";
|
||||
status = "disabled";
|
||||
address = <0>;
|
||||
mdio = <&mdio>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -123,7 +123,6 @@
|
|||
compatible = "ethernet-phy";
|
||||
status = "disabled";
|
||||
address = <1>;
|
||||
mdio = <&mdio>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -481,7 +481,7 @@ static const struct phy_mii_dev_config phy_mii_dev_config_##n = { \
|
|||
.fixed = IS_FIXED_LINK(n), \
|
||||
.fixed_speed = DT_INST_ENUM_IDX_OR(n, fixed_link, 0), \
|
||||
.mdio = UTIL_AND(UTIL_NOT(IS_FIXED_LINK(n)), \
|
||||
DEVICE_DT_GET(DT_INST_PHANDLE(n, mdio))) \
|
||||
DEVICE_DT_GET(DT_INST_BUS(n))) \
|
||||
};
|
||||
|
||||
#define PHY_MII_DEVICE(n) \
|
||||
|
|
|
@ -123,7 +123,6 @@
|
|||
compatible = "ethernet-phy";
|
||||
status = "disabled";
|
||||
address = <0>;
|
||||
mdio = <&mdio>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -14,10 +14,6 @@ properties:
|
|||
type: int
|
||||
required: true
|
||||
description: PHY address
|
||||
mdio:
|
||||
type: phandle
|
||||
required: true
|
||||
description: MDIO driver node
|
||||
no-reset:
|
||||
type: boolean
|
||||
description: Do not reset the PHY during initialization
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue