Skip to contentSkip to conversation

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

PATCH Superseded Rob Herring 3 participants 7 messages May 25, 2022 – May 31, 2022

Subsystems (6)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 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
index 184152087b60..6bbd8145b6c1 100644
@@ -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
index 99ee4b5b9346..4f99aff029dc 100644
@@ -108,6 +108,7 @@ if:
     - reg
 
 then:
+  $ref: /schemas/spi/spi-peripheral-props.yaml#
   not:
     required:
       - mdc-gpios
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 38 lines · Rob Herring

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
index 184152087b60..6bbd8145b6c1 100644
@@ -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
index 99ee4b5b9346..4f99aff029dc 100644
@@ -108,6 +108,7 @@ if:
     - reg
 
 then:
+  $ref: /schemas/spi/spi-peripheral-props.yaml#
   not:
     required:
       - mdc-gpios
Signature · 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
author maintainer
#2 lore raw
Quoted 41 lines · Vladimir Oltean
Quoted 38 lines · Rob Herring

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
index 184152087b60..6bbd8145b6c1 100644
@@ -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
index 99ee4b5b9346..4f99aff029dc 100644
@@ -108,6 +108,7 @@ if:
     - reg
 
 then:
+  $ref: /schemas/spi/spi-peripheral-props.yaml#
   not:
     required:
       - mdc-gpios
Signature · 1 line
2.34.1

Also 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

maintainer
#3 lore raw
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 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.

author maintainer
#4 lore raw
Quoted 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.c and copied the compatible strings. "brcm,bcm5389" is marked in b53_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

maintainer
#5 lore raw
Quoted 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,bcm53128

Okay. Looks like you missed bcm5389?

Quoted 8 lines
Quoted 3 lines

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.

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.