Skip to content

Commit 41506bf

Browse files
geertudavem330
authored andcommitted
dt-bindings: net: renesas, ether: Improve schema validation
- Remove pinctrl consumer properties, as they are handled by core dt-schema, - Document missing properties, - Document missing PHY child node, - Add "additionalProperties: false". Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Sergei Shtylyov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 272502f commit 41506bf

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

Documentation/devicetree/bindings/net/renesas,ether.yaml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,15 @@ properties:
5959
clocks:
6060
maxItems: 1
6161

62-
pinctrl-0: true
62+
power-domains:
63+
maxItems: 1
64+
65+
resets:
66+
maxItems: 1
6367

64-
pinctrl-names: true
68+
phy-mode: true
69+
70+
phy-handle: true
6571

6672
renesas,no-ether-link:
6773
type: boolean
@@ -74,6 +80,11 @@ properties:
7480
specify when the Ether LINK signal is active-low instead of normal
7581
active-high
7682

83+
patternProperties:
84+
"^ethernet-phy@[0-9a-f]$":
85+
type: object
86+
$ref: ethernet-phy.yaml#
87+
7788
required:
7889
- compatible
7990
- reg
@@ -83,7 +94,8 @@ required:
8394
- '#address-cells'
8495
- '#size-cells'
8596
- clocks
86-
- pinctrl-0
97+
98+
additionalProperties: false
8799

88100
examples:
89101
# Lager board
@@ -99,8 +111,6 @@ examples:
99111
clocks = <&mstp8_clks R8A7790_CLK_ETHER>;
100112
phy-mode = "rmii";
101113
phy-handle = <&phy1>;
102-
pinctrl-0 = <&ether_pins>;
103-
pinctrl-names = "default";
104114
renesas,ether-link-active-low;
105115
#address-cells = <1>;
106116
#size-cells = <0>;
@@ -109,7 +119,5 @@ examples:
109119
reg = <1>;
110120
interrupt-parent = <&irqc0>;
111121
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
112-
pinctrl-0 = <&phy1_pins>;
113-
pinctrl-names = "default";
114122
};
115123
};

0 commit comments

Comments
 (0)