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
>;
};
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.