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

dt-bindings: net: dsa/switch: Make 'ethernet-port' node addresses hex

'ethernet-port' node unit-addresses should be in hexadecimal. Some
instances have it correct, but fix the ones that don't.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20231016-dt-net-cleanups-v1-3-a525a090b444@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Rob Herring and committed by
Jakub Kicinski
51ff5150 ac8fe40c

+10 -10
+1 -1
Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml
··· 53 53 const: 0 54 54 55 55 patternProperties: 56 - "^port@[0-9]+$": 56 + "^port@[0-9a-f]+$": 57 57 type: object 58 58 59 59 $ref: ethernet-controller.yaml#
+1 -1
Documentation/devicetree/bindings/net/dsa/dsa.yaml
··· 50 50 const: 0 51 51 52 52 patternProperties: 53 - "^(ethernet-)?port@[0-9]+$": 53 + "^(ethernet-)?port@[0-9a-f]+$": 54 54 description: Ethernet switch ports 55 55 $ref: dsa-port.yaml# 56 56 unevaluatedProperties: false
+3 -3
Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml
··· 157 157 additionalProperties: true 158 158 159 159 patternProperties: 160 - "^(ethernet-)?port@[0-9]+$": 160 + "^(ethernet-)?port@[0-6]$": 161 161 type: object 162 162 additionalProperties: true 163 163 ··· 186 186 patternProperties: 187 187 "^(ethernet-)?ports$": 188 188 patternProperties: 189 - "^(ethernet-)?port@[0-9]+$": 189 + "^(ethernet-)?port@[0-6]$": 190 190 if: 191 191 required: [ ethernet ] 192 192 then: ··· 212 212 patternProperties: 213 213 "^(ethernet-)?ports$": 214 214 patternProperties: 215 - "^(ethernet-)?port@[0-9]+$": 215 + "^(ethernet-)?port@[0-6]$": 216 216 if: 217 217 required: [ ethernet ] 218 218 then:
+1 -1
Documentation/devicetree/bindings/net/dsa/microchip,lan937x.yaml
··· 39 39 "^(ethernet-)?ports$": 40 40 additionalProperties: true 41 41 patternProperties: 42 - "^(ethernet-)?port@[0-9]+$": 42 + "^(ethernet-)?port@[0-7]$": 43 43 allOf: 44 44 - if: 45 45 properties:
+1 -1
Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml
··· 77 77 "^(ethernet-)?ports$": 78 78 additionalProperties: true 79 79 patternProperties: 80 - "^(ethernet-)?port@[0-9]+$": 80 + "^(ethernet-)?port@[0-9]$": 81 81 allOf: 82 82 - if: 83 83 properties:
+2 -2
Documentation/devicetree/bindings/net/ethernet-switch.yaml
··· 36 36 const: 0 37 37 38 38 patternProperties: 39 - "^(ethernet-)?port@[0-9]+$": 39 + "^(ethernet-)?port@[0-9a-f]+$": 40 40 type: object 41 41 description: Ethernet switch ports 42 42 ··· 58 58 $ref: '#' 59 59 60 60 patternProperties: 61 - "^(ethernet-)?port@[0-9]+$": 61 + "^(ethernet-)?port@[0-9a-f]+$": 62 62 description: Ethernet switch ports 63 63 $ref: ethernet-switch-port.yaml# 64 64 unevaluatedProperties: false
+1 -1
Documentation/devicetree/bindings/net/ti,cpsw-switch.yaml
··· 86 86 const: 0 87 87 88 88 patternProperties: 89 - "^port@[0-9]+$": 89 + "^port@[12]$": 90 90 type: object 91 91 description: CPSW external ports 92 92