Configuring ECSPI2 SS0 to Low in iMX8MM EVK

cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring ECSPI2 SS0 to Low in iMX8MM EVK

Jump to solution
248 Views
sreedhar_appala
Contributor IV

Hi,

 

I am working with iMX8MM EVK and Yocto distribution 4.19.35 version

 

Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mmevk"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "4.19-warrior"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""

we have interfaced a SPI slave device to ECSPI2 pins. the CS pin of SPI slave device should be active low.

Can we drive the ECSPI2_SS0  to Low by configuring the IOMUXC control registers as below:

pinctrl_ecspi2: ecspi2grp {
fsl,pins = <
MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x116
MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x116
MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x116
MX8MM_IOMUXC_ECSPI2_SS0_ECSPI2_SS0 0x116
>;
};

Let me know, if this is correct and is there any method to drive the ECSPI2_SS0   to Low

Thank you,

Sreedhar

0 Kudos
1 Solution
194 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Sreedhar

pinctrl_ecspi2: ecspi2grp settings do not affect ECSPI2_SS0 polarity,

polarity is configured by bit SS_POL described in

sect.10.1.5.4 Config Register (ECSPIx_CONFIGREG)

i.MX 8M Mini Applications Processor Reference Manual

By default is is active low, so your settings should be fine.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
195 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Sreedhar

pinctrl_ecspi2: ecspi2grp settings do not affect ECSPI2_SS0 polarity,

polarity is configured by bit SS_POL described in

sect.10.1.5.4 Config Register (ECSPIx_CONFIGREG)

i.MX 8M Mini Applications Processor Reference Manual

By default is is active low, so your settings should be fine.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
194 Views
sreedhar_appala
Contributor IV

Thank you igor

I will check the config register.

0 Kudos