Part Number: PROCESSOR-SDK-AM437X
Tool/software: Linux
Hi
In dts we specified Direction as Output and PULLDOWN for PRU-GPO pin, Direction is set properly but apparently there is no effect of PULLUP/PULLDOWN.
0xec ( PIN_OUTPUT_PULLDOWN | MUX_MODE5 ) /* (A24) dss_ac_bias_en.pr0_pru1_gpo[9] */
So, We added an external pull-down(2.8KOhm). Now, the pin is low until Linux boots up completely and after that there is no predictable state and it can be either high or low untill pru firmware loads and accesses the PRU-GPO pin.
Can you guide us what is causing this random behavior of the pin even after adding external pull-down(2.8KOhm)
I found a similar issue on community and tried some solutions but no use.
e2e.ti.com/.../1523819
As per solution, Configure the pin as GPIO with PULLDOWN. When ever PRU Application is about to start, Configure the pin as PRU output mode. But when i tried to modify of the pin mode using devmem2 it is reverting to mode7(GPIO).
root@am437x-evm:~# devmem2 0x44e108ec /dev/mem opened. Memory mapped at address 0xb6fb8000. Read at address 0x44E108EC (0xb6fb88ec): 0x08050007 root@am437x-evm:~# devmem2 0x44e108ec w 5 /dev/mem opened. Memory mapped at address 0xb6f19000. Read at address 0x44E108EC (0xb6f198ec): 0x08050007 Write at address 0x44E108EC (0xb6f198ec): 0x00000005, readback 0x00000005 root@am437x-evm:~# devmem2 0x44e108ec /dev/mem opened. Memory mapped at address 0xb6f6b000. Read at address 0x44E108EC (0xb6f6b8ec): 0x08050007
Thanks