MAX14830 SPI to Quad with IMX6q custom board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MAX14830 SPI to Quad with IMX6q custom board

2,401 Views
artitrivedi
Contributor I

Hi All,

I am using IMX6q custom board, where I have to add max14830 SPI to quad uart device

for that I have added an entry in my device tree for max14830 as below:

&ecspi1 {

        fsl,spi-num-chipselects = <1>;

        cs-gpios = <&gpio4 9 0>;

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_ecspi1_2>;

        status = "okay";

        max148300: max14830@0 {

                   compatible = "maxim,max14830";

                   reg = <0>;

                   clocks = <&xtal_max>;

                   clock-names = "xtal";

                   spi-max-frequency = <10000000>;

           };

&iomuxc

{

MX6QDL_PAD_KEY_ROW1__GPIO4_IO09  0x1b0b0;

};

and I load the driver max310x.ko, it gives me an error max14830 ID 0x00 does not match.

Can anybody help me where I am going wrong?

TIA,

Arti.

0 Kudos
3 Replies

1,546 Views
surendradhobale
Contributor III

Hello,

     Is this interface and SPI-UART  expander mechanism is working ? I am also facing the similar issue ? what is correct device tree configuration?

 

I am also working on the imx6-ul core. I am using the max14830 SPI to quad. because i need 4 UART. I have seen max310x driver is available. I have compiled the driver and added the device tree configuration similar to the above thread. But not receiving the data.

How this problem is resolved? Can yu please help me.

Thanks

Surendra

0 Kudos

1,546 Views
artitrivedi
Contributor I

Hi Igor,

Thanks for your reply, I was looking at thread mentioned by you to enable spidev. I have

already done a test where same connections I used to do SPI communication, which worked. with

same iomuxc section. for making SPI to quad UART to work, I was looking at imx6qdl-sabresd.dtsi, where

they are interfacing same SPI lines to flash. and there it works for them. I was debugging the driver also, max310x.c

it fails in max14830_detect() which returns -ENODEV.

0 Kudos

1,546 Views
igorpadykov
NXP Employee
NXP Employee

Hi Arti

&iomuxc should have ecpsi pinctrl as in example

How to enable spidev on i.MX6 using kernel 3.10.9?

error may mean that there is no spi communication,

in general one can debug it ..drivers/tty/serial/max310x.c

linux-2.6-imx.git - Freescale i.MX Linux Tree

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos