GPIO manipulation in the device tree Rom 5722

I would like specifics if possible. I am going to include my version of what I think it should be I would really like to make sure that I am correct.
I am attempting to modify some of the GPIO via the device tree so that it comes up in that configuration on boot.

P62 GPIO 1 12 Needs to be input weak pull low
S142 GPIO12 TCA9528@71 needs to be an output pulled low
P118 GPIO11 TCA9528@71 needs to be an output pulled high

First I added to the pin hog group. Then I added a GPIO LED group.
Did I do it correctly? does the led group need to be gpio-leds or &gpio-leds

&iomuxc {
pinctrl-names = “default”;
pinctrl-0 = <&pinctrl_hog>;

pinctrl_hog: hoggrp {
	fsl,pins = <
		//MX8MP_IOMUXC_SAI1_TXD6__GPIO4_IO18	0x19		/* GPIO0 / CAM0_PWR# */
		//MX8MP_IOMUXC_SAI1_TXD7__GPIO4_IO19	0x19		/* GPIO1 / CAM1_PWR#  */
		//MX8MP_IOMUXC_SAI3_RXFS__GPIO4_IO28	0x19		/* GPIO2 / CAM0_RST# */
		//MX8MP_IOMUXC_SAI3_RXC__GPIO4_IO29	0x19		/* GPIO3 / CAM1_RST# */
		MX8MP_IOMUXC_SAI2_MCLK__GPIO4_IO27	0x19		/* GPIO4 */
		MX8MP_IOMUXC_UART3_RXD__GPIO5_IO26	0x19		/* GPIO6 */
		MX8MP_IOMUXC_UART3_TXD__GPIO5_IO27	0x19		/* GPIO7 */
                    MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12   0x11D           /* GPIO 1 12 */

gpio-leds {
compatible = “gpio-leds”;

	led {
		label = "gpio-backplane";
		gpios = <&tca9538_a71 3 GPIO_ACTIVE_HIGH>;
		default-state = "on";
           led {
		label = "gpio-amplifier";
		gpios = <&tca9538_a71 4 GPIO_ACTIVE_HIGH>;
		default-state = "on";


Also do you have the .mex file for creating the dts that you used. Would help me to be able to see what I need to change these too.


  1. For including version, please reference Yocto project document
    Welcome to the Yocto Project Documentation — The Yocto Project ® 4.2.999 documentation

  2. For GPIO control, it can reference the link below,

1 Like

Can you expand on the GPIO implementation specific to your SOM. I mean an actual example of the three lines configured the way I described. I know it is a pain, but really us devs are working on a timeline and a ton of research into something that the vendor should readily have is not really great.
I would like a specific dts example for your gpios that are on the expansion and not on the expansion. The NXP pin configuration utility will give the the proper values like 0x106 or whatever. But I have a list of these and having quick examples how to put them together would save me a bunch of time. When I am on a development schedule that was already pushed back over a month do to slow bsp releases.

Honestly if I wanted something a google search could turn up I would just use google. I asked for specifics regarding your chip.

Also one of my devs is having a very hard time getting weston to run on startup using your generic display driver. I will have him make a post regarding his troubles.


For ROM-5722, the imx8mp-rom5722-a1.dts is develop for the carrier board DB2510 and the GPIO have connected to the GPIO pin header.

So use RSB-3720 for an example. There is an GPIO_LED on RSB-3720.

Please check Advantech github imx8mp-rsb-3720-a1.dts file for an example.
linux-imx/arch/arm64/boot/dts/freescale/imx8mp-rsb3720-a1.dts at adv_5.4.70_2.3.0 · ADVANTECH-Corp/linux-imx (

For pad control register: Please reference the link below to download i.MX8MP reference manual

And reference the pad control register.