mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-01 10:43:43 +00:00
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 <andrew@lunn.ch> Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3b91b03271
commit
b735154aeb
@ -52,6 +52,25 @@ properties:
|
|||||||
allOf:
|
allOf:
|
||||||
- $ref: dsa.yaml#/$defs/ethernet-ports
|
- $ref: dsa.yaml#/$defs/ethernet-ports
|
||||||
|
|
||||||
|
patternProperties:
|
||||||
|
"^(ethernet-)?ports$":
|
||||||
|
additionalProperties: true
|
||||||
|
patternProperties:
|
||||||
|
"^(ethernet-)?port@6$":
|
||||||
|
allOf:
|
||||||
|
- if:
|
||||||
|
properties:
|
||||||
|
phy-mode:
|
||||||
|
contains:
|
||||||
|
enum:
|
||||||
|
- rgmii
|
||||||
|
then:
|
||||||
|
properties:
|
||||||
|
rx-internal-delay-ps:
|
||||||
|
$ref: "#/$defs/internal-delay-ps"
|
||||||
|
tx-internal-delay-ps:
|
||||||
|
$ref: "#/$defs/internal-delay-ps"
|
||||||
|
|
||||||
# This checks if reg is a chipselect so the device is on an SPI
|
# This checks if reg is a chipselect so the device is on an SPI
|
||||||
# bus, the if-clause will fail if reg is a tuple such as for a
|
# bus, the if-clause will fail if reg is a tuple such as for a
|
||||||
# platform device.
|
# platform device.
|
||||||
@ -67,6 +86,15 @@ required:
|
|||||||
- compatible
|
- compatible
|
||||||
- reg
|
- reg
|
||||||
|
|
||||||
|
$defs:
|
||||||
|
internal-delay-ps:
|
||||||
|
description:
|
||||||
|
Disable tunable delay lines using 0 ps, or enable them and select
|
||||||
|
the phase between 1400 ps and 2000 ps in increments of 300 ps.
|
||||||
|
default: 2000
|
||||||
|
enum:
|
||||||
|
[0, 1400, 1700, 2000]
|
||||||
|
|
||||||
unevaluatedProperties: false
|
unevaluatedProperties: false
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
@ -108,6 +136,8 @@ examples:
|
|||||||
reg = <6>;
|
reg = <6>;
|
||||||
ethernet = <&gmac1>;
|
ethernet = <&gmac1>;
|
||||||
phy-mode = "rgmii";
|
phy-mode = "rgmii";
|
||||||
|
rx-internal-delay-ps = <0>;
|
||||||
|
tx-internal-delay-ps = <0>;
|
||||||
fixed-link {
|
fixed-link {
|
||||||
speed = <1000>;
|
speed = <1000>;
|
||||||
full-duplex;
|
full-duplex;
|
||||||
@ -150,6 +180,8 @@ examples:
|
|||||||
ethernet-port@6 {
|
ethernet-port@6 {
|
||||||
reg = <6>;
|
reg = <6>;
|
||||||
ethernet = <&enet0>;
|
ethernet = <&enet0>;
|
||||||
|
rx-internal-delay-ps = <0>;
|
||||||
|
tx-internal-delay-ps = <0>;
|
||||||
phy-mode = "rgmii";
|
phy-mode = "rgmii";
|
||||||
fixed-link {
|
fixed-link {
|
||||||
speed = <1000>;
|
speed = <1000>;
|
||||||
|
Loading…
Reference in New Issue
Block a user