Browse Source
Remove gpio clock management from the GPIO driver when running on the cortex-m33 on the mp2 and gpio clocks are managed by the cortex-A, being the resource manager, allowed by the Resource Isolation Framework (RIF). Also add a specific binding for the mp2 gpio to make clock property optional. Signed-off-by: Youssef Zini <youssef.zini@savoirfairelinux.com>pull/83248/merge
3 changed files with 33 additions and 4 deletions
@ -1,11 +1,12 @@ |
|||||||
# STM32 GPIO configuration |
# STM32 GPIO configuration |
||||||
|
|
||||||
# Copyright (c) 2016 Open-RnD Sp. z o.o. |
# Copyright (c) 2016 Open-RnD Sp. z o.o. |
||||||
|
# Copyright (C) 2025 Savoir-faire Linux, Inc. |
||||||
# SPDX-License-Identifier: Apache-2.0 |
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
config GPIO_STM32 |
config GPIO_STM32 |
||||||
bool "GPIO Driver for STM32 family of MCUs" |
bool "GPIO Driver for STM32 family of MCUs" |
||||||
default y |
default y |
||||||
depends on DT_HAS_ST_STM32_GPIO_ENABLED |
depends on DT_HAS_ST_STM32_GPIO_ENABLED || DT_HAS_ST_STM32MP2_GPIO_ENABLED |
||||||
help |
help |
||||||
Enable GPIO driver for STM32 line of MCUs |
Enable GPIO driver for STM32 line of MCUs |
||||||
|
@ -0,0 +1,23 @@ |
|||||||
|
# Copyright (C) 2025 Savoir-faire Linux, Inc. |
||||||
|
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
|
description: STM32MP2 GPIO Controller |
||||||
|
|
||||||
|
compatible: "st,stm32mp2-gpio" |
||||||
|
|
||||||
|
include: |
||||||
|
- name: st,stm32-gpio.yaml |
||||||
|
property-blocklist: |
||||||
|
- clocks |
||||||
|
|
||||||
|
properties: |
||||||
|
clocks: |
||||||
|
type: phandle-array |
||||||
|
description: | |
||||||
|
The clocks property is optional for STM32MP2 GPIO controllers. |
||||||
|
This property is not required when the Cortex-A core is responsible for |
||||||
|
GPIO initialization and acts as the resource manager, as defined by the |
||||||
|
RIF (Resource Isolation Framework) peripheral. Adding the GPIO clocks |
||||||
|
in that case would only trigger an IAC event. |
||||||
|
If the Cortex-M core is designated as the resource manager, then the |
||||||
|
clocks property must be defined and added to the device tree. |
Loading…
Reference in new issue