The port node pattern "^ethernet-port@[1-6]+$" also matches multi-digit unit addresses such as ethernet-port@11, which the reg property does not allow. Drop the stray '+'. Also restrict the ethernet-ports object to its declared properties. Without this, nodes outside the port pattern are accepted through the generic ethernet-switch schema. Signed-off-by: Til Kaiser --- .../devicetree/bindings/net/qcom,ipq9574-ppe.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml b/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml index 6d0b21a10732..1a78e2c82b90 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml @@ -174,8 +174,17 @@ properties: - interrupt-names ethernet-ports: + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + patternProperties: - "^ethernet-port@[1-6]+$": + "^ethernet-port@[1-6]$": type: object unevaluatedProperties: false $ref: ethernet-switch-port.yaml# -- 2.56.0