IMX8MP I2C Linux Device tree pinctrl question

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

IMX8MP I2C Linux Device tree pinctrl question

Jump to solution
471 Views
flobro
Contributor III

I have a I2C pinctrl setting in the device tree that I am trying to understand...

pinctrl_i2c4: i2c4grp {
fsl,pins = <
MX8MP_IOMUXC_I2C4_SCL__I2C4_SCL 0x400001c2
MX8MP_IOMUXC_I2C4_SDA__I2C4_SDA 0x400001c2
>;
};

What is the 0x4000 part in the 0x40001c2 pad setting? The SW_PAD_CTL register only supports 9 bits, so the 0x01c2 part makes sense...

 

I can't find where the extra 0x4000 is applied.

Thanks

 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
454 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @flobro 

 

If you are using Config tools to configure de IOMUX, you will see the 0x4000 belong to "Software Input On Field.

If enabled:

Alejandro_Salas_0-1710528733778.png

 

If disabled:

Alejandro_Salas_1-1710528753453.png

I hope this can helps to you.

 

Best regards.

 

Salas.

View solution in original post

0 Kudos
Reply
2 Replies
450 Views
flobro
Contributor III

"SION"  was the keyword that finally led to documentation. Im the IMX8MP App Ref Manual "8.2.2.3 SW Loopback through SION bit" and 

"17.1.3 External Signals" -- "Inputs of I2Cn_SCL and I2Cn_SDA also need to be manually enabled by setting the
SION bit in the IOMUX after the corresponding PADs are selected as I2C function."

 

(I am not familiar with "config tools", guess I am old school. But I will look it up.)

Thanks for the clue.

455 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @flobro 

 

If you are using Config tools to configure de IOMUX, you will see the 0x4000 belong to "Software Input On Field.

If enabled:

Alejandro_Salas_0-1710528733778.png

 

If disabled:

Alejandro_Salas_1-1710528753453.png

I hope this can helps to you.

 

Best regards.

 

Salas.

0 Kudos
Reply