Commit bbba69ef authored by Rob Herring's avatar Rob Herring
Browse files

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
Loading
Loading
Loading
Loading
+65 −50
Original line number Diff line number Diff line
@@ -6,9 +6,6 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#

title: Broadcom BCM53xx Ethernet switches

allOf:
  - $ref: dsa.yaml#

maintainers:
  - Florian Fainelli <f.fainelli@gmail.com>

@@ -68,8 +65,26 @@ required:
  - compatible
  - reg

allOf:
  - $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:
  - if:
      properties:
        compatible:
          contains:
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ maintainers:

allOf:
  - $ref: dsa.yaml#
  - $ref: /schemas/spi/spi-peripheral-props.yaml#

properties:
  # See Documentation/devicetree/bindings/net/dsa/dsa.yaml for a list of additional
+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ description:

allOf:
  - $ref: "dsa.yaml#"
  - $ref: /schemas/spi/spi-peripheral-props.yaml#

maintainers:
  - Vladimir Oltean <vladimir.oltean@nxp.com>
+1 −0
Original line number Diff line number Diff line
@@ -108,6 +108,7 @@ if:
    - reg

then:
  $ref: /schemas/spi/spi-peripheral-props.yaml#
  not:
    required:
      - mdc-gpios