Commit 51ff5150 authored by Rob Herring's avatar Rob Herring Committed by Jakub Kicinski

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: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarArınç ÜNAL <arinc.unal@arinc9.com>
Reviewed-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20231016-dt-net-cleanups-v1-3-a525a090b444@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ac8fe40c
...@@ -53,7 +53,7 @@ properties: ...@@ -53,7 +53,7 @@ properties:
const: 0 const: 0
patternProperties: patternProperties:
"^port@[0-9]+$": "^port@[0-9a-f]+$":
type: object type: object
$ref: ethernet-controller.yaml# $ref: ethernet-controller.yaml#
......
...@@ -50,7 +50,7 @@ $defs: ...@@ -50,7 +50,7 @@ $defs:
const: 0 const: 0
patternProperties: patternProperties:
"^(ethernet-)?port@[0-9]+$": "^(ethernet-)?port@[0-9a-f]+$":
description: Ethernet switch ports description: Ethernet switch ports
$ref: dsa-port.yaml# $ref: dsa-port.yaml#
unevaluatedProperties: false unevaluatedProperties: false
......
...@@ -157,7 +157,7 @@ patternProperties: ...@@ -157,7 +157,7 @@ patternProperties:
additionalProperties: true additionalProperties: true
patternProperties: patternProperties:
"^(ethernet-)?port@[0-9]+$": "^(ethernet-)?port@[0-6]$":
type: object type: object
additionalProperties: true additionalProperties: true
...@@ -186,7 +186,7 @@ $defs: ...@@ -186,7 +186,7 @@ $defs:
patternProperties: patternProperties:
"^(ethernet-)?ports$": "^(ethernet-)?ports$":
patternProperties: patternProperties:
"^(ethernet-)?port@[0-9]+$": "^(ethernet-)?port@[0-6]$":
if: if:
required: [ ethernet ] required: [ ethernet ]
then: then:
...@@ -212,7 +212,7 @@ $defs: ...@@ -212,7 +212,7 @@ $defs:
patternProperties: patternProperties:
"^(ethernet-)?ports$": "^(ethernet-)?ports$":
patternProperties: patternProperties:
"^(ethernet-)?port@[0-9]+$": "^(ethernet-)?port@[0-6]$":
if: if:
required: [ ethernet ] required: [ ethernet ]
then: then:
......
...@@ -39,7 +39,7 @@ patternProperties: ...@@ -39,7 +39,7 @@ patternProperties:
"^(ethernet-)?ports$": "^(ethernet-)?ports$":
additionalProperties: true additionalProperties: true
patternProperties: patternProperties:
"^(ethernet-)?port@[0-9]+$": "^(ethernet-)?port@[0-7]$":
allOf: allOf:
- if: - if:
properties: properties:
......
...@@ -77,7 +77,7 @@ patternProperties: ...@@ -77,7 +77,7 @@ patternProperties:
"^(ethernet-)?ports$": "^(ethernet-)?ports$":
additionalProperties: true additionalProperties: true
patternProperties: patternProperties:
"^(ethernet-)?port@[0-9]+$": "^(ethernet-)?port@[0-9]$":
allOf: allOf:
- if: - if:
properties: properties:
......
...@@ -36,7 +36,7 @@ patternProperties: ...@@ -36,7 +36,7 @@ patternProperties:
const: 0 const: 0
patternProperties: patternProperties:
"^(ethernet-)?port@[0-9]+$": "^(ethernet-)?port@[0-9a-f]+$":
type: object type: object
description: Ethernet switch ports description: Ethernet switch ports
...@@ -58,7 +58,7 @@ $defs: ...@@ -58,7 +58,7 @@ $defs:
$ref: '#' $ref: '#'
patternProperties: patternProperties:
"^(ethernet-)?port@[0-9]+$": "^(ethernet-)?port@[0-9a-f]+$":
description: Ethernet switch ports description: Ethernet switch ports
$ref: ethernet-switch-port.yaml# $ref: ethernet-switch-port.yaml#
unevaluatedProperties: false unevaluatedProperties: false
......
...@@ -86,7 +86,7 @@ properties: ...@@ -86,7 +86,7 @@ properties:
const: 0 const: 0
patternProperties: patternProperties:
"^port@[0-9]+$": "^port@[12]$":
type: object type: object
description: CPSW external ports description: CPSW external ports
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment