Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220531220122.2412711-1-robh@kernel.org

+68 -50
+65 -50
Documentation/devicetree/bindings/net/dsa/brcm,b53.yaml
··· 6 6 7 7 title: Broadcom BCM53xx Ethernet switches 8 8 9 - allOf: 10 - - $ref: dsa.yaml# 11 - 12 9 maintainers: 13 10 - Florian Fainelli <f.fainelli@gmail.com> 14 11 ··· 65 68 - compatible 66 69 - reg 67 70 68 - # BCM585xx/586xx/88312 SoCs 69 - if: 70 - properties: 71 - compatible: 72 - contains: 73 - enum: 74 - - brcm,bcm58522-srab 75 - - brcm,bcm58523-srab 76 - - brcm,bcm58525-srab 77 - - brcm,bcm58622-srab 78 - - brcm,bcm58623-srab 79 - - brcm,bcm58625-srab 80 - - brcm,bcm88312-srab 81 - then: 82 - properties: 83 - reg: 84 - minItems: 3 85 - maxItems: 3 86 - reg-names: 87 - items: 88 - - const: srab 89 - - const: mux_config 90 - - const: sgmii_config 91 - interrupts: 92 - minItems: 13 93 - maxItems: 13 94 - interrupt-names: 95 - items: 96 - - const: link_state_p0 97 - - const: link_state_p1 98 - - const: link_state_p2 99 - - const: link_state_p3 100 - - const: link_state_p4 101 - - const: link_state_p5 102 - - const: link_state_p7 103 - - const: link_state_p8 104 - - const: phy 105 - - const: ts 106 - - const: imp_sleep_timer_p5 107 - - const: imp_sleep_timer_p7 108 - - const: imp_sleep_timer_p8 109 - required: 110 - - interrupts 111 - else: 112 - properties: 113 - reg: 114 - maxItems: 1 71 + allOf: 72 + - $ref: dsa.yaml# 73 + - if: 74 + properties: 75 + compatible: 76 + contains: 77 + enum: 78 + - brcm,bcm5325 79 + - brcm,bcm53115 80 + - brcm,bcm53125 81 + - brcm,bcm53128 82 + - brcm,bcm5365 83 + - brcm,bcm5395 84 + - brcm,bcm5397 85 + - brcm,bcm5398 86 + then: 87 + $ref: /schemas/spi/spi-peripheral-props.yaml 88 + 89 + # BCM585xx/586xx/88312 SoCs 90 + - if: 91 + properties: 92 + compatible: 93 + contains: 94 + enum: 95 + - brcm,bcm58522-srab 96 + - brcm,bcm58523-srab 97 + - brcm,bcm58525-srab 98 + - brcm,bcm58622-srab 99 + - brcm,bcm58623-srab 100 + - brcm,bcm58625-srab 101 + - brcm,bcm88312-srab 102 + then: 103 + properties: 104 + reg: 105 + minItems: 3 106 + maxItems: 3 107 + reg-names: 108 + items: 109 + - const: srab 110 + - const: mux_config 111 + - const: sgmii_config 112 + interrupts: 113 + minItems: 13 114 + maxItems: 13 115 + interrupt-names: 116 + items: 117 + - const: link_state_p0 118 + - const: link_state_p1 119 + - const: link_state_p2 120 + - const: link_state_p3 121 + - const: link_state_p4 122 + - const: link_state_p5 123 + - const: link_state_p7 124 + - const: link_state_p8 125 + - const: phy 126 + - const: ts 127 + - const: imp_sleep_timer_p5 128 + - const: imp_sleep_timer_p7 129 + - const: imp_sleep_timer_p8 130 + required: 131 + - interrupts 132 + else: 133 + properties: 134 + reg: 135 + maxItems: 1 115 136 116 137 unevaluatedProperties: false 117 138
+1
Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
··· 12 12 13 13 allOf: 14 14 - $ref: dsa.yaml# 15 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 15 16 16 17 properties: 17 18 # See Documentation/devicetree/bindings/net/dsa/dsa.yaml for a list of additional
+1
Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml
··· 14 14 15 15 allOf: 16 16 - $ref: "dsa.yaml#" 17 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 17 18 18 19 maintainers: 19 20 - Vladimir Oltean <vladimir.oltean@nxp.com>
+1
Documentation/devicetree/bindings/net/dsa/realtek.yaml
··· 108 108 - reg 109 109 110 110 then: 111 + $ref: /schemas/spi/spi-peripheral-props.yaml# 111 112 not: 112 113 required: 113 114 - mdc-gpios