No SPI CLK on IMX6

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

No SPI CLK on IMX6

跳至解决方案
2,077 次查看
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 项奖励
回复
1 解答
1,456 次查看
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 项奖励
回复
4 回复数
1,456 次查看
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 项奖励
回复
1,457 次查看
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 项奖励
回复
1,456 次查看
saurabh206
Senior Contributor III

Hi kiruthikavaradarajan

Which pin has pullup connected?

I am also facing similar issue.

Thanks

Saurabh

0 项奖励
回复
1,456 次查看
coilnpark
Contributor IV

hi, I also have the same issue...

please share your solution...

Best regards,

Colin

0 项奖励
回复