Commit bbba69ef authored by Rob Herring's avatar Rob Herring

dt-bindings: net/dsa: Add spi-peripheral-props.yaml references

SPI peripheral device bindings need to reference spi-peripheral-props.yaml
in order to use various SPI controller specific properties. Otherwise,
the unevaluatedProperties check will reject any controller specific
properties.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220531220122.2412711-1-robh@kernel.org
parent fe3f70ee
...@@ -6,9 +6,6 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# ...@@ -6,9 +6,6 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Broadcom BCM53xx Ethernet switches title: Broadcom BCM53xx Ethernet switches
allOf:
- $ref: dsa.yaml#
maintainers: maintainers:
- Florian Fainelli <f.fainelli@gmail.com> - Florian Fainelli <f.fainelli@gmail.com>
...@@ -68,8 +65,26 @@ required: ...@@ -68,8 +65,26 @@ required:
- compatible - compatible
- reg - reg
# BCM585xx/586xx/88312 SoCs allOf:
if: - $ref: dsa.yaml#
- if:
properties:
compatible:
contains:
enum:
- brcm,bcm5325
- brcm,bcm53115
- brcm,bcm53125
- brcm,bcm53128
- brcm,bcm5365
- brcm,bcm5395
- brcm,bcm5397
- brcm,bcm5398
then:
$ref: /schemas/spi/spi-peripheral-props.yaml
# BCM585xx/586xx/88312 SoCs
- if:
properties: properties:
compatible: compatible:
contains: contains:
...@@ -81,7 +96,7 @@ if: ...@@ -81,7 +96,7 @@ if:
- brcm,bcm58623-srab - brcm,bcm58623-srab
- brcm,bcm58625-srab - brcm,bcm58625-srab
- brcm,bcm88312-srab - brcm,bcm88312-srab
then: then:
properties: properties:
reg: reg:
minItems: 3 minItems: 3
...@@ -111,7 +126,7 @@ then: ...@@ -111,7 +126,7 @@ then:
- const: imp_sleep_timer_p8 - const: imp_sleep_timer_p8
required: required:
- interrupts - interrupts
else: else:
properties: properties:
reg: reg:
maxItems: 1 maxItems: 1
......
...@@ -12,6 +12,7 @@ maintainers: ...@@ -12,6 +12,7 @@ maintainers:
allOf: allOf:
- $ref: dsa.yaml# - $ref: dsa.yaml#
- $ref: /schemas/spi/spi-peripheral-props.yaml#
properties: properties:
# See Documentation/devicetree/bindings/net/dsa/dsa.yaml for a list of additional # See Documentation/devicetree/bindings/net/dsa/dsa.yaml for a list of additional
......
...@@ -14,6 +14,7 @@ description: ...@@ -14,6 +14,7 @@ description:
allOf: allOf:
- $ref: "dsa.yaml#" - $ref: "dsa.yaml#"
- $ref: /schemas/spi/spi-peripheral-props.yaml#
maintainers: maintainers:
- Vladimir Oltean <vladimir.oltean@nxp.com> - Vladimir Oltean <vladimir.oltean@nxp.com>
......
...@@ -108,6 +108,7 @@ if: ...@@ -108,6 +108,7 @@ if:
- reg - reg
then: then:
$ref: /schemas/spi/spi-peripheral-props.yaml#
not: not:
required: required:
- mdc-gpios - mdc-gpios
......
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