Hi,
We have a custom HW design based on AM5728 and PSDK V2.0.0.0
The devices connected to AM5728 peripherals on the board are being controlled by the processor GPIOs. At U-Boot, the pin mux works fine
and we are able to access the peripheral devices as expected. However at Kernel, the GPIOs are getting Reset and we are
looking for a way to avoid the same. That is, we need the output GPIOs to retain their state being set at U-Boot and these GPIOs must
get registered to the kernel framework (access possible through sysfs entry)
Please note the following regarding this issue:
1. The pinmux is done only at MLO.
2. In Kernel device tree file, we are initializing the GPIO banks and registering these to GPIO framework.
What we have tried so far?
1. Modified the GPIO driver (drivers/gpio/gpio-omap.c, after the GPIO banks are initialized) to re-write the GPIO DATAOUT registers with the same value as set in U-Boot.
This has not worked for us.
2. Once kernel comes up, directly accessing these GPIO registers using devmem2/sysfs and modifying the values fail and we see kernel
warnings and it does not work.
Please help us!
Regards,
Shareef