AnsweredAssumed Answered

No Spi clk in imx6ull

Question asked by sheraz ali shah on May 14, 2020
Latest reply on May 14, 2020 by sheraz ali shah

Clock is not coming 

My Pin mux settings are as follows

 

&ecspi2 {
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio4 22 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi>;

status = "okay";
spidev@0x00 {
compatible = "spidev";
spi-max-frequency = <20000000>;
reg = <0>;
};
};

 

&iomuxc {
.....

pinctrl_spi: spigrp{
fsl,pins = <
MX6UL_PAD_CSI_DATA00__ECSPI2_SCLK 0x100b1
MX6UL_PAD_CSI_DATA02__ECSPI2_MOSI 0x100b1
MX6UL_PAD_CSI_DATA03__ECSPI2_MISO 0x100b1
MX6UL_PAD_CSI_DATA01__GPIO4_IO22 0x80000000
>;
};

...

No clock signal. SS0 is always high

/dev/spidev1.0 is getting enumerated

 

cs-gpio is coming as spi_imx  

 

# cat /sys/kernel/debug/gpio
GPIOs 0-31, platform/209c000.gpio, 209c000.gpio:
gpio-9 (VSD_3V3 ) out lo
gpio-19 (cd ) in lo

GPIOs 32-63, platform/20a0000.gpio, 20a0000.gpio:

GPIOs 64-95, platform/20a4000.gpio, 20a4000.gpio:

GPIOs 96-127, platform/20a8000.gpio, 20a8000.gpio:
gpio-118 (spi_imx ) out lo

GPIOs 128-159, platform/20ac000.gpio, 20ac000.gpio:
gpio-129 (flexcan-trx-en ) out lo

 

Let me know what am missing

 

Linux Kernel Version 4.15

Outcomes