Message ID | 20230729111045.1779-1-zajec5@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | dt-bindings: net: mediatek,net: fixup MAC binding | expand |
On 29/07/2023 13:10, Rafał Miłecki wrote: > From: Rafał Miłecki <rafal@milecki.pl> > > 1. Use unevaluatedProperties > It's needed to allow ethernet-controller.yaml properties work correctly. > > 2. Drop unneeded phy-handle/phy-mode > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
Hello: This patch was applied to netdev/net.git (main) by David S. Miller <davem@davemloft.net>: On Sat, 29 Jul 2023 13:10:45 +0200 you wrote: > From: Rafał Miłecki <rafal@milecki.pl> > > 1. Use unevaluatedProperties > It's needed to allow ethernet-controller.yaml properties 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!
Il 29/07/23 13:10, Rafał Miłecki ha scritto: > From: Rafał Miłecki <rafal@milecki.pl> > > 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.yaml > arch/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.yaml > arch/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.yaml > arch/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 > > Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml index 8d3554818c37..e74502a0afe8 100644 --- a/Documentation/devicetree/bindings/net/mediatek,net.yaml +++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml @@ -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