Skip to content

Commit ca6f9d8

Browse files
fschrempfShawn Guo
authored andcommitted
arm64: dts: imx8mm-kontron: Fix CAN SPI clock frequency
The MCP2515 can be used with an SPI clock of up to 10 MHz. Set the limit accordingly to prevent any performance issues caused by the really low clock speed of 100 kHz. This removes the arbitrarily low limit on the SPI frequency, that was caused by a typo in the original dts. Without this change, receiving CAN messages on the board beyond a certain bitrate will cause overrun errors (see 'ip -det -stat link show can0'). With this fix, receiving messages on the bus works without any overrun errors for bitrates up to 1 MBit. Fixes: 8668d8b ("arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards") Cc: [email protected] Signed-off-by: Frieder Schrempf <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 6562d6e commit ca6f9d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
clocks = <&osc_can>;
9898
interrupt-parent = <&gpio4>;
9999
interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
100-
spi-max-frequency = <100000>;
100+
spi-max-frequency = <10000000>;
101101
vdd-supply = <&reg_vdd_3v3>;
102102
xceiver-supply = <&reg_vdd_5v>;
103103
};

0 commit comments

Comments
 (0)