Other Parts Discussed in Thread: TCAN4550
Hi Expert,
We are now using 4pcs TCAN45550 to extend 4 CAN interfaces in our board.
Hardware: Host is Nvidia Xavier NX, interface is SPI
Kernel version: 4.9.140-tegra
Chip probe is normal, open CAN0 with “sudo ip link set can0 up type can bitrate 1000000”. Another CAN port is sending data to CAN0, if the interval is set to more than 10ms, the data communication is ok. If the interval is set to 1ms, the kernel will report “msg lost in rxf0” soon
The following is device tree config.
tcan4x5x_2_0: tcan4x5x@0 {
compatible = "ti,tcan4x5x";
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
spi-max-frequency = <10000000>;
bosch,mram-cfg = <0x0 0 0 32 0 0 1 1>;
data-ready-gpios = <&tegra_aon_gpio TEGRA194_AON_GPIO(CC, 0) GPIO_ACTIVE_LOW>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x10>;
nvidia,tx-clk-tap-delay = <0x0>;
};
};
Thanks
Peter