Skip to main content
Wjian.1
Associate III
Dec 3, 2020 06:13 UTC
Question

Why can't I control gpioz in user space?

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 topic has been closed for replies.

3 replies

Fee
Associate II
Dec 3, 2020 07:15 UTC

Hi,

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

Wjian.1
Wjian.1Author
Associate III
Dec 3, 2020 08:35 UTC

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

Wjian.1
Wjian.1Author
Associate III
Dec 3, 2020 08:32 UTC

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