Hi,
we have developed our own carrier for a Nvidia Jetson Nano production module. All interfaces are working very well so far. The last thing to do now is to commission two MCP2517FD on SPI0 and SPI1 for two CAN-FD interfaces. I am having a hard time with this, what is the best way to proceed?
I have already read some topics here in the forum but nothing has really brought me forward.
For example: https://forums.developer.nvidia.com/t/mcp2517fd-setup-for-jetson-nano/84341
What is the best way to proceed:
1. Get drivers e.g. from linux-rpi/drivers/net/can/spi/mcp25xxfd at upstream-v5.0-rc3-mcp25xxfd-v6.11 · msperl/linux-rpi · GitHub
How do I get that translated and loaded into my image?
What I have already tried, is the driver from seeed to use->
2 Channel CAN BUS FD Shield for Raspberry Pi - Seeed Wiki
Then i also get an entry under lsmod:
nvidia@tegra-ubuntu:~$ lsmod
Module Size Used by
…
mcp25xxfd 70197 0
can_dev 13592 1 mcp25xxfd
…
nvidia@tegra-ubuntu:~$ dmesg | fgrep -i mcp
[ 0.772006] of_fixed_clk: probe of mcp2517fd_osc failed with error -17
[ 4.360042] mcp25xxfd: loading out-of-tree module taints kernel.
[ 4.441939] mcp25xxfd spi0.0 (unnamed net_device) (uninitialized): Failed to detect MCP2517FD (osc=0x00000000).
[ 4.603154] mcp25xxfd spi1.0 (unnamed net_device) (uninitialized): Failed to detect MCP2517FD (osc=0x00000000).
nvidia@tegra-ubuntu:~$ dmesg | fgrep -i can
[ 4.339042] CAN device driver interface
2. customize the tegra210-porg-p3448-common.dtsi file I made the following customizations for the device tree:
The tegra210-porg-pinmux-p3448-0002-b00.dtsi and gpio should be correct.
My wish would be to create a driver for mcp2517fd and install it on my system.
(I have seen that seeed creates mcp25xxfd.ko and spi-tegra114p.ko kernel modules,
but with insmod I did not get further)
And then make the correct settings in the device tree.
Thank you very much!