in general, the secure GPIO is allocated to be used by non-secure world....
---> I think you mean " the secure GPIO is allocated to be used by secure world." Correct?
>>>>>Rong write:Yes, you are right, when the secure world communicates via secure GPIO through serial protocol, the secure world can mask the GPIO pin so that the non-secure world is NOT allowed to read the secure GPIO pin logic.
If I understood well, it is the responsiblity of the secure firmware to allow non-secure digital/analog peripherals to use secure GPIOs. Correct?
>>>>Rong write:Yes, it is the responsibility of the secure firmware to allow non-secure digital/analog peripherals to use secure GPIOs.
What about non-secure I/Os? Could they be connected to secure digital/analog peripherals?
>>>>Rong:There is not way that the secure firmware can disable the non-secure world to read the GPIO logic.
This a secure GPIO example in SDK package for LPC55S69, you can check the code:
Hope it can help you
BR
XiangJun Rong