]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: dts: imx8mm-kontron: Fix CAN SPI clock frequency
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Fri, 15 Oct 2021 12:48:39 +0000 (14:48 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 16 Oct 2021 07:29:57 +0000 (15:29 +0800)
commit1369279b4b219d8546cb0441408c9079709beb89
tree4581f8524dfeab8cb41c8bee57cf7b60059db552
parent0622317aab1e719b7ee95e279d0e8f5e3bf14d1f
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: 243ea1aaeb10 ("arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards")
Cc: stable@vger.kernel.org
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts