i.mx6 SPI lines state after driver unbind

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

i.mx6 SPI lines state after driver unbind

915 Views
krzysztofdrobi_
Contributor I

Hi,

I have use case that at some point I need to reconfigure SPI pads to HiZ state.

I'm wondering what is the state of SPI lines after unbinding spi driver in fsl kernel 3.10?

In function  spi_imx_remove()  I see that

writel(0, spi_imx->base + MXC_CSPICTRL);

May I assume that after unbinding spi driver and having 0 in MXC_CSPICTRL, spi lines for this controller are in HiZ state?

Labels (1)
0 Kudos
Reply
3 Replies

832 Views
igorpadykov
NXP Employee
NXP Employee

Hi Krzysztof

there is no HiZ state settings in registers IOMUXC_SW_PAD_CTL_PAD_x_y

described in Chapter 36 IOMUX Controller (IOMUXC) i.MX6DQRM

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf 

so after having 0 in MXC_CSPICTRL lines state will be inactive (as before enabling spi).

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

0 Kudos
Reply

832 Views
krzysztofdrobi_
Contributor I

Hi Igor,

Ok, so it means that pinctrl settings are orthogonal and remain unchanged? I mean CLK, MOSI and CS will be left and configured as outputs?

Regards,

Krzysztof

0 Kudos
Reply

832 Views
igorpadykov
NXP Employee
NXP Employee

Hi Krzysztof

I do not know meaning "orthogonal" but disabling ECSPI module

will not change iomux settings of spi lines.

Best regards
igor