Hi,
We are trying to bring up the tcan4x5x.c driver in Linux kernel-4.1.15.
Downloaded tcan4x5x.c driver from below link,
Link: git.kernel.org/.../m_can
We are getting below errors, while booting,
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
our DTS file shown below,
&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>; clock-names = "hclk", "cclk"; bosch,mram-cfg = <0x0 0 0 32 0 0 1 1>; interrupt-parent = <&gpio1>; interrupts = <23 GPIO_ACTIVE_LOW>; reset-gpios = <&gpio1 22 GPIO_ACTIVE_LOW>; status = "okay"; }; };
Note: We are not sure "bosch,mram-cfg = <0x0 0 0 32 0 0 1 1>;" is proper.
FYI, we confirmed SPI (Clock, MOSI) lines are proper. verified by enabling spidev.c driver.
Requesting you to provide a support to fix this issue.
Regards,
Haji