AnsweredAssumed Answered

IMX6ULL-TCAN4550 Bringup issue

Question asked by hajimohammed on Dec 5, 2019
Latest reply on Dec 9, 2019 by igorpadykov

Hi,

We are using 4.1.15 Linux NXP kernel for IMX6ULL platform.

We are using TCAN4550 module from TI, which is connected to processor through SPI.

Ported TCAN4550 driver in 4.1.15 Linux kernel. 

We are facing below errors while booting the device,

spi_imx 2008000.ecspi: probed
CAN device driver interface
tcan4x5x spi0.0: Could not get Message RAM configuration.
tcan4x5x: probe of spi0.0 failed with error -12

FYI,

  • Validated the SPI Clock, MOSI by enabling spidev driver for testing.
  • TCAN4550 driver is  base on m_can driver (Attached TCAN4550 & m_can drivers file).
  • Below is the dts file for TCAN4550 driver.

    &ecspi1 {

    fsl,spi-num-chipselects = <1>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_ecspi1_1>;
    cs-gpios = <&gpio4 26 0>;
    status = "okay";

     

     

    tcan4x5x: tcan4x5x@0 {
    compatible = "ti,tcan4x5x";
    reg = <0>;
    #address-cells = <1>;
    #size-cells = <1>;
    spi-max-frequency = <10000000>;
    interrupt-parent = <&gpio1>;
    interrupts = <23 GPIO_ACTIVE_LOW>;
    reset-gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
    status = "okay";
    };
    };

     

    pinctrl_ecspi1_1: ecspi1grp {

    fsl,pins = <
    MX6UL_PAD_CSI_DATA04__ECSPI1_SCLK 0x10b0 /*SCLK*/
    MX6UL_PAD_LCD_DATA22__ECSPI1_MOSI 0x10b0 /*MOSI*/
    MX6UL_PAD_CSI_DATA07__ECSPI1_MISO 0x10b0 /*MISO*/
    MX6UL_PAD_CSI_DATA05__GPIO4_IO26 0x80000000 /*CS*/
    MX6UL_PAD_UART2_CTS_B__GPIO1_IO22 0x80000000 /*RESET*/
    MX6UL_PAD_UART2_RTS_B__GPIO1_IO23 0x80000000 /*INT*/
    >;
    };

     

  • Also checked the same with TCAN4550 module support, below is their reply

    I believe that the error code 12 you are receiving is referring to the processor not being able to allocate memory to store the retrieved settings from this file.  Since that is not an issue specific to communication with the TCAN4550 device in hardware and is part of the boot process.

 

Please let us know what need to be done further to make TCAN4550 driver up.

 

Regards,

Haji

Attachments

Outcomes