Skip to content

Commit 25501d8

Browse files
vladimirolteanShawn Guo
authored andcommitted
arm64: dts: lx2160abluebox3: 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 apply both RX and TX delays. To preserve that, add explicit 2 nanosecond delays, which are identical with what the driver used to add (a 90 degree phase shift). The delays from the phy-mode are 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]> Signed-off-by: Shawn Guo <[email protected]>
1 parent e691f92 commit 25501d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@
386386
reg = <2>;
387387
ethernet = <&dpmac17>;
388388
phy-mode = "rgmii-id";
389+
rx-internal-delay-ps = <2000>;
390+
tx-internal-delay-ps = <2000>;
389391

390392
fixed-link {
391393
speed = <1000>;
@@ -529,6 +531,8 @@
529531
reg = <2>;
530532
ethernet = <&dpmac18>;
531533
phy-mode = "rgmii-id";
534+
rx-internal-delay-ps = <2000>;
535+
tx-internal-delay-ps = <2000>;
532536

533537
fixed-link {
534538
speed = <1000>;

0 commit comments

Comments
 (0)