iMX6UL-MAX14830 Quad Serial UART

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

iMX6UL-MAX14830 Quad Serial UART

3,586 Views
surendradhobale
Contributor III

Hello,

         I am interfacing max 14830 quad serial UART IC with iMX6UL over SPI bus. I am using hobbit board ( RDB for iMX6UL). Driver ( max310x) loaded correctly. But getting error " max14830 ID 0xFF does not match".

I saw the driver, in the detection of the max14830 its failing.

My Device Tree configurations as,

&ecspi3 {
        fsl,spi-num-chipselects = <1>;
        cs-gpios = <&gpio4 20 GPIO_ACTIVE_HIGH>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_ecspi3>;
        status = "okay";

/*      spidev@0 {
                compatible = "spidev";
                spi-max-frequency = <60000000>;
                reg = <0>;
        };*/
         max14830: max14830@0 {
                   compatible = "maxim,max14830";
                   reg = <0>;
                   mode = <0>;
                   clocks = <&clk20m>;
                   clock-names = "osc";
//                 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
                   spi-max-frequency = <26000000>;
        };
};

 pinctrl_ecspi3: ecspi3grp {
                        fsl,pins = <
//                              MX6UL_PAD_UART2_TX_DATA__ECSPI3_SS0     0x10b0
//                              MX6UL_PAD_UART2_TX_DATA__GPIO1_IO20     0x10b0
                                MX6UL_PAD_CSI_HSYNC__GPIO4_IO20         0x10b0
                                MX6UL_PAD_UART2_RX_DATA__ECSPI3_SCLK    0x10b0
                                MX6UL_PAD_UART2_CTS_B__ECSPI3_MOSI      0x10b0
                                MX6UL_PAD_UART2_RTS_B__ECSPI3_MISO      0x10b0
                        >;
                };

What could be problem?

Can anybody help on this ? I have gone through other similar threads but not getting the solution.

Is anyone already faced similar issue? How it resolved?

Attached connection diagram.

Labels (2)
Tags (3)
0 Kudos
2 Replies

2,218 Views
igorpadykov
NXP Employee
NXP Employee

Hi Surendra

mx310x dts example ig given in linux/Documentation/devicetree/bindings/serial/maxim,max310x.txt

one can check "_REV_ID" in driver sources and debug probe function

checking signals with oscilloscope

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

2,218 Views
surendradhobale
Contributor III

Hello,

    Thanks for your reply. I am able to get the MAX14830 revision id. I have used following dts configuration.

&ecspi3 {
        fsl,spi-num-chipselects = <1>;
        cs-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_ecspi3>;
        status = "okay";

         max14830: max14830@0 {
                   compatible = "maxim,max14830";
                   reg = <0>;
                   mode = <0>;
                   clocks = <&clk20m>;
                   clock-names = "osc";
                   spi-max-frequency = <26000000>;
        };
};

Pin Mux configuraion

pinctrl_ecspi3: ecspi3grp {
                        fsl,pins = <
                                MX6UL_PAD_CSI_HSYNC__GPIO4_IO20               0x10b0
                                MX6UL_PAD_UART2_RX_DATA__ECSPI3_SCLK    0x10b0
                                MX6UL_PAD_UART2_CTS_B__ECSPI3_MOSI      0x10b0
                                MX6UL_PAD_UART2_RTS_B__ECSPI3_MISO      0x10b0
                        >;
                };

This works for me atleast getting the revision id. Thanks!!!

0 Kudos