[PATCH net-next 1/2] dt-bindings: net: dsa: nxp,sja1105: Properly apply ports up to 11th port
Krzysztof Kozlowski
krzysztof.kozlowski at oss.qualcomm.com
Sun Nov 22 08:09:08 PST 2026
nxp,sja1110 devices have up to 11 ports in DTS (highest port at a), so the
pattern was missing applying schema to the last one. Fix this by
dropping the unit address from the pattern completely and adding proper
constrain on the 'reg' property, so child nodes beyond port at a will be
properly flagged as incorrect.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at oss.qualcomm.com>
---
Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml b/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml
index 0486489114cd..e9b53820cc36 100644
--- a/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml
+++ b/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml
@@ -89,7 +89,12 @@ patternProperties:
"^(ethernet-)?ports$":
additionalProperties: true
patternProperties:
- "^(ethernet-)?port@[0-9]$":
+ "^(ethernet-)?port@":
+ type: object
+ properties:
+ reg:
+ maximum: 10
+
allOf:
- if:
properties:
--
2.53.0
More information about the Linux-mediatek
mailing list