dt-bindings: net/dsa: Add spi-peripheral-props.yaml references
Subsystems (6)
Rob Herring
maintainerPATCH 1/1 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.
--- Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml | 1 + Documentation/devicetree/bindings/net/dsa/realtek.yaml | 1 + 2 files changed, 2 insertions(+)
Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml +1 -0
@@ -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
Documentation/devicetree/bindings/net/dsa/realtek.yaml +1 -0
@@ -108,6 +108,7 @@ if: - reg then: + $ref: /schemas/spi/spi-peripheral-props.yaml# not: required: - mdc-gpios
Signature · 1 line
2.34.1
Vladimir Oltean
maintainerQuoted 38 lines · Rob Herring
SPI peripheral device bindings need to reference
spi-peripheral-props.yamlin order to use various SPI controller specific properties. Otherwise, the unevaluatedProperties check will reject any controller specific properties.Signed-off-by Rob Herring <[email protected]>--- Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml | 1 + Documentation/devicetree/bindings/net/dsa/realtek.yaml | 1 + 2 files changed, 2 insertions(+)Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml +1
-0@@ -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 additionalDocumentation/devicetree/bindings/net/dsa/realtek.yaml +1
-0@@ -108,6 +108,7 @@ if: - reg then: + $ref: /schemas/spi/spi-peripheral-props.yaml# not: required: - mdc-gpiosSignature · 1 line
2.34.1
Also needed by nxp,sja1105.yaml and the following from brcm,b53.yaml:
brcm,bcm5325 brcm,bcm5365 brcm,bcm5395 brcm,bcm5397 brcm,bcm5398 brcm,bcm53115 brcm,bcm53125 brcm,bcm53128
Quoted 6 lines · Rob Herring
SPI peripheral device bindings need to reference
spi-peripheral-props.yamlin order to use various SPI controller specific properties. Otherwise, the unevaluatedProperties check will reject any controller specific properties.Signed-off-by Rob Herring <[email protected]>
Very nice!
Yours,
Linus Walleij
Rob Herring
maintainerQuoted 41 lines · Vladimir Oltean
Quoted 38 lines · Rob Herring
SPI peripheral device bindings need to reference
spi-peripheral-props.yamlin order to use various SPI controller specific properties. Otherwise, the unevaluatedProperties check will reject any controller specific properties.Signed-off-by Rob Herring <[email protected]>--- Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml | 1 + Documentation/devicetree/bindings/net/dsa/realtek.yaml | 1 + 2 files changed, 2 insertions(+)Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml +1
-0@@ -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 additionalDocumentation/devicetree/bindings/net/dsa/realtek.yaml +1
-0@@ -108,6 +108,7 @@ if: - reg then: + $ref: /schemas/spi/spi-peripheral-props.yaml# not: required: - mdc-gpiosSignature · 1 line
2.34.1Also needed by nxp,sja1105.yaml and the following from brcm,b53.yaml:
Quoted 8 lines
brcm,bcm5325 brcm,bcm5365 brcm,bcm5395 brcm,bcm5397 brcm,bcm5398 brcm,bcm53115 brcm,bcm53125 brcm,bcm53128
Okay. Looks like you missed bcm5389?
Rob
Vladimir Oltean
maintainerQuoted 11 lines · Rob Herring
Quoted 9 lines · Vladimir Oltean
Also needed by nxp,sja1105.yaml and the following from brcm,b53.yaml:
brcm,bcm5325 brcm,bcm5365 brcm,bcm5395 brcm,bcm5397 brcm,bcm5398 brcm,bcm53115 brcm,bcm53125 brcm,bcm53128
Quoted 1 line
Okay. Looks like you missed bcm5389?
I went to the end of drivers/net/dsa/b53/b53_spi.c and copied the compatible strings. "brcm,bcm5389" is marked in b53_mdio.c, so I would guess not.
Rob Herring
maintainerQuoted 12 lines · Vladimir Oltean
Quoted 11 lines · Rob Herring
Quoted 9 lines · Vladimir Oltean
Also needed by nxp,sja1105.yaml and the following from brcm,b53.yaml:
brcm,bcm5325 brcm,bcm5365 brcm,bcm5395 brcm,bcm5397 brcm,bcm5398 brcm,bcm53115 brcm,bcm53125 brcm,bcm53128
Quoted 5 lines
Quoted 1 line
Okay. Looks like you missed bcm5389?
I went to the end of
drivers/net/dsa/b53/b53_spi.cand copied the compatible strings. "brcm,bcm5389" is marked inb53_mdio.c, so I would guess not.
The datasheet I found says it is SPI interface, but I guess someone that cares about this h/w can sort that out if needed.
Rob
Vladimir Oltean
maintainerQuoted 15 lines · Rob Herring
Quoted 14 lines · Vladimir Oltean
Quoted 12 lines · Rob Herring
Quoted 9 lines · Vladimir Oltean
Also needed by nxp,sja1105.yaml and the following from brcm,b53.yaml:
brcm,bcm5325 brcm,bcm5365 brcm,bcm5395 brcm,bcm5397 brcm,bcm5398 brcm,bcm53115 brcm,bcm53125 brcm,bcm53128Okay. Looks like you missed bcm5389?
Quoted 8 lines
Quoted 3 lines
I went to the end of
drivers/net/dsa/b53/b53_spi.cand copied the compatible strings. "brcm,bcm5389" is marked inb53_mdio.c, so I would guess not.The datasheet I found says it is SPI interface, but I guess someone that cares about this h/w can sort that out if needed.
Rob
If someone adds a new compatible string for a SPI controlled DSA switch, I will remember to remind him to update the dt-bindings doc as well.