SPI driver enable

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

SPI driver enable

1,016 Views
pooja_todakar
Contributor I

hi

i added spi driver

all configration made enabled but my driver is not loading what is problem with this?

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 = "okay";
};

but is not loading i am not getting the driver information..

Labels (1)
0 Kudos
4 Replies

912 Views
igorpadykov
NXP Employee
NXP Employee

Hi Pooja

what bsp used in the case, one can try with nxp from source.codeaurora.org/external/imx/linux-imx

repository

linux-imx - i.MX Linux kernel 

i.MX6UL EVK ecspi example

imx6ul-14x14-evk-ecspi.dts\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

third party i.MX6UL ecspi tutorial

How To Use SPIDEV on phyFLEX-i.MX6 Yocto BSP - Develop.phytec - PHYTEC Wiki 

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

0 Kudos

912 Views
pooja_todakar
Contributor I

i checked with my dts,with this all reference it is same dts entry,but and all SPI configuration is set correctly.but i am not getting spi clock.

how to resolve this problem?help me out.

&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>;
};

0 Kudos

912 Views
igorpadykov
NXP Employee
NXP Employee

Hi Pooja

 

what bsp used in the case, could you try with nxp linux  from

source.codeaurora.org/external/imx/linux-imx repository

linux-imx - i.MX Linux kernel 

Best regards
igor

0 Kudos

912 Views
pooja_todakar
Contributor I

i checked with my dts,with this all reference it is same dts entry,but and all SPI configuration is set correctly.but i am not getting spi clock.

how to resolve this problem?help me out.

&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>;
};

0 Kudos