Skip to content

Commit 8469c7f

Browse files
Rafał Miłeckidavem330
authored andcommitted
dt-bindings: net: mediatek,net: fixup MAC binding
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 <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e739718 commit 8469c7f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Documentation/devicetree/bindings/net/mediatek,net.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ allOf:
293293
patternProperties:
294294
"^mac@[0-1]$":
295295
type: object
296-
additionalProperties: false
296+
unevaluatedProperties: false
297297
allOf:
298298
- $ref: ethernet-controller.yaml#
299299
description:
@@ -305,14 +305,9 @@ patternProperties:
305305
reg:
306306
maxItems: 1
307307

308-
phy-handle: true
309-
310-
phy-mode: true
311-
312308
required:
313309
- reg
314310
- compatible
315-
- phy-handle
316311

317312
required:
318313
- compatible

0 commit comments

Comments
 (0)