Skip to content

Commit 8650381

Browse files
committed
dt-bindings: net: Add missing properties used in examples
With 'unevaluatedProperties' support implemented, the following warnings are generated in the net bindings: Documentation/devicetree/bindings/net/qca,ar71xx.example.dt.yaml: ethernet@19000000: Unevaluated properties are not allowed ('qca,ethcfg' was unexpected) Documentation/devicetree/bindings/net/stm32-dwmac.example.dt.yaml: ethernet@40028000: Unevaluated properties are not allowed ('reg-names', 'snps,pbl' were unexpected) Documentation/devicetree/bindings/net/ti,cpsw-switch.example.dt.yaml: mdio@1000: Unevaluated properties are not allowed ('clocks', 'clock-names' were unexpected) Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.example.dt.yaml: mdio@f00: Unevaluated properties are not allowed ('clocks', 'clock-names' were unexpected) Add the missing properties/nodes as necessary. Cc: "David S. Miller" <[email protected]> Cc: Jakub Kicinski <[email protected]> Cc: "Andreas Färber" <[email protected]> Cc: Manivannan Sadhasivam <[email protected]> Cc: Maxime Coquelin <[email protected]> Cc: Alexandre Torgue <[email protected]> Cc: Nobuhiro Iwamatsu <[email protected]> Cc: Cristian Ciocaltea <[email protected]> Cc: "G. Jaya Kumaran" <[email protected]> Cc: Oleksij Rempel <[email protected]> Cc: Christophe Roullier <[email protected]> Cc: Grygorii Strashko <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1d01efa commit 8650381

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

Documentation/devicetree/bindings/net/qca,ar71xx.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ examples:
8585
reset-names = "mac", "mdio";
8686
clocks = <&pll 1>, <&pll 2>;
8787
clock-names = "eth", "mdio";
88-
qca,ethcfg = <&ethcfg>;
8988
phy-mode = "mii";
9089
phy-handle = <&phy_port4>;
9190
};

Documentation/devicetree/bindings/net/stm32-dwmac.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ properties:
4444
- st,stm32-dwmac
4545
- const: snps,dwmac-3.50a
4646

47+
reg: true
48+
49+
reg-names:
50+
items:
51+
- const: stmmaceth
52+
4753
clocks:
4854
minItems: 3
4955
items:

Documentation/devicetree/bindings/net/ti,davinci-mdio.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ properties:
3737
maximum: 2500000
3838
description: MDIO Bus frequency
3939

40+
clocks:
41+
maxItems: 1
42+
43+
clock-names:
44+
items:
45+
- const: fck
46+
4047
ti,hwmods:
4148
description: TI hwmod name
4249
deprecated: true

0 commit comments

Comments
 (0)