IMX8MP device tree source code changes for gpio setting

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

IMX8MP device tree source code changes for gpio setting

1,046 Views
titusstalin
Contributor V

Hello,

I have imx8mp verdin board and would like to do iomux configuration for GPIOs.

Would like to understand the hardcoded values like 0x184, 0x1c4, and also would be great how can I set default INPUT/OUTPUT and PULL up/down.

 

arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi

pinctrl_gpio1: gpio1grp {
fsl,pins =
<MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00 0x184>; /* SODIMM 206 */
};

pinctrl_gpio2: gpio2grp {
fsl,pins =
<MX8MP_IOMUXC_GPIO1_IO01__GPIO1_IO01 0x1c4>; /* SODIMM 208 */
};

I have visited to below page and installed i.MX config tools, but I wanted to do something without using this tool and avoid to open this tool every time to change the pinmux and generating dts files etc.,

https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/config-tools-fo...

Labels (2)
0 Kudos
Reply
2 Replies

979 Views
JudyJeo
Contributor III

The decoding of 0x184  in the "MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00 0x184>; " is 

Untitled.png

0 Kudos
Reply

995 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

 

You can add a variable to change the GPIO and not star opened the tool.

Regards

0 Kudos
Reply