Skip to content

Commit

Permalink
arm(64)/dts/connect4: Reduce SPI frequency of KSZ9897
Browse files Browse the repository at this point in the history
It turned out that if the SPI frequency for accessing the KSZ9897 is too
high (more than 33MHz) the data read from the PHY registers may be
corrupted if at the same time the USB is accessed. This may be caused by
interferences between the SPI and USB signals.
However reducing the frequency to a value below or equal to 33MHz for the
SPI communication with the switch eliminates this effect.
To be on the save side choose a value of 25MHz.

Signed-off-by: Lino Sanfilippo <l.sanfilippo@kunbus.com>
  • Loading branch information
linosanfilippo-kunbus committed Aug 9, 2021
1 parent 64df7c1 commit 7279e49
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/arm/boot/dts/overlays/revpi-connect4-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,12 @@
ksz9897: ksz9897@0 {
compatible = "microchip,ksz9897";
reg = <0>;
spi-max-frequency = <50000000>;
/*
* Limit frequency to 25MHz to avoid data
* corruption due to interferences with USB
* signals.
*/
spi-max-frequency = <25000000>;
spi-cpha;
spi-cpol;
reset-gpios = <&expander_core 13 GPIO_ACTIVE_LOW>;
Expand Down

0 comments on commit 7279e49

Please sign in to comment.