dt-bindings: net: mediatek,net: fixup MAC binding
Subsystems (4)
PATCH 1/1 dt-bindings: net: mediatek,net: fixup MAC binding
From: Rafał Miłecki <[email protected]>
1. Use unevaluatedProperties
It's needed to allow ethernet-controller.yaml properties work correctly.
2. Drop unneeded phy-handle/phy-mode
3. Don't require phy-handle
Some SoCs may use fixed link.
For in-kernel MT7621 DTS files this fixes following errors:arch/mips/boot/dts/ralink/mt7621-tplink-hc220-g5-v1.dtb: ethernet@1e100000: mac@0: 'fixed-link' does not match any of the regexes: 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/net/mediatek,net.yamlarch/mips/boot/dts/ralink/mt7621-tplink-hc220-g5-v1.dtb: ethernet@1e100000: mac@0: 'phy-handle' is a required property
From schema: Documentation/devicetree/bindings/net/mediatek,net.yamlarch/mips/boot/dts/ralink/mt7621-tplink-hc220-g5-v1.dtb: ethernet@1e100000: mac@1: 'fixed-link' does not match any of the regexes: 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/net/mediatek,net.yamlarch/mips/boot/dts/ralink/mt7621-tplink-hc220-g5-v1.dtb: ethernet@1e100000: mac@1: 'phy-handle' is a required property
From schema: Documentation/devicetree/bindings/net/mediatek,net.yaml
--- Documentation/devicetree/bindings/net/mediatek,net.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
Documentation/devicetree/bindings/net/mediatek,net.yaml +1 -6
@@ -388,7 +388,7 @@ allOf: patternProperties: "^mac@[0-1]$": type: object - additionalProperties: false + unevaluatedProperties: false allOf: - $ref: ethernet-controller.yaml# description:
@@ -400,14 +400,9 @@ patternProperties: reg: maxItems: 1 - phy-handle: true - - phy-mode: true - required: - reg - compatible - - phy-handle required: - compatible
Signature · 1 line
2.35.3
Quoted 7 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
1. Use unevaluatedProperties
It's needed to allowethernet-controller.yamlproperties work correctly.2. Drop unneeded phy-handle/phy-mode
Best regards,
Krzysztof
This patch was applied to netdev/net.git (main) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by David S. Miller <[email protected]>:
Quoted 8 lines · On Sat, 29 Jul 2023 13:10:45 +0200 you wrote:
From: Rafał Miłecki <[email protected]>
1. Use unevaluatedProperties
It's needed to allowethernet-controller.yamlproperties work correctly.2. Drop unneeded phy-handle/phy-mode
[...]
Here is the summary with links:
- dt-bindings: net: mediatek,net: fixup MAC binding
https://git.kernel.org/netdev/net/c/8469c7f5472f
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Il 29/07/23 13:10, Rafał Miłecki ha scritto:
Quoted 20 lines
From: Rafał Miłecki <[email protected]>
1. Use unevaluatedProperties
It's needed to allowethernet-controller.yamlproperties work correctly.2. Drop unneeded phy-handle/phy-mode
3. Don't require phy-handle
Some SoCs may use fixed link.For in-kernel MT7621 DTS files this fixes following errors:
arch/mips/boot/dts/ralink/mt7621-tplink-hc220-g5-v1.dtb: ethernet@1e100000: mac@0: 'fixed-link' does not match any of the regexes: 'pinctrl-[0-9]+'
From schema:Documentation/devicetree/bindings/net/mediatek,net.yamlarch/mips/boot/dts/ralink/mt7621-tplink-hc220-g5-v1.dtb: ethernet@1e100000: mac@0: 'phy-handle' is a required property
From schema:Documentation/devicetree/bindings/net/mediatek,net.yamlarch/mips/boot/dts/ralink/mt7621-tplink-hc220-g5-v1.dtb: ethernet@1e100000: mac@1: 'fixed-link' does not match any of the regexes: 'pinctrl-[0-9]+'
From schema:Documentation/devicetree/bindings/net/mediatek,net.yamlarch/mips/boot/dts/ralink/mt7621-tplink-hc220-g5-v1.dtb: ethernet@1e100000: mac@1: 'phy-handle' is a required property
From schema:Documentation/devicetree/bindings/net/mediatek,net.yaml
Quoted 1 line
Signed-off-by Rafał Miłecki <[email protected]>