i.MX8mm EVK ESPI2 CS0 is always occupied on L5.15.71_2.2.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8mm EVK ESPI2 CS0 is always occupied on L5.15.71_2.2.0

799 Views
yao_feng
Contributor III

Porting NRC7394 802.11ah device on ESPI2

skip all other spi device in device tree DTS file

My settings: based on imx8mm-evk.dtsi
https://github.com/nxp-imx/linux-imx/blob/lf-5.15.y/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi

modification:

/*skip default one
&ecspi2 {
#address-cells = <1>;
#size-cells = <0>;
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi2 &pinctrl_ecspi2_cs>;
cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
status = "okay";
 
spidev0: spi@0 {
reg = <0>;
compatible = "rohm,dh2228fv";
spi-max-frequency = <500000>;
};
};
*/
//add for nrc7394
&ecspi2 {
        #address-cells = <1>;
        #size-cells = <0>;
        fsl,spi-num-chipselects = <1>;
        pinctrl-names = "default";
        //pinctrl-0 = <&pinctrl_nrc_spi &pinctrl_ecspi2_cs>;
        pinctrl-0 = <&pinctrl_nrc_spi>;
        cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
        status = "okay";
 
        nrc: nrc-cspi@0 {
                reg = <0>;
                compatible = "nrc80211";
                spi-max-frequency = <20000000>;
                interrupt-parent = <&gpio5>;
                interrupts = <9 8>;
        };
};

...

/*skip
pinctrl_ecspi2: ecspi2grp {
fsl,pins = <
MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x82
MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x82
MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x82
>;
};
*/
//add for nrc7394
        pinctrl_nrc_spi: nrcspigrp {
                fsl,pins = <
                        MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK            0x82
                        MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI            0x82
                        MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO            0x82
                        //MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9               0x19
                >;
        };
 

But after insmod nrc.ko, I always get: Chip select 0 is occupied 

[   20.944333] nrc: loading out-of-tree module taints kernel.
[   20.954075] spi_imx 30830000.spi: chipselect 0 already in use
[   20.960032] spi_master spi1: Failed to instantiate a new spi device.
[   20.966510] nrc80211 spi1.0: [Error] gpio_reqeust() is failed (5)
[   20.972655] nrc80211 spi1.0: Failed to nrc_cspi_gpio_alloc
[   20.978185] nrc80211: probe of spi1.0 failed with error -22

I can see spi1.0 device is only the nrc one and there is no other spix.x in spi_master
cat /sys/class/spi_master/spi1/spi1.0/modalias
spi:nrc80211

I also try prebuild image LF_v6.1.55-2.2.0, there is no this issue with same DTS settings.
want to know if its the kernel 5.15 known issue?

Thanks.

0 Kudos
Reply
7 Replies

582 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @yao_feng 

Please make sure GPIO05_IO13 has not been Reuse  besides ecspi2 CS single in kernel 5.15.

B.R

0 Kudos
Reply

608 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @yao_feng 

Please do not comment out this line of code.

//pinctrl-0 = <&pinctrl_nrc_spi &pinctrl_ecspi2_cs>;

B.R

0 Kudos
Reply

599 Views
yao_feng
Contributor III

Hi NXP

Thanks for supporting

both settings I have tried

pinctrl-0 = <&pinctrl_nrc_spi>;
or
pinctrl-0 = <&pinctrl_nrc_spi &pinctrl_ecspi2_cs>;

Both are failed on kernel 5.15

but works on Kernel 6.1, 6.6
attached works log (kernel 6.6)

0 Kudos
Reply

734 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @yao_feng 

Following the log, it's the GPIO pin occupied. You also should configure the CS at pinctrl-0. If convenience, please share your dts file. not the part of spi setting code.

B.R

B.R

0 Kudos
Reply

696 Views
yao_feng
Contributor III

attached

0 Kudos
Reply

765 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @yao_feng 

Please share your full .dts file. cause i can not find the SPI CS setting in your dts code.

B.R

0 Kudos
Reply

762 Views
yao_feng
Contributor III

this 2 lines:

&ecspi2 {
#address-cells = <1>;
#size-cells = <0>;
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default";
//pinctrl-0 = <&pinctrl_nrc_spi &pinctrl_ecspi2_cs>;
pinctrl-0 = <&pinctrl_nrc_spi>;
cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
status = "okay";

nrc: nrc-cspi@0 {
reg = <0>;
compatible = "nrc80211";
spi-max-frequency = <20000000>;
interrupt-parent = <&gpio5>;
interrupts = <9 8>;
};
};

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2198832%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX8mm%20EVK%20ESPI2%20CS0%20is%20always%20occupied%20on%20L5.15.71_2.2.0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2198832%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EPorting%20NRC7394%20802.11ah%20device%20on%20ESPI2%3CBR%20%2F%3E%3CBR%20%2F%3Eskip%20all%20other%20spi%20device%20in%20device%20tree%20DTS%20file%3CBR%20%2F%3E%3CBR%20%2F%3EMy%20settings%3A%20based%20on%26nbsp%3Bimx8mm-evk.dtsi%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-5.15.y%2Farch%2Farm64%2Fboot%2Fdts%2Ffreescale%2Fimx8mm-evk.dtsi%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-5.15.y%2Farch%2Farm64%2Fboot%2Fdts%2Ffreescale%2Fimx8mm-evk.dtsi%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3Emodification%3A%3C%2FP%3E%3CDIV%3E%2F*skip%20default%20one%3C%2FDIV%3E%3CDIV%3E%26amp%3Becspi2%20%7B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23address-cells%20%3D%20%26lt%3B1%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23size-cells%20%3D%20%26lt%3B0%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Efsl%2Cspi-num-chipselects%20%3D%20%26lt%3B1%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Epinctrl-names%20%3D%20%22default%22%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Epinctrl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_ecspi2%20%26amp%3Bpinctrl_ecspi2_cs%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ecs-gpios%20%3D%20%26lt%3B%26amp%3Bgpio5%2013%20GPIO_ACTIVE_LOW%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Estatus%20%3D%20%22okay%22%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Espidev0%3A%20spi%400%20%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ereg%20%3D%20%26lt%3B0%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ecompatible%20%3D%20%22rohm%2Cdh2228fv%22%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Espi-max-frequency%20%3D%20%26lt%3B500000%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%7D%3B%3C%2FDIV%3E%3CDIV%3E*%2F%3C%2FDIV%3E%3CDIV%3E%2F%2Fadd%20for%20nrc7394%3C%2FDIV%3E%3CDIV%3E%26amp%3Becspi2%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%23address-cells%20%3D%20%26lt%3B1%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%23size-cells%20%3D%20%26lt%3B0%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20fsl%2Cspi-num-chipselects%20%3D%20%26lt%3B1%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20pinctrl-names%20%3D%20%22default%22%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F%2Fpinctrl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_nrc_spi%20%26amp%3Bpinctrl_ecspi2_cs%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20pinctrl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_nrc_spi%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20cs-gpios%20%3D%20%26lt%3B%26amp%3Bgpio5%2013%20GPIO_ACTIVE_LOW%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20status%20%3D%20%22okay%22%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20nrc%3A%20nrc-cspi%400%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20reg%20%3D%20%26lt%3B0%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20compatible%20%3D%20%22nrc80211%22%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20spi-max-frequency%20%3D%20%26lt%3B20000000%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20interrupt-parent%20%3D%20%26lt%3B%26amp%3Bgpio5%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20interrupts%20%3D%20%26lt%3B9%208%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3B%3C%2FDIV%3E%3CDIV%3E%7D%3B%3C%2FDIV%3E%3CP%3E...%3C%2FP%3E%3CDIV%3E%2F*skip%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Epinctrl_ecspi2%3A%20ecspi2grp%20%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Efsl%2Cpins%20%3D%20%26lt%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EMX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK%200x82%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EMX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI%200x82%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EMX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO%200x82%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E*%2F%3C%2FDIV%3E%3CDIV%3E%2F%2Fadd%26nbsp%3Bfor%20nrc7394%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20pinctrl_nrc_spi%3A%20nrcspigrp%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20fsl%2Cpins%20%3D%20%26lt%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%200x82%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%200x82%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%200x82%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F%2FMX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B0x19%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3EBut%20after%20insmod%20nrc.ko%2C%20I%20always%20get%3A%20Chip%20select%200%20is%20occupied%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%5B%26nbsp%3B%26nbsp%3B%2020.944333%5D%20nrc%3A%20loading%20out-of-tree%20module%20taints%20kernel.%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3E%5B%26nbsp%3B%26nbsp%3B%2020.954075%5D%3CSTRONG%3E%20spi_imx%2030830000.spi%3A%20chipselect%200%20already%20in%20use%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%3E%5B%26nbsp%3B%26nbsp%3B%2020.960032%5D%20spi_master%20spi1%3A%20Failed%20to%20instantiate%20a%20new%20spi%20device.%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3E%5B%26nbsp%3B%26nbsp%3B%2020.966510%5D%20nrc80211%20spi1.0%3A%20%5BError%5D%20gpio_reqeust()%20is%20failed%20(5)%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3E%5B%26nbsp%3B%26nbsp%3B%2020.972655%5D%20nrc80211%20spi1.0%3A%20Failed%20to%20nrc_cspi_gpio_alloc%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3E%5B%26nbsp%3B%26nbsp%3B%2020.978185%5D%20nrc80211%3A%20probe%20of%20spi1.0%20failed%20with%20error%20-22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20can%20see%20spi1.0%20device%20is%20only%20the%20nrc%20one%20and%20there%20is%20no%20other%20spix.x%20in%20spi_master%3CBR%20%2F%3Ecat%20%2Fsys%2Fclass%2Fspi_master%2Fspi1%2Fspi1.0%2Fmodalias%3CBR%20%2F%3Espi%3Anrc80211%3CBR%20%2F%3E%3CBR%20%2F%3EI%20also%20try%20prebuild%20image%20%3CSPAN%3ELF_v6.1.55-2.2.0%2C%20there%20is%20no%20this%20issue%20with%20same%20DTS%20settings.%3CBR%20%2F%3Ewant%20to%20know%20if%20its%20the%20kernel%205.15%20known%20issue%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2206296%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX8mm%20EVK%20ESPI2%20CS0%20is%20always%20occupied%20on%20L5.15.71_2.2.0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2206296%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F144174%22%20target%3D%22_blank%22%3E%40yao_feng%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20make%20sure%20GPIO05_IO13%20has%20not%20been%26nbsp%3BReuse%26nbsp%3B%20besides%20ecspi2%20CS%20single%20in%20kernel%205.15.%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2205860%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX8mm%20EVK%20ESPI2%20CS0%20is%20always%20occupied%20on%20L5.15.71_2.2.0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2205860%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20NXP%3C%2FP%3E%3CP%3EThanks%20for%20supporting%3C%2FP%3E%3CP%3Eboth%20settings%20I%20have%20tried%3C%2FP%3E%3CP%3E%3CSPAN%3Epinctrl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_nrc_spi%26gt%3B%3B%3CBR%20%2F%3Eor%3CBR%20%2F%3Epinctrl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_nrc_spi%20%26amp%3Bpinctrl_ecspi2_cs%26gt%3B%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBoth%20are%20failed%20on%20kernel%205.15%3C%2FP%3E%3CP%3Ebut%20works%20on%20Kernel%206.1%2C%206.6%3CBR%20%2F%3Eattached%20works%20log%20(kernel%206.6)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2205673%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX8mm%20EVK%20ESPI2%20CS0%20is%20always%20occupied%20on%20L5.15.71_2.2.0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2205673%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F144174%22%20target%3D%22_blank%22%3E%40yao_feng%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20do%20not%20comment%20out%20this%20line%20of%20code.%3C%2FP%3E%0A%3CP%3E%2F%2Fpinctrl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_nrc_spi%20%26amp%3Bpinctrl_ecspi2_cs%26gt%3B%3B%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2204389%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX8mm%20EVK%20ESPI2%20CS0%20is%20always%20occupied%20on%20L5.15.71_2.2.0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2204389%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eattached%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2200557%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX8mm%20EVK%20ESPI2%20CS0%20is%20always%20occupied%20on%20L5.15.71_2.2.0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2200557%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F144174%22%20target%3D%22_blank%22%3E%40yao_feng%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFollowing%20the%20log%2C%20it's%20the%20GPIO%20pin%20occupied.%20You%20also%20should%20configure%20the%20CS%20at%20pinctrl-0.%20If%20convenience%2C%20please%20share%20your%20dts%20file.%20not%20the%20part%20of%20spi%20setting%20code.%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2199607%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX8mm%20EVK%20ESPI2%20CS0%20is%20always%20occupied%20on%20L5.15.71_2.2.0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2199607%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ethis%202%20lines%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%26amp%3Becspi2%20%7B%3CBR%20%2F%3E%23address-cells%20%3D%20%26lt%3B1%26gt%3B%3B%3CBR%20%2F%3E%23size-cells%20%3D%20%26lt%3B0%26gt%3B%3B%3CBR%20%2F%3Efsl%2Cspi-num-chipselects%20%3D%20%26lt%3B1%26gt%3B%3B%3CBR%20%2F%3Epinctrl-names%20%3D%20%22default%22%3B%3CBR%20%2F%3E%2F%2Fpinctrl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_nrc_spi%20%26amp%3Bpinctrl_ecspi2_cs%26gt%3B%3B%3CBR%20%2F%3Epinctrl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_nrc_spi%26gt%3B%3B%3CBR%20%2F%3E%3CSTRONG%3Ecs-gpios%20%3D%20%26lt%3B%26amp%3Bgpio5%2013%20GPIO_ACTIVE_LOW%26gt%3B%3B%3C%2FSTRONG%3E%3CBR%20%2F%3Estatus%20%3D%20%22okay%22%3B%3C%2FP%3E%3CP%3Enrc%3A%20nrc-cspi%400%20%7B%3CBR%20%2F%3E%3CSTRONG%3Ereg%20%3D%20%26lt%3B0%26gt%3B%3B%3C%2FSTRONG%3E%3CBR%20%2F%3Ecompatible%20%3D%20%22nrc80211%22%3B%3CBR%20%2F%3Espi-max-frequency%20%3D%20%26lt%3B20000000%26gt%3B%3B%3CBR%20%2F%3Einterrupt-parent%20%3D%20%26lt%3B%26amp%3Bgpio5%26gt%3B%3B%3CBR%20%2F%3Einterrupts%20%3D%20%26lt%3B9%208%26gt%3B%3B%3CBR%20%2F%3E%7D%3B%3CBR%20%2F%3E%7D%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2199602%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX8mm%20EVK%20ESPI2%20CS0%20is%20always%20occupied%20on%20L5.15.71_2.2.0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2199602%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F144174%22%20target%3D%22_blank%22%3E%40yao_feng%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20share%20your%20full%20.dts%20file.%20cause%20i%20can%20not%20find%20the%20SPI%20CS%20setting%20in%20your%20dts%20code.%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E