cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't I control gpioz in user space?

Wjian.1
Associate II

Hi:

I encountered a strange problem when I tried to operate the gpioz pin with the gpioset command in user space and found that the level never changed. Can you give some suggestions to solve it.

This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Fee
Senior

Hi,

did you assign the gpioz peripheral to the secure context in your device tree using the etzpc node?

Wjian.1
Associate II

Hi:

​I've done it in the TF-A device tree,first,first, I add an ID to gpioz,and then assign the gpioz peripheral to the non secure context in device tree using the etzpc node.

include/dt-bindings/soc/st,stm32-etzpc.h:101:#define STM32MP1_ETZPC_GPIOZ_ID   95

but it seems that it has no effect

Hi:

I've done it in the TF-A device tree,first,first, I add an ID to gpioz,and then assign the gpioz peripheral to the non secure context in device tree using the etzpc node.

include/dt-bindings/soc/st,stm32-etzpc.h:101:#define STM32MP1_ETZPC_GPIOZ_ID   95

then assign using the etzpc node:​

 DECPROT(STM32MP1_ETZPC_GPIOZ_ID, DECPROT_NS_RW,DECPROT_UNLOCK)  

but it seems that it has no effect