No SPI CLK on IMX6

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

No SPI CLK on IMX6

Jump to solution
2,078 Views
kiruthikavarada
Contributor III

I dont see any clock on SPI1_SCLK while probing

My pin mux settings are as follows

&ecspi1 {

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

        cs-gpios = <&gpio2 30 0>;

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_ecspi1_1>;

        status = "okay";

        spidev: spidev@0 {

           compatible = "spidev";

           spi-max-frequency = <20000000>;

           reg = <0>;

        };

};

pinctrl_ecspi1_1: ecspi1grp-1 {

                        fsl,pins = <

                                MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1

                                MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1

                                MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1

                                MX6QDL_PAD_EIM_EB2__GPIO2_IO30  0x80000000

                        >;

                };

A slave device is connected to SPI1_SS0.

No clock signal. SS0 is always high. MOSI is always high.

I am using spidev_test application to send the data to connected slave through /dev/spidev0.0.

Thanks,

Kirthika

0 Kudos
Reply
1 Solution
1,457 Views
kiruthikavarada
Contributor III

Hi Alejandro,

Thank you for your information.

I am getting SPI clock now. The reason behind is hardware issue with pullup and SPI slave.

Thanks,

Kiruthika

View solution in original post

0 Kudos
Reply
4 Replies
1,457 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Please check that the MX6QDL_PAD_EIM_D16 is not used by any other node. If it is used you have to either remove that node or just disable it -> status = "disabled";

In this thread you can find an example of the dts and dtsi for the imx6Sololite. I think you can find it helpful.

How to enable and test SPI in i.MX6SoloLite using kernel 3.10.17?

Best Regards,

Alejandro

0 Kudos
Reply
1,458 Views
kiruthikavarada
Contributor III

Hi Alejandro,

Thank you for your information.

I am getting SPI clock now. The reason behind is hardware issue with pullup and SPI slave.

Thanks,

Kiruthika

0 Kudos
Reply
1,457 Views
saurabh206
Senior Contributor III

Hi kiruthikavaradarajan

Which pin has pullup connected?

I am also facing similar issue.

Thanks

Saurabh

0 Kudos
Reply
1,457 Views
coilnpark
Contributor IV

hi, I also have the same issue...

please share your solution...

Best regards,

Colin

0 Kudos
Reply