Commit 2dc81a0e authored by Jakub Kicinski's avatar Jakub Kicinski

Merge branch 'remove-label-cpu-from-dsa-dt-bindings'

Vladimir Oltean says:

====================
Remove label = "cpu" from DSA dt-bindings

As explained in more detail in patch 1/3, label = "cpu" is not part of
DSA's device tree bindings, yet we have some checks in the dt-schema for
mt7530 which are written as if it was.

Reformulate those checks, and remove all occurrences of this seemingly
used, but actually unused, property from the binding examples.
====================

Link: https://lore.kernel.org/r/20220912175058.280386-1-vladimir.oltean@nxp.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parents f0bd32c8 9cc115d8
...@@ -76,7 +76,6 @@ eth1: ethernet@1a000000 { ...@@ -76,7 +76,6 @@ eth1: ethernet@1a000000 {
switch_port0: port@0 { switch_port0: port@0 {
reg = <0x0>; reg = <0x0>;
label = "cpu";
ethernet = <&eth1>; ethernet = <&eth1>;
phy-mode = "gmii"; phy-mode = "gmii";
......
...@@ -61,7 +61,6 @@ examples: ...@@ -61,7 +61,6 @@ examples:
}; };
ethernet-port@3 { ethernet-port@3 {
reg = <3>; reg = <3>;
label = "cpu";
ethernet = <&fec1>; ethernet = <&fec1>;
phy-mode = "rgmii-id"; phy-mode = "rgmii-id";
......
...@@ -169,7 +169,6 @@ examples: ...@@ -169,7 +169,6 @@ examples:
port@8 { port@8 {
reg = <8>; reg = <8>;
label = "cpu";
phy-mode = "rgmii-txid"; phy-mode = "rgmii-txid";
ethernet = <&eth0>; ethernet = <&eth0>;
fixed-link { fixed-link {
...@@ -252,7 +251,6 @@ examples: ...@@ -252,7 +251,6 @@ examples:
port@8 { port@8 {
ethernet = <&amac2>; ethernet = <&amac2>;
label = "cpu";
reg = <8>; reg = <8>;
phy-mode = "internal"; phy-mode = "internal";
......
...@@ -91,7 +91,6 @@ examples: ...@@ -91,7 +91,6 @@ examples:
port@0 { port@0 {
reg = <0>; reg = <0>;
label = "cpu";
ethernet = <&gmac0>; ethernet = <&gmac0>;
phy-mode = "mii"; phy-mode = "mii";
......
...@@ -46,7 +46,6 @@ I2C managed mode: ...@@ -46,7 +46,6 @@ I2C managed mode:
port@0 { /* RMII fixed link to master */ port@0 { /* RMII fixed link to master */
reg = <0>; reg = <0>;
label = "cpu";
ethernet = <&master>; ethernet = <&master>;
}; };
...@@ -83,7 +82,6 @@ MDIO managed mode: ...@@ -83,7 +82,6 @@ MDIO managed mode:
port@0 { port@0 {
reg = <0>; reg = <0>;
label = "cpu";
ethernet = <&master>; ethernet = <&master>;
}; };
......
...@@ -96,7 +96,6 @@ switch@e108000 { ...@@ -96,7 +96,6 @@ switch@e108000 {
port@6 { port@6 {
reg = <0x6>; reg = <0x6>;
label = "cpu";
ethernet = <&eth0>; ethernet = <&eth0>;
}; };
}; };
......
...@@ -163,13 +163,8 @@ patternProperties: ...@@ -163,13 +163,8 @@ patternProperties:
allOf: allOf:
- $ref: dsa-port.yaml# - $ref: dsa-port.yaml#
- if: - if:
properties: required: [ ethernet ]
label:
const: cpu
then: then:
required:
- phy-mode
properties: properties:
reg: reg:
enum: enum:
...@@ -187,9 +182,7 @@ $defs: ...@@ -187,9 +182,7 @@ $defs:
patternProperties: patternProperties:
"^(ethernet-)?port@[0-9]+$": "^(ethernet-)?port@[0-9]+$":
if: if:
properties: required: [ ethernet ]
label:
const: cpu
then: then:
if: if:
properties: properties:
...@@ -215,9 +208,7 @@ $defs: ...@@ -215,9 +208,7 @@ $defs:
patternProperties: patternProperties:
"^(ethernet-)?port@[0-9]+$": "^(ethernet-)?port@[0-9]+$":
if: if:
properties: required: [ ethernet ]
label:
const: cpu
then: then:
if: if:
properties: properties:
...@@ -334,7 +325,6 @@ examples: ...@@ -334,7 +325,6 @@ examples:
port@6 { port@6 {
reg = <6>; reg = <6>;
label = "cpu";
ethernet = <&gmac0>; ethernet = <&gmac0>;
phy-mode = "rgmii"; phy-mode = "rgmii";
...@@ -398,7 +388,6 @@ examples: ...@@ -398,7 +388,6 @@ examples:
port@6 { port@6 {
reg = <6>; reg = <6>;
label = "cpu";
ethernet = <&gmac0>; ethernet = <&gmac0>;
phy-mode = "trgmii"; phy-mode = "trgmii";
...@@ -463,7 +452,6 @@ examples: ...@@ -463,7 +452,6 @@ examples:
port@6 { port@6 {
reg = <6>; reg = <6>;
label = "cpu";
ethernet = <&gmac0>; ethernet = <&gmac0>;
phy-mode = "2500base-x"; phy-mode = "2500base-x";
...@@ -530,7 +518,6 @@ examples: ...@@ -530,7 +518,6 @@ examples:
port@6 { port@6 {
reg = <6>; reg = <6>;
label = "cpu";
ethernet = <&gmac0>; ethernet = <&gmac0>;
phy-mode = "trgmii"; phy-mode = "trgmii";
...@@ -619,7 +606,6 @@ examples: ...@@ -619,7 +606,6 @@ examples:
port@6 { port@6 {
reg = <6>; reg = <6>;
label = "cpu";
ethernet = <&gmac0>; ethernet = <&gmac0>;
phy-mode = "trgmii"; phy-mode = "trgmii";
...@@ -708,7 +694,6 @@ examples: ...@@ -708,7 +694,6 @@ examples:
port@6 { port@6 {
reg = <6>; reg = <6>;
label = "cpu";
ethernet = <&gmac0>; ethernet = <&gmac0>;
phy-mode = "trgmii"; phy-mode = "trgmii";
...@@ -796,7 +781,6 @@ examples: ...@@ -796,7 +781,6 @@ examples:
port@6 { port@6 {
reg = <6>; reg = <6>;
label = "cpu";
ethernet = <&gmac0>; ethernet = <&gmac0>;
phy-mode = "trgmii"; phy-mode = "trgmii";
......
...@@ -107,7 +107,6 @@ examples: ...@@ -107,7 +107,6 @@ examples:
}; };
port@5 { port@5 {
reg = <5>; reg = <5>;
label = "cpu";
ethernet = <&eth0>; ethernet = <&eth0>;
phy-mode = "rgmii"; phy-mode = "rgmii";
...@@ -146,7 +145,6 @@ examples: ...@@ -146,7 +145,6 @@ examples:
}; };
port@6 { port@6 {
reg = <6>; reg = <6>;
label = "cpu";
ethernet = <&eth0>; ethernet = <&eth0>;
phy-mode = "rgmii"; phy-mode = "rgmii";
......
...@@ -159,7 +159,6 @@ examples: ...@@ -159,7 +159,6 @@ examples:
port@0 { port@0 {
reg = <0>; reg = <0>;
label = "cpu";
ethernet = <&gmac1>; ethernet = <&gmac1>;
phy-mode = "rgmii"; phy-mode = "rgmii";
...@@ -221,7 +220,6 @@ examples: ...@@ -221,7 +220,6 @@ examples:
port@0 { port@0 {
reg = <0>; reg = <0>;
label = "cpu";
ethernet = <&gmac1>; ethernet = <&gmac1>;
phy-mode = "rgmii"; phy-mode = "rgmii";
...@@ -268,7 +266,6 @@ examples: ...@@ -268,7 +266,6 @@ examples:
port@6 { port@6 {
reg = <0>; reg = <0>;
label = "cpu";
ethernet = <&gmac1>; ethernet = <&gmac1>;
phy-mode = "sgmii"; phy-mode = "sgmii";
......
...@@ -189,7 +189,6 @@ examples: ...@@ -189,7 +189,6 @@ examples:
}; };
port@5 { port@5 {
reg = <5>; reg = <5>;
label = "cpu";
ethernet = <&gmac0>; ethernet = <&gmac0>;
phy-mode = "rgmii"; phy-mode = "rgmii";
fixed-link { fixed-link {
...@@ -277,7 +276,6 @@ examples: ...@@ -277,7 +276,6 @@ examples:
}; };
port@6 { port@6 {
reg = <6>; reg = <6>;
label = "cpu";
ethernet = <&fec1>; ethernet = <&fec1>;
phy-mode = "rgmii"; phy-mode = "rgmii";
tx-internal-delay-ps = <2000>; tx-internal-delay-ps = <2000>;
......
...@@ -130,7 +130,6 @@ examples: ...@@ -130,7 +130,6 @@ examples:
port@4 { port@4 {
reg = <4>; reg = <4>;
ethernet = <&gmac2>; ethernet = <&gmac2>;
label = "cpu";
phy-mode = "internal"; phy-mode = "internal";
fixed-link { fixed-link {
......
...@@ -75,7 +75,6 @@ switch@0 { ...@@ -75,7 +75,6 @@ switch@0 {
}; };
vsc: port@6 { vsc: port@6 {
reg = <6>; reg = <6>;
label = "cpu";
ethernet = <&gmac1>; ethernet = <&gmac1>;
phy-mode = "rgmii"; phy-mode = "rgmii";
fixed-link { fixed-link {
...@@ -117,7 +116,6 @@ switch@2,0 { ...@@ -117,7 +116,6 @@ switch@2,0 {
}; };
vsc: port@6 { vsc: port@6 {
reg = <6>; reg = <6>;
label = "cpu";
ethernet = <&enet0>; ethernet = <&enet0>;
phy-mode = "rgmii"; phy-mode = "rgmii";
fixed-link { fixed-link {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment