I want to enable spi on imx8qm evaluation board.
kernel i am using is 5.4.224.
looks like below link is little too old :
any leads would be appreciated. thank you.
Regards,
LS
Hi @LS ,
thanks, but none of those files exist for me, where are they actually supposed to be, why wouldnt they exist
thanks for the reply.
i updated : msc-sm2s-imx8mp-module.dtsi with below items.
pinctrl_lpspi0: lpspi0grp {
fsl,pins = <
IMX8QM_SPI0_SCK_DMA_SPI0_SCK 0x600004c
IMX8QM_SPI0_SDO_DMA_SPI0_SDO 0x600004c
IMX8QM_SPI0_SDI_DMA_SPI0_SDI 0x600004c
>;
};
pinctrl_lpspi0_cs: lpspi0cs {
fsl,pins = <
IMX8QM_SPI0_CS0_LSIO_GPIO3_IO05 0x21
>;
};
pinctrl_lpspi3: lpspi3grp {
fsl,pins = <
IMX8QM_SPI3_SCK_DMA_SPI3_SCK 0x600004c
IMX8QM_SPI3_SDO_DMA_SPI3_SDO 0x600004c
IMX8QM_SPI3_SDI_DMA_SPI3_SDI 0x600004c
IMX8QM_SPI3_CS0_DMA_SPI3_CS0 0x600004c
>;
};
&
&lpspi0 {
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpspi0 &pinctrl_lpspi0_cs>;
cs-gpios = <&lsio_gpio3 5 GPIO_ACTIVE_LOW>;
status = "okay";
flash: at45db041e@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "atmel,at45", "atmel,dataflash";
spi-max-frequency = <5000000>;
reg = <0>;
};
};
&lpspi3 {
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpspi3>;
status = "okay";
spidev0: spi@0 {
reg = <0>;
compatible = "rohm,dh2228fv";
spi-max-frequency = <30000000>;
};
};.
but am getting error:
*/build/tmp/work-shared/imx8/kernel-build-artifacts=/usr/src/kernel LD=aarch64-fslc-linux-ld.bfd LOADADDR=0x40480000
| DTC arch/arm64/boot/dts/msc/imx8mp/msc-sm2s-imx8mp-001-module.dtb
| Error: /*/build/tmp/work-shared/imx8/kernel-source/arch/arm64/boot/dts/msc/imx8mp/msc-sm2s-imx8mp-module.dtsi:537.1-8 Label or path lpspi0 not found
| Error: /*/build/tmp/work-shared/imx8/kernel-source/arch/arm64/boot/dts/msc/imx8mp/msc-sm2s-imx8mp-module.dtsi:553.1-8 Label or path lpspi3 not found
| Error: /*/build/tmp/work-shared/imx8/kernel-source/arch/arm64/boot/dts/msc/imx8mp/msc-sm2s-imx8mp-module.dtsi:1359.25-26 syntax error
| FATAL ERROR: Unable to parse input tree
| scripts/Makefile.lib:285: recipe for target 'arch/arm64/boot/dts/msc/imx8mp/msc-sm2s-imx8mp-001-module.dtb' failed
| make[2]: *** [arch/arm64/boot/dts/msc/imx8mp/msc-sm2s-imx8mp-001-module.dtb] Error 1
| /home/commonos/COS_OS/build/tmp/work-shared/imx8/kernel-source/Makefile:1275: recipe for target 'msc/imx8mp/msc-sm2s-imx8mp-001-module.dtb' failed
| make[1]: *** [msc/imx8mp/msc-sm2s-imx8mp-001-module.dtb] Error 2
| /home/commonos/COS_OS/build/tmp/work-shared/imx8/kernel-source/Makefile:179: recipe for target 'sub-make' failed
| make: *** [sub-make] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
if - include : imx8-ss-dma.dtsi it throws error in imx8-ss-dma.dtsi file
Regards,
LS
Hi @LS
Hi @LS ,
hi sanket ,
Sorry my bad.
i have to do changes on msc-sm2s-imx8mp-module.dtsi.
which is imx8mp based board.
Regards,
LS
Hi @LS ,