Hi!
I am using the MCP2515 CAN Module that works
at Raspberry Pi 3 with the following instruction at
/boot/config.txt:
Code:
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=12
I have two devices connected at this CAN bus, sending data continuously that I can see with candump.
I am trying to migrate to Asus Tinker Board S.
I connected the MCP2515 CAN Module to Tinker Board S exactly as Raspberry Pi 3.
I think I am almost there but candump show anything yet.
At
/sys/bus/spi/devices/spi2.0/net/ is available can0.
The interface can0 is up:
Code:
# ip -details -statistics link show can0
3: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10
link/can promiscuity 0
can state ERROR-ACTIVE restart-ms 0
bitrate 125000 sample-point 0.875
tq 500 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1
mcp251x: tseg1 3..16 tseg2 2..8 sjw 1..4 brp 1..64 brp-inc 1
clock 8000000
...
#
At my /boot/hw_intf.conf I added
intf:dtoverlay=mcp2515-can0:
Code:
# cat /boot/hw_intf.conf
...
intf:dtoverlay=mcp2515-can0
...
As it did not works I tried to pass the "oscillator" and "interrupt" arguments as below:
intf:dtoverlay=mcp2515-can0,
oscillator=8000000,interrupt=12
After the reboot the Tinker Board freeze!
The only way to revert is by connecting the mini-USB cable on the PC and revert the instruction above.
Could someone tell me what is the GPIO to connect the MCP2515 interrupt pin?
And how to inform the clock used by MCP2515 ?
More info:
Code:
# uname -a
Linux tinkerboard 4.4.132+ #8 SMP Thu Aug 13 08:51:08 UTC 2020 armv7l GNU/Linux
# cat /etc/version
2.1.16-20200813
I have the same issue related by fabio.dogliotti:
Code:
# dmesg | grep can0
[ 2.211122] rockchip-pinctrl pinctrl: unable to find group for node can0_pins
#
Best regards,
Jonas