cancel
Showing results for 
Search instead for 
Did you mean: 

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

Dat Tran
Senior II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

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.

View solution in original post

2 REPLIES 2
Olivier GALLIEN
ST Employee

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
Senior II

yes, thank you a lot. that did help