Skip to main content
Wjian.1
Associate III
December 3, 2020
Question

Why can't I control gpioz in user space?

  • December 3, 2020
  • 3 replies
  • 900 views

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
December 3, 2020

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
December 3, 2020

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
December 3, 2020

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