Enabling CAN Driver for Nvidia Drive AGX Orin

Hi @chintan.patel2,
Below are the connection pictures used at our setup to test can loopback




I ran below commands to test can loopback

sudo -s
ip link set can1 type can bitrate 500000
ip link set up can1
ip link set can0 type can bitrate 500000
ip link set up can0
candump -x any &
root@tegra-ubuntu:/home/nvidia# cansend can1 01a#123456789ABC
root@tegra-ubuntu:/home/nvidia#   can1  01A   [6]  12 34 56 78 9A BC
  can1  TX - -  01A   [6]  12 34 56 78 9A BC
  can0  RX - -  01A   [6]  12 34 56 78 9A BC

root@tegra-ubuntu:/home/nvidia# cansend can0 01a#123456789ABC
root@tegra-ubuntu:/home/nvidia#   can0  TX - -  01A   [6]  12 34 56 78 9A BC
  can1  RX - -  01A   [6]  12 34 56 78 9A BC
  can1  01A   [6]  12 34 56 78 9A BC

From above, we can see loopback between can0 and can1 is working.
I also tested send/receive data from PCAN. For this test, the connection should be like below

I used below setting for PCAN view and tested sending CAN message

After selecting Transmit and send, I see below message on tegra terminal

root@tegra-ubuntu:/home/nvidia#   can0  RX - -  123   [8]  01 02 03 04 05 06 07 08
  can1  RX - -  123   [8]  01 02 03 04 05 06 07 08
  can1  123   [8]  01 02 03 04 05 06 07 08

Now I tested sending data from tegra like below and CAN message is noticed on PCAN receive window.

root@tegra-ubuntu:/home/nvidia# cansend can0 234#87654321
  can0  TX - -  234   [4]  87 65 43 21
  can1  RX - -  234   [4]  87 65 43 21
  can1  234   [4]  87 65 43 21

For P14 only one 120 resister between 1 and 8 is enough.
Please double check your connections per shared images.