From 139bf24353d1abe2f816431e79defacb57deefdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Fri, 13 Jun 2025 15:15:49 +0200 Subject: [PATCH] drivers: ethernet: phy: dts: split ethernet-phy.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit split ethernet-phy.yaml, so that parts, that are used by other phys are separated. Signed-off-by: Fin Maaß --- .../ethernet/phy/davicom,dm8806-phy.yaml | 2 +- .../ethernet/phy/ethernet-phy-common.yaml | 21 +++++++++++++++++++ dts/bindings/ethernet/phy/ethernet-phy.yaml | 14 +------------ .../ethernet/phy/microchip,ksz8081.yaml | 2 +- .../ethernet/phy/microchip,vsc8541-phy.yaml | 2 +- dts/bindings/ethernet/phy/qca,ar8031.yaml | 2 +- .../ethernet/phy/realtek,rtl8211f.yaml | 2 +- dts/bindings/ethernet/phy/ti,dp83825.yaml | 2 +- dts/bindings/ethernet/phy/ti,dp83867.yaml | 2 +- 9 files changed, 29 insertions(+), 20 deletions(-) create mode 100644 dts/bindings/ethernet/phy/ethernet-phy-common.yaml diff --git a/dts/bindings/ethernet/phy/davicom,dm8806-phy.yaml b/dts/bindings/ethernet/phy/davicom,dm8806-phy.yaml index c4196bfe334..9830a04729b 100644 --- a/dts/bindings/ethernet/phy/davicom,dm8806-phy.yaml +++ b/dts/bindings/ethernet/phy/davicom,dm8806-phy.yaml @@ -5,7 +5,7 @@ description: Davicom DM8806 Ethernet MAC and PHY with RMII interface compatible: "davicom,dm8806-phy" -include: [ethernet-phy.yaml] +include: [ethernet-phy-common.yaml] on-bus: mdio diff --git a/dts/bindings/ethernet/phy/ethernet-phy-common.yaml b/dts/bindings/ethernet/phy/ethernet-phy-common.yaml new file mode 100644 index 00000000000..38a57a159e8 --- /dev/null +++ b/dts/bindings/ethernet/phy/ethernet-phy-common.yaml @@ -0,0 +1,21 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +# Common fields for MIIPHY devices + +include: phy.yaml + +properties: + reg: + required: true + description: PHY address + default-speeds: + type: string-array + description: The selected speeds are used to configure the PHY during initialization + enum: + - "10BASE Half-Duplex" + - "10BASE Full-Duplex" + - "100BASE Half-Duplex" + - "100BASE Full-Duplex" + - "1000BASE Half-Duplex" + - "1000BASE Full-Duplex" diff --git a/dts/bindings/ethernet/phy/ethernet-phy.yaml b/dts/bindings/ethernet/phy/ethernet-phy.yaml index 22704da0d40..e00483d33b9 100644 --- a/dts/bindings/ethernet/phy/ethernet-phy.yaml +++ b/dts/bindings/ethernet/phy/ethernet-phy.yaml @@ -7,12 +7,9 @@ description: Generic MII PHY compatible: "ethernet-phy" -include: phy.yaml +include: ethernet-phy-common.yaml properties: - reg: - required: true - description: PHY address no-reset: type: boolean description: Do not reset the PHY during initialization @@ -27,14 +24,5 @@ properties: - "1000BASE-T Half-Duplex" - "1000BASE-T Full-Duplex" default-speeds: - type: string-array - description: The selected speeds are used to configure the PHY during initialization - enum: - - "10BASE Half-Duplex" - - "10BASE Full-Duplex" - - "100BASE Half-Duplex" - - "100BASE Full-Duplex" - - "1000BASE Half-Duplex" - - "1000BASE Full-Duplex" default: ["10BASE Half-Duplex", "10BASE Full-Duplex", "100BASE Half-Duplex", "100BASE Full-Duplex", "1000BASE Half-Duplex", "1000BASE Full-Duplex"] diff --git a/dts/bindings/ethernet/phy/microchip,ksz8081.yaml b/dts/bindings/ethernet/phy/microchip,ksz8081.yaml index 7667fca8531..db035981fe2 100644 --- a/dts/bindings/ethernet/phy/microchip,ksz8081.yaml +++ b/dts/bindings/ethernet/phy/microchip,ksz8081.yaml @@ -5,7 +5,7 @@ description: Microchip KSZ8081 Ethernet PHY device compatible: "microchip,ksz8081" -include: ethernet-phy.yaml +include: ethernet-phy-common.yaml properties: reset-gpios: diff --git a/dts/bindings/ethernet/phy/microchip,vsc8541-phy.yaml b/dts/bindings/ethernet/phy/microchip,vsc8541-phy.yaml index d8df5f8f4d9..c16f2e9e5d4 100644 --- a/dts/bindings/ethernet/phy/microchip,vsc8541-phy.yaml +++ b/dts/bindings/ethernet/phy/microchip,vsc8541-phy.yaml @@ -5,7 +5,7 @@ description: Single Port Gigabit Ethernet Copper PHY with GMII/RGMII/MII/RMII In compatible: "microchip,vsc8541" -include: [ethernet-phy.yaml] +include: [ethernet-phy-common.yaml] on-bus: mdio diff --git a/dts/bindings/ethernet/phy/qca,ar8031.yaml b/dts/bindings/ethernet/phy/qca,ar8031.yaml index 479c14f40ab..2b3007faa26 100644 --- a/dts/bindings/ethernet/phy/qca,ar8031.yaml +++ b/dts/bindings/ethernet/phy/qca,ar8031.yaml @@ -5,7 +5,7 @@ description: Qualcomm Atheros AR8031 Ethernet PHY compatible: "qca,ar8031" -include: ethernet-phy.yaml +include: ethernet-phy-common.yaml properties: eee-en: diff --git a/dts/bindings/ethernet/phy/realtek,rtl8211f.yaml b/dts/bindings/ethernet/phy/realtek,rtl8211f.yaml index 1f8cc22e71d..81554508535 100644 --- a/dts/bindings/ethernet/phy/realtek,rtl8211f.yaml +++ b/dts/bindings/ethernet/phy/realtek,rtl8211f.yaml @@ -5,7 +5,7 @@ description: Realtek RTL8211F Ethernet PHY device compatible: "realtek,rtl8211f" -include: ethernet-phy.yaml +include: ethernet-phy-common.yaml properties: reset-gpios: diff --git a/dts/bindings/ethernet/phy/ti,dp83825.yaml b/dts/bindings/ethernet/phy/ti,dp83825.yaml index 4846f31f08e..ca6b67af74d 100644 --- a/dts/bindings/ethernet/phy/ti,dp83825.yaml +++ b/dts/bindings/ethernet/phy/ti,dp83825.yaml @@ -5,7 +5,7 @@ description: TI DP83825 Ethernet PHY device compatible: "ti,dp83825" -include: ethernet-phy.yaml +include: ethernet-phy-common.yaml properties: reset-gpios: diff --git a/dts/bindings/ethernet/phy/ti,dp83867.yaml b/dts/bindings/ethernet/phy/ti,dp83867.yaml index 6bc38cab7b5..f60c35620f6 100644 --- a/dts/bindings/ethernet/phy/ti,dp83867.yaml +++ b/dts/bindings/ethernet/phy/ti,dp83867.yaml @@ -5,7 +5,7 @@ description: TI DP83867 Ethernet PHY device compatible: "ti,dp83867" -include: ethernet-phy.yaml +include: ethernet-phy-common.yaml properties: reset-gpios: