OSDN Git Service

dt-bindings: net: dsa: sja1105: add {rx,tx}-internal-delay-ps
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 18 Oct 2021 19:29:51 +0000 (22:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Oct 2021 10:32:28 +0000 (11:32 +0100)
commitac41ac81e331319a1773d5a6a6744e8ce7389f08
tree3b44515a3efb5fb1b8d42d2d406d3dbbf387e2d5
parente00eb643324c7a57f4f3fcb2bc5e882f4b88a3a1
dt-bindings: net: dsa: sja1105: add {rx,tx}-internal-delay-ps

Add a schema validator to nxp,sja1105.yaml and to dsa.yaml for explicit
MAC-level RGMII delays. These properties must be per port and must be
present only for a phy-mode that represents RGMII.

We tell dsa.yaml that these port properties might be present, we also
define their valid values for SJA1105. We create a common definition for
the RX and TX valid range, since it's quite a mouthful.

We also modify the example to include the explicit RGMII delay properties.
On the fixed-link ports (in the example, port 4), having these explicit
delays is actually mandatory, since with the new behavior, the driver
shouts that it is interpreting what delays to apply based on phy-mode.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/dsa/dsa.yaml
Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml