]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit19c6a1d80f01b7496b3dfdd7e1d8b7782b45e850
tree3b44515a3efb5fb1b8d42d2d406d3dbbf387e2d5
parentfea3f4b7d43be599c3aa4ef0499c9f2d614db3b1
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