基于i.MX6dl_SabreSD 硬件,BSP版本是linux fsl-yocto-3.14.28-1.0.0
参照我们的原理图修改spi配置后,能使用dd命令写和读,但读出数据全是空。搞了好久还没搞出来,哪位做过麻烦帮忙看一下,谢谢了!
软件改动
pinctrl_ecspi1: ecspi1grp {
fsl,pins = <
MX6QDL_PAD_DISP0_DAT22__ECSPI1_MISO 0x100b1
MX6QDL_PAD_DISP0_DAT21__ECSPI1_MOSI 0x100b1
MX6QDL_PAD_DISP0_DAT20__ECSPI1_SCLK 0x100b1
>;
};
&ecspi1 {
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio5 17 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>;
};
};
附件是硬件原理图
|