Skip to content

Commit e691f92

Browse files
vladimirolteanShawn Guo
authored andcommitted
ARM: dts: ls1021a-tsn: update RGMII delays for sja1105 switch
In the new behavior, the sja1105 driver expects there to be explicit RGMII delays present on the fixed-link ports, otherwise it will complain that it falls back to legacy behavior, which is to apply RGMII delays incorrectly derived from the phy-mode string. In this case, the legacy behavior of the driver is to not apply delays in any direction (mostly because the SJA1105T can't do that, so this board uses PCB traces). To preserve that but also silence the driver, use explicit delays of 0 ns. The delay information from the phy-mode is ignored by new kernels (it's still RGMII as long as it's "rgmii*" something), and the explicit {rx,tx}-internal-delay-ps properties are ignored by old kernels, so the change works both ways. Signed-off-by: Vladimir Oltean <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent f2c2e9e commit e691f92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm/boot/dts/ls1021a-tsn.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@
9191
/* Internal port connected to eth2 */
9292
ethernet = <&enet2>;
9393
phy-mode = "rgmii";
94+
rx-internal-delay-ps = <0>;
95+
tx-internal-delay-ps = <0>;
9496
reg = <4>;
9597

9698
fixed-link {

0 commit comments

Comments
 (0)