Skip to content

Commit b735154

Browse files
CHKDSK88davem330
authored andcommitted
dt-bindings: net: dsa: vsc73xx: add {rx,tx}-internal-delay-ps
Add a schema validator to vitesse,vsc73xx.yaml for MAC-level RGMII delays in the CPU port. Additionally, valid values for VSC73XX were defined, and a common definition for the RX and TX valid range was created. Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Pawel Dembicki <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3b91b03 commit b735154

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Documentation/devicetree/bindings/net/dsa/vitesse,vsc73xx.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,25 @@ properties:
5252
allOf:
5353
- $ref: dsa.yaml#/$defs/ethernet-ports
5454

55+
patternProperties:
56+
"^(ethernet-)?ports$":
57+
additionalProperties: true
58+
patternProperties:
59+
"^(ethernet-)?port@6$":
60+
allOf:
61+
- if:
62+
properties:
63+
phy-mode:
64+
contains:
65+
enum:
66+
- rgmii
67+
then:
68+
properties:
69+
rx-internal-delay-ps:
70+
$ref: "#/$defs/internal-delay-ps"
71+
tx-internal-delay-ps:
72+
$ref: "#/$defs/internal-delay-ps"
73+
5574
# This checks if reg is a chipselect so the device is on an SPI
5675
# bus, the if-clause will fail if reg is a tuple such as for a
5776
# platform device.
@@ -67,6 +86,15 @@ required:
6786
- compatible
6887
- reg
6988

89+
$defs:
90+
internal-delay-ps:
91+
description:
92+
Disable tunable delay lines using 0 ps, or enable them and select
93+
the phase between 1400 ps and 2000 ps in increments of 300 ps.
94+
default: 2000
95+
enum:
96+
[0, 1400, 1700, 2000]
97+
7098
unevaluatedProperties: false
7199

72100
examples:
@@ -108,6 +136,8 @@ examples:
108136
reg = <6>;
109137
ethernet = <&gmac1>;
110138
phy-mode = "rgmii";
139+
rx-internal-delay-ps = <0>;
140+
tx-internal-delay-ps = <0>;
111141
fixed-link {
112142
speed = <1000>;
113143
full-duplex;
@@ -150,6 +180,8 @@ examples:
150180
ethernet-port@6 {
151181
reg = <6>;
152182
ethernet = <&enet0>;
183+
rx-internal-delay-ps = <0>;
184+
tx-internal-delay-ps = <0>;
153185
phy-mode = "rgmii";
154186
fixed-link {
155187
speed = <1000>;

0 commit comments

Comments
 (0)