using wandboard quad version c1 board.
Using yocto dizzy branch for building the image.
Made the changes in the DTSI files .
In File imx6qdl-wandboard.dtsi below added
&ecspi1 {
fsl,spi-num-chipselects = <2>;
cs-gpios = <&gpio2 30 0>, <&gpio4 10 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1_1>;
status = "okay";
spidev@0x00 {
compatible = "spidev";
spi-max-frequency = <16000000>;
reg = <0>;
};
spidev@0x01 {
compatible = "spidev";
spi-max-frequency = <16000000>;
reg = <1>;
};
};
Added below in imx6qdl.dtsi
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__ECSPI1_SS0 0x100b1
MX6QDL_PAD_EIM_D19__ECSPI1_SS1 0x100b1
>;
};
I am not able to see the spidev0 after running the ls /dev command.
Please let me is their any mistake in above dtsi files added?
Hi harsh,
please take a look to the following thread
How to check if SPI is working?
Regards,
Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------