how to resolve this spi driver problem

cancel
Showing results for 
Search instead for 
Did you mean: 

how to resolve this spi driver problem

149 Views
pooja_todakar
Contributor I

Hi,

i am installing spi driver in imx6ull processor,but i am not getting the spi clock.i mentioned dts entry below.

dtsi entry:

ecspi1: ecspi@02008000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx6ul-ecspi", "fsl,imx51-ecspi";
reg = <0x02008000 0x4000>;
interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6UL_CLK_ECSPI1>,
<&clks IMX6UL_CLK_ECSPI1>;
clock-names = "ipg", "per";
dmas = <&sdma 3 7 1>, <&sdma 4 7 2>;
dma-names = "rx", "tx";
status = "disabled";
};

dts entry as:

&ecspi1 {
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1>;
status = "okay";

spidev0: spi@0 {
reg = <0>;
compatible = "spidev";
spi-max-frequency = <1000000>;
};
};

IOMUXING details:

pinctrl_ecspi1: ecspi1grp-1 {
fsl,pins = <
MX6UL_PAD_CSI_DATA04__ECSPI1_SCLK 0x01f4/*spi clock signal*/
MX6UL_PAD_CSI_DATA05__ECSPI1_SS0 0x01F8
MX6UL_PAD_CSI_DATA07__ECSPI1_MISO 0x0200/*spi MISO */
MX6UL_PAD_UART2_CTS_B__GPIO1_IO22 0x009c
MX6UL_PAD_UART2_RTS_B__GPIO1_IO23 0x00a0
MX6UL_PAD_LCD_DATA22__ECSPI1_MOSI 0x0170
>;
};

how to resolve this?

Labels (1)
0 Kudos
1 Reply

43 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Pooja

for spidev example one can check

How to use SPIDEV driver on iMX6UL EVK 

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

0 Kudos