i put this code on .dts file. and in dmesg its giving (spi_imx 2008000.ecspi: probed)
but i can't find it in /dev/
pinctrl_ecspi1: ecspi1grp {
fsl,pins = <
MX6UL_PAD_CSI_DATA04__ECSPI1_SCLK 0x1b088
MX6UL_PAD_CSI_DATA05__ECSPI1_SS0 0x1b088
MX6UL_PAD_CSI_DATA06__ECSPI1_MOSI 0x1b088
MX6UL_PAD_CSI_DATA07__ECSPI1_MISO 0x1b088
>;
};
&ecspi1 {
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1>;
status = "okay";
spidev@0x00 {
compatible = "spidev";
spi-max-frequency = <20000000>;
reg = <0>;
};
};
can someone suggest me where is an issue? and how to figure it out?
thanks brother,
Actually, i enabled spidev in kernel config manually but while compiling through bitbake it replaces the config with default.
i solved it buy editing config using bitbake
Hi syed
one can check if MX6UL_PAD_CSI_DATA* pads are not used in camera pinctrl_csi1: csi1grp
and look at suggestions on
Using SPI (&ecspi1) on iMX6ULL-EVK
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------