Skip to content

Commit 139bf24

Browse files
maass-hamburgfabiobaltieri
authored andcommitted
drivers: ethernet: phy: dts: split ethernet-phy.yaml
split ethernet-phy.yaml, so that parts, that are used by other phys are separated. Signed-off-by: Fin Maaß <[email protected]>
1 parent f473806 commit 139bf24

9 files changed

+29
-20
lines changed

dts/bindings/ethernet/phy/davicom,dm8806-phy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Davicom DM8806 Ethernet MAC and PHY with RMII interface
55

66
compatible: "davicom,dm8806-phy"
77

8-
include: [ethernet-phy.yaml]
8+
include: [ethernet-phy-common.yaml]
99

1010
on-bus: mdio
1111

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright The Zephyr Project Contributors
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Common fields for MIIPHY devices
5+
6+
include: phy.yaml
7+
8+
properties:
9+
reg:
10+
required: true
11+
description: PHY address
12+
default-speeds:
13+
type: string-array
14+
description: The selected speeds are used to configure the PHY during initialization
15+
enum:
16+
- "10BASE Half-Duplex"
17+
- "10BASE Full-Duplex"
18+
- "100BASE Half-Duplex"
19+
- "100BASE Full-Duplex"
20+
- "1000BASE Half-Duplex"
21+
- "1000BASE Full-Duplex"

dts/bindings/ethernet/phy/ethernet-phy.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ description: Generic MII PHY
77

88
compatible: "ethernet-phy"
99

10-
include: phy.yaml
10+
include: ethernet-phy-common.yaml
1111

1212
properties:
13-
reg:
14-
required: true
15-
description: PHY address
1613
no-reset:
1714
type: boolean
1815
description: Do not reset the PHY during initialization
@@ -27,14 +24,5 @@ properties:
2724
- "1000BASE-T Half-Duplex"
2825
- "1000BASE-T Full-Duplex"
2926
default-speeds:
30-
type: string-array
31-
description: The selected speeds are used to configure the PHY during initialization
32-
enum:
33-
- "10BASE Half-Duplex"
34-
- "10BASE Full-Duplex"
35-
- "100BASE Half-Duplex"
36-
- "100BASE Full-Duplex"
37-
- "1000BASE Half-Duplex"
38-
- "1000BASE Full-Duplex"
3927
default: ["10BASE Half-Duplex", "10BASE Full-Duplex", "100BASE Half-Duplex",
4028
"100BASE Full-Duplex", "1000BASE Half-Duplex", "1000BASE Full-Duplex"]

dts/bindings/ethernet/phy/microchip,ksz8081.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Microchip KSZ8081 Ethernet PHY device
55

66
compatible: "microchip,ksz8081"
77

8-
include: ethernet-phy.yaml
8+
include: ethernet-phy-common.yaml
99

1010
properties:
1111
reset-gpios:

dts/bindings/ethernet/phy/microchip,vsc8541-phy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Single Port Gigabit Ethernet Copper PHY with GMII/RGMII/MII/RMII In
55

66
compatible: "microchip,vsc8541"
77

8-
include: [ethernet-phy.yaml]
8+
include: [ethernet-phy-common.yaml]
99

1010
on-bus: mdio
1111

dts/bindings/ethernet/phy/qca,ar8031.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Qualcomm Atheros AR8031 Ethernet PHY
55

66
compatible: "qca,ar8031"
77

8-
include: ethernet-phy.yaml
8+
include: ethernet-phy-common.yaml
99

1010
properties:
1111
eee-en:

dts/bindings/ethernet/phy/realtek,rtl8211f.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Realtek RTL8211F Ethernet PHY device
55

66
compatible: "realtek,rtl8211f"
77

8-
include: ethernet-phy.yaml
8+
include: ethernet-phy-common.yaml
99

1010
properties:
1111
reset-gpios:

dts/bindings/ethernet/phy/ti,dp83825.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: TI DP83825 Ethernet PHY device
55

66
compatible: "ti,dp83825"
77

8-
include: ethernet-phy.yaml
8+
include: ethernet-phy-common.yaml
99

1010
properties:
1111
reset-gpios:

dts/bindings/ethernet/phy/ti,dp83867.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: TI DP83867 Ethernet PHY device
55

66
compatible: "ti,dp83867"
77

8-
include: ethernet-phy.yaml
8+
include: ethernet-phy-common.yaml
99

1010
properties:
1111
reset-gpios:

0 commit comments

Comments
 (0)