2025-01-21 01:28 AM
Could you please clarify the pinctrl_z assignment in the device tree?
The thing is, OP-TEE panics in shared_resources.c:142 <get_gpioz_nbpin> when I don't define in the device tree something like this:
&pinctrl_z {
st,package = <STM32MP_PKG_AC>;
gpioz: gpio@54004000 {
status = "okay";
ngpios = <8>;
gpio-ranges = <&pinctrl_z 0 400 8>;
};
};
Even though this is an assignment for AC package, and not the AB I have.
2025-01-22 08:36 AM - edited 2025-01-22 11:22 AM
Yes I saw this too with our STM32MP157DAB device which also does not have gpioz pins.
I ended up patching the optee firmware in `core/arch/arm/plat-stm32mp1/shared_resources.c` and changed the gpioz_nbpin initialisation to 0 rather than -1. I have an empty `&pinctrl_z` section in the dt.
The warnings "I/TC: WARNING: apply pinctrl for secure pin xx that is non-secure" are getting annoying too, so I fear another patch.