Redefining ANALOG_IN3 , _IN2 as output lines

I need to pick up two digital output lines on my initial Toradex enabled product using the iris carrier board and iMX8X colibri module. We targeted two analog input lines, that are not used in this application, as the ones to be redefined as gpio and set to outputs. I am modifying the imx8x-colibri-iris.dtsi and imx8x-colibri.dtsi files in attempt to redefine the ANALOG_IN3 & ANALOG__IN2 lines as outputs, which worked, though when I did I lost the function of the ANALOG_IN1 & ANALOG__IN0 lines, that is /dev/colibri-ain0 & /dev/colibri-ain1 are no longer present as device interfaces. I am working through the online documentation and general Linux device tree information though still not finding the solution that makes these lines gpio without losing the other two analog inputs.

In imx8x-colibri.dtsi I am adding the following lines to hog1grp (not sure if this is the correct hogNgrp group)

Also, I am not sure what the proper value is for the second field shown as ‘0x20’ should be, any help would be appreciated.
pinctrl_hog1: hog1grp {
fsl,pins = <
[other existing pin definitions]
IMX8QXP_ADC_IN4_LSIO_GPIO1_IO14 0x20
IMX8QXP_ADC_IN5_LSIO_GPIO1_IO13 0x20
>;
};

imx8x-colibri-iris.dtsi …

gpio {
	pinctrl_gpio_iris: gpio-iris {
		fsl,pins = <
			IMX8QXP_QSPI0B_DATA3_LSIO_GPIO3_IO21	0x20        /* SODIMM  98 */
			IMX8QXP_USB_SS3_TC1_LSIO_GPIO4_IO04	0x20        /* SODIMM 133 */
			IMX8QXP_SAI0_TXD_LSIO_GPIO0_IO25	0x20        /* SODIMM 103 */
			IMX8QXP_SAI0_TXFS_LSIO_GPIO0_IO28	0x20        /* SODIMM 101 */
			IMX8QXP_SAI0_RXD_LSIO_GPIO0_IO27	0x20        /* SODIMM  97 */
			IMX8QXP_ENET0_RGMII_RXC_LSIO_GPIO5_IO03	0x06000020  /* SODIMM  85 */
			IMX8QXP_SAI0_TXC_LSIO_GPIO0_IO26        0x20        /* SODIMM  79 */
			IMX8QXP_QSPI0A_DATA1_LSIO_GPIO3_IO10	0x06700041  /* SODIMM  45 */
		        **IMX8QXP_ADC_IN4_LSIO_GPIO1_IO14			**0x20**         /* SODIMM  4 */		**

** IMX8QXP_ADC_IN5_LSIO_GPIO1_IO13 0x20 /* SODIMM 2 /*

	>;
	};
};

I think I have found the fix, a modification of the imx8x-colibri.dtsi file to remove the two lines from the Colibri Analog Input definition seems to have done the trick, these IN4 and IN5 lines were the ones which were redefined to be GPIO lines.

	/* Colibri Analogue Inputs */
	pinctrl_adc0: adc0grp {
		fsl,pins = <
			IMX8QXP_ADC_IN0_ADMA_ADC_IN0			0x60		/* SODIMM   8 */
			IMX8QXP_ADC_IN1_ADMA_ADC_IN1			0x60		/* SODIMM   6 */
			/* IMX8QXP_ADC_IN4_ADMA_ADC_IN4			0x60	*/	/* SODIMM   4 */
			/* IMX8QXP_ADC_IN5_ADMA_ADC_IN5			0x60	*/	/* SODIMM   2 */
		>;
	};

Also to help anyone else attempting to redefine these lines here is the other modifications:

also in imx8x-colibri.dtsi

	pinctrl_hog1: hog1grp {
		fsl,pins = <
			IMX8QXP_CSI_D07_CI_PI_D09			0x61		/* SODIMM  65 */
			IMX8QXP_QSPI0A_DATA2_LSIO_GPIO3_IO11		0x20		/* SODIMM  69 */
			IMX8QXP_SAI0_TXC_LSIO_GPIO0_IO26		0x20		/* SODIMM  79 */
			IMX8QXP_CSI_D02_CI_PI_D04			0x61		/* SODIMM  79 */
			IMX8QXP_ENET0_RGMII_RXC_LSIO_GPIO5_IO03		0x06000020	/* SODIMM  85 */
			IMX8QXP_CSI_D06_CI_PI_D08			0x61		/* SODIMM  85 */
			IMX8QXP_SAI0_RXD_LSIO_GPIO0_IO27		0x20		/* SODIMM  97 */
			IMX8QXP_CSI_D03_CI_PI_D05			0x61		/* SODIMM  97 */
			IMX8QXP_SAI0_TXFS_LSIO_GPIO0_IO28		0x20		/* SODIMM 101 */
			IMX8QXP_CSI_D00_CI_PI_D02			0x61		/* SODIMM 101 */
			IMX8QXP_SAI0_TXD_LSIO_GPIO0_IO25		0x20		/* SODIMM 103 */
			IMX8QXP_CSI_D01_CI_PI_D03			0x61		/* SODIMM 103 */
			IMX8QXP_QSPI0B_DATA1_LSIO_GPIO3_IO19		0x20		/* SODIMM 105 */
			IMX8QXP_USB_SS3_TC2_LSIO_GPIO4_IO05		0x20		/* SODIMM 127 */
			IMX8QXP_USB_SS3_TC3_LSIO_GPIO4_IO06		0x20		/* SODIMM 131 */
			IMX8QXP_USB_SS3_TC1_LSIO_GPIO4_IO04		0x20		/* SODIMM 133 */
			IMX8QXP_CSI_PCLK_LSIO_GPIO3_IO00		0x20		/* SODIMM  96 */
			IMX8QXP_QSPI0B_DATA3_LSIO_GPIO3_IO21		0x20		/* SODIMM  98 */
			IMX8QXP_SAI1_RXFS_LSIO_GPIO0_IO31		0x20		/* SODIMM 100 */
			IMX8QXP_QSPI0B_DQS_LSIO_GPIO3_IO22		0x20		/* SODIMM 102 */
			IMX8QXP_QSPI0B_SS0_B_LSIO_GPIO3_IO23		0x20		/* SODIMM 104 */
			IMX8QXP_ADC_IN4_LSIO_GPIO1_IO14				0x20	    /*  RAYO+ SODIMM_4  Analog Input <2> to GPIO */
			IMX8QXP_ADC_IN5_LSIO_GPIO1_IO13				0x20	    /*  RAYO+ SODIMM_2 Analog Input <3> to GPIO */		
		>;
	};

in imx8x-colibri-iris.dtsi

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

gpio {
	pinctrl_gpio_iris: gpio-iris {
		fsl,pins = <
			IMX8QXP_QSPI0B_DATA3_LSIO_GPIO3_IO21	0x20        /* SODIMM  98 */
			IMX8QXP_USB_SS3_TC1_LSIO_GPIO4_IO04	0x20        /* SODIMM 133 */
			IMX8QXP_SAI0_TXD_LSIO_GPIO0_IO25	0x20        /* SODIMM 103 */
			IMX8QXP_SAI0_TXFS_LSIO_GPIO0_IO28	0x20        /* SODIMM 101 */
			IMX8QXP_SAI0_RXD_LSIO_GPIO0_IO27	0x20        /* SODIMM  97 */
			IMX8QXP_ENET0_RGMII_RXC_LSIO_GPIO5_IO03	0x06000020  /* SODIMM  85 */
			IMX8QXP_SAI0_TXC_LSIO_GPIO0_IO26        0x20        /* SODIMM  79 */
			IMX8QXP_QSPI0A_DATA1_LSIO_GPIO3_IO10	0x06700041  /* SODIMM  45 */
			IMX8QXP_ADC_IN4_LSIO_GPIO1_IO14			0x20         /* RAYO+ SODIMM  4 */		
			IMX8QXP_ADC_IN5_LSIO_GPIO1_IO13			0x20         /* RAYO+ SODIMM  2 */	
				
	>;
	};
};

Glad your problem was solved. Thanks for the update!