Skip to content

Commit

Permalink
dt-bindings: phy: Add missing (unevaluated|additional)Properties on c…
Browse files Browse the repository at this point in the history
…hild nodes

In order to ensure only documented properties are present, node schemas
must have unevaluatedProperties or additionalProperties set to false
(typically).

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220823145649.3118479-14-robh@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Rob Herring authored and Vinod Koul committed Aug 30, 2022
1 parent 04aebe1 commit c77c185
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ properties:
patternProperties:
"^pcie-phy@[0-9]+$":
type: object
additionalProperties: false
description: >
PCIe PHY child nodes
Expand Down
2 changes: 2 additions & 0 deletions Documentation/devicetree/bindings/phy/phy-stm32-usbphyc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ patternProperties:
connector:
type: object
$ref: /schemas/connector/usb-connector.yaml
unevaluatedProperties: false

properties:
vbus-supply: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ properties:
patternProperties:
"^usb3-phy@[0-9a-f]+$":
type: object
additionalProperties: false
description:
The USB3 PHY.

Expand Down Expand Up @@ -121,6 +122,7 @@ patternProperties:

"^dp-phy@[0-9a-f]+$":
type: object
additionalProperties: false
description:
The DP PHY.

Expand Down
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ properties:

refclk-dig:
type: object
additionalProperties: false
description: |
WIZ node should have subnode for refclk_dig to select the reference
clock source for the reference clock used in the PHY and PMA digital
Expand Down Expand Up @@ -118,6 +119,7 @@ properties:
patternProperties:
"^pll[0|1]-refclk$":
type: object
additionalProperties: false
description: |
WIZ node should have subnodes for each of the PLLs present in
the SERDES.
Expand All @@ -144,6 +146,7 @@ patternProperties:

"^cmn-refclk1?-dig-div$":
type: object
additionalProperties: false
description:
WIZ node should have subnodes for each of the PMA common refclock
provided by the SERDES.
Expand Down

0 comments on commit c77c185

Please sign in to comment.