Other Parts Discussed in Thread: AM6442
Tool/software:
Hi TI Experts,
I’m working on the AM6442 EVM kit and would like to verify if the ADC0_AINx
pins can be successfully converted into GPI (General Purpose Input) mode.
To configure all 8 ADC0 input pins (ADC0_AIN0
to ADC0_AIN7
) to operate in GPI mode and read their digital output, I referred to the following thread and enabled the GPI mode using devmem2
for one pin (e.g., ADC0_AIN0
) by writing to the CTRL_MMR
register to select the GPI function.
Steps I’ve Taken So Far:
- I have configured the GPIO1 bank into the DTS, but I am unable to locate the pins (GPIO1_80 to GPIO1_87) that are listed in the datasheet.
- Additionally, try using the devmem2 to read the register value for the pins, but a bus error occurred.
Questions:
-
Verification of GPI Mode:
-
What is the best way to verify if all the
ADC0_AINx
pins are indeed operating in GPI mode on the AM6422x? -
Is there a status bit or register that confirms the pinmux mode applied?
-
-
Device Tree Configuration:
-
Do I need to explicitly configure
GPIO1
in the device tree if I only want to read digital input status from the ADC0 pins via GPI mode? -
If yes, could you share an example DTS snippet for enabling GPIO1 in input mode?
-
Your guidance will be helpful for validating our setup and ensuring we follow the correct approach.
Thanks in advance,
Ankit