pinctrl: stm32: Add RIF support for stm32mp257
authorAntonio Borneo <antonio.borneo@foss.st.com>
Tue, 10 Jun 2025 14:30:40 +0000 (16:30 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Jun 2025 09:20:11 +0000 (11:20 +0200)
commitd6c8fceb33d9cc983a5d050f9c3714fe15a51279
treedea9d34c08d4033985ebfea183a895043f908f36
parent4c5cc2f65386e22166ce006efe515c667aa075e4
pinctrl: stm32: Add RIF support for stm32mp257

On SoC stm32mp257, GPIO supports security and isolation compliant
with the Resource Isolation Framework (RIF). Each GPIO line can be
assigned to different security and compartment domains.

Add the generic code to handle the RIF configuration set by the
secure world and initialize the GPIO valid mask accordingly.

Enable the RIF support for stm32mp257.

Co-developed-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Link: https://lore.kernel.org/20250610143042.295376-4-antonio.borneo@foss.st.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/stm32/pinctrl-stm32.c
drivers/pinctrl/stm32/pinctrl-stm32.h
drivers/pinctrl/stm32/pinctrl-stm32mp257.c