Commit 41506bff authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by David S. Miller

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: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarSergei Shtylyov <sergei.shtylyov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 272502fc
...@@ -59,9 +59,15 @@ properties: ...@@ -59,9 +59,15 @@ properties:
clocks: clocks:
maxItems: 1 maxItems: 1
pinctrl-0: true power-domains:
maxItems: 1
resets:
maxItems: 1
pinctrl-names: true phy-mode: true
phy-handle: true
renesas,no-ether-link: renesas,no-ether-link:
type: boolean type: boolean
...@@ -74,6 +80,11 @@ properties: ...@@ -74,6 +80,11 @@ properties:
specify when the Ether LINK signal is active-low instead of normal specify when the Ether LINK signal is active-low instead of normal
active-high active-high
patternProperties:
"^ethernet-phy@[0-9a-f]$":
type: object
$ref: ethernet-phy.yaml#
required: required:
- compatible - compatible
- reg - reg
...@@ -83,7 +94,8 @@ required: ...@@ -83,7 +94,8 @@ required:
- '#address-cells' - '#address-cells'
- '#size-cells' - '#size-cells'
- clocks - clocks
- pinctrl-0
additionalProperties: false
examples: examples:
# Lager board # Lager board
...@@ -99,8 +111,6 @@ examples: ...@@ -99,8 +111,6 @@ examples:
clocks = <&mstp8_clks R8A7790_CLK_ETHER>; clocks = <&mstp8_clks R8A7790_CLK_ETHER>;
phy-mode = "rmii"; phy-mode = "rmii";
phy-handle = <&phy1>; phy-handle = <&phy1>;
pinctrl-0 = <&ether_pins>;
pinctrl-names = "default";
renesas,ether-link-active-low; renesas,ether-link-active-low;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
...@@ -109,7 +119,5 @@ examples: ...@@ -109,7 +119,5 @@ examples:
reg = <1>; reg = <1>;
interrupt-parent = <&irqc0>; interrupt-parent = <&irqc0>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
pinctrl-0 = <&phy1_pins>;
pinctrl-names = "default";
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment