Skip to main content
Dat Tran
Senior II
April 27, 2023
Solved

How to set pinctrl_z port to unsecure in device tree as default?

  • April 27, 2023
  • 2 replies
  • 922 views

Hi, I would like to set all 8 pins in port Z to unsecure so i use these pins as other ports.

I read data sheet portz is set to secure mode as default after reset. And I tried write into it and system crashed.

Thanks

This topic has been closed for replies.
Best answer by Olivier GALLIEN

Hi @Community member?

GPIOZ can be unsecure adding this line in TF-A DTS :

DECPROT(STM32MP1_ETZPC_GPIOZ_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>;

Refer to :

ETZPC device tree configuration - stm32mpu​ 

Olivier

2 replies

Olivier GALLIEN
Olivier GALLIENBest answer
Technical Moderator
May 10, 2023

Hi @Community member?

GPIOZ can be unsecure adding this line in TF-A DTS :

DECPROT(STM32MP1_ETZPC_GPIOZ_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>;

Refer to :

ETZPC device tree configuration - stm32mpu​ 

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Dat Tran
Dat TranAuthor
Senior II
May 10, 2023

yes, thank you a lot. that did help