Other Parts Discussed in Thread: TCAN4550
Hi TI Team,
In our device, we are using 2# TCAN4550RGYRQ1 IC for CAN communication,
Normally we do not face any issues with communication.
After waking up we are not receiving CAN data from the second CAN No issue was observed in the first CAN
So please let us know anything we need to change in the device tree ,
Below is the device tree configurations made
&lpspi2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lpspi2>; fsl,spi-num-chipselects = <1>; spi-max-frequency = <40000000>; cs-gpios = <&lsio_gpio4 22 GPIO_ACTIVE_HIGH>; status = "okay";
tcan4x5x0: tcan4x5x@0 { compatible = "ti,tcan4x5x"; reg = <0>; pinctrl-names = "default"; #address-cells = <1>; #size-cells = <1>; spi-max-frequency = <5000000>; bosch,mram-cfg = <0x0 3 2 32 10 1 32 7>; clocks = <&hclk>, <&cclk>; clock-names = "hclk", "cclk"; interrupt-parent = <&lsio_gpio3>; interrupts = <12 GPIO_ACTIVE_HIGH>; data-ready-gpios = <&lsio_gpio3 12 GPIO_ACTIVE_HIGH>; reset-gpios= <&exp2 12 GPIO_ACTIVE_HIGH>; iw-tcan-prop; wakeup-source; status = "okay"; }; };
&lpspi3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lpspi3>; fsl,spi-num-chipselects = <1>; spi-max-frequency = <40000000>; cs-gpios = <&lsio_gpio0 16 GPIO_ACTIVE_HIGH>; status = "okay";
tcan4x5x1: tcan4x5x@0 { compatible = "ti,tcan4x5x"; reg = <0>; pinctrl-names = "default"; #address-cells = <1>; #size-cells = <1>; spi-max-frequency = <5000000>; bosch,mram-cfg = <0x0 3 2 32 10 1 32 7>; //<0x0 3 2 32 10 0 26 12>; // <0x0 3 2 32 10 1 32 7> clocks = <&hclk>, <&cclk>; clock-names = "hclk", "cclk"; interrupt-parent = <&lsio_gpio3>; interrupts = <18 GPIO_ACTIVE_HIGH>; data-ready-gpios = <&lsio_gpio3 18 GPIO_ACTIVE_HIGH>; reset-gpios = <&exp2 11 GPIO_ACTIVE_HIGH>; iw-tcan-prop; wakeup-source; status = "okay";
}; }; pinctrl_lpspi3: lpspi3grp { fsl,pins = <
IMX8DXL_SPI3_SCK_ADMA_SPI3_SCK 0x6000040 / 0x0600004c / IMX8DXL_SPI3_SDO_ADMA_SPI3_SDO 0x6000040 IMX8DXL_SPI3_SDI_ADMA_SPI3_SDI 0x6000040 IMX8DXL_SPI3_CS0_LSIO_GPIO0_IO16 0x6000040 IMX8DXL_QSPI0B_DATA0_LSIO_GPIO3_IO18 0xA4000021 IMX8DXL_QSPI0B_DQS_LSIO_GPIO3_IO22 0xA4000021 >; };
Observed Issue prints
root@imx8dxl-iwg46s:~# candump can4
[2024-01-19 12:14:54] [ 310.255222] tcan4x5x spi3.0 can4: msg lost in rxf0
[2024-01-19 12:14:55] [ 310.952451] tcan4x5x spi3.0 can4: msg lost in rxf0
[2024-01-19 12:14:56] [ 311.504395] tcan4x5x spi3.0 can4: msg lost in rxf0
[2024-01-19 12:14:56] [ 311.971422] tcan4x5x spi3.0 can4: msg lost in rxf0
I hope we will recieve the solution for this issue soon
Thankyou
Regards,
Dhiraj