How to enable spidev on i.MX6 using kernel 3.14.28?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
We run imx-test mxc_spi_test for iMX6 to check spi, but we can't find any /dev/spi0.0 device node.
We also can't find any "spidev" device name in device tree.
Our sample code of device tree as below:
Does anybody know what's happen ? and how can I modify this device tree?
The default setting of Freescale spi is connected to flash nor.
======================================
<imx6qdl.dtsi>
ecspi1: ecspi@02008000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi", "fsl,spidev";
reg = <0x02008000 0x4000>;
interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6QDL_CLK_ECSPI1>,
<&clks IMX6QDL_CLK_ECSPI1>;
clock-names = "ipg", "per";
status = "disabled";
};
======================================
<imx6qdl-sabresd.dtsi>
&ecspi1 {
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio4 9 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1>;
status = "okay";
flash: m25p80@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "st,m25p32";
spi-max-frequency = <20000000>;
reg = <0>;
};
};
Thanks,
Best Regards,
Yao


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi YaoLin
one can try configurations shown below
How to enable spidev on i.MX6 using kernel 3.10.9?
VAR-SOM-MX6 Yocto Unit Testing V5 b2 - Variscite Wiki
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
