drivers: pinctrl: stm32 pinctrl driver supporting the stm32H7RS

Introduce the stm32h7RS serie to the pin control driver,
New GPIO port M, N, O, P
Then add the complete list and from A to P (16 port
coded on 5 bits)

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2024-03-06 18:04:22 +01:00 committed by Carles Cufí
parent e6ebb044ac
commit c0750e9867
3 changed files with 13 additions and 4 deletions

View file

@ -58,6 +58,11 @@ static const struct device *const gpio_ports[] = {
DEVICE_DT_GET_OR_NULL(DT_NODELABEL(gpioi)),
DEVICE_DT_GET_OR_NULL(DT_NODELABEL(gpioj)),
DEVICE_DT_GET_OR_NULL(DT_NODELABEL(gpiok)),
DEVICE_DT_GET_OR_NULL(DT_NODELABEL(gpiol)),
DEVICE_DT_GET_OR_NULL(DT_NODELABEL(gpiom)),
DEVICE_DT_GET_OR_NULL(DT_NODELABEL(gpion)),
DEVICE_DT_GET_OR_NULL(DT_NODELABEL(gpioo)),
DEVICE_DT_GET_OR_NULL(DT_NODELABEL(gpiop)),
};
/** Number of GPIO ports. */

View file

@ -22,9 +22,13 @@
#define STM32_PORTI 8
#define STM32_PORTJ 9
#define STM32_PORTK 10 /* IO port K */
#define STM32_PORTM 12 /* IO port M (0xC) */
#define STM32_PORTN 13
#define STM32_PORTO 14
#define STM32_PORTP 15 /* IO port P (0xF) */
#ifndef STM32_PORTS_MAX
#define STM32_PORTS_MAX (STM32_PORTK + 1)
#define STM32_PORTS_MAX (STM32_PORTP + 1)
#endif
/**

View file

@ -44,7 +44,7 @@
#define STM32_LINE_SHIFT 5U
#define STM32_LINE_MASK 0xFU
#define STM32_PORT_SHIFT 9U
#define STM32_PORT_MASK 0xFU
#define STM32_PORT_MASK 0x1FU
/**
* @brief Pin configuration configuration bit field.
@ -53,9 +53,9 @@
*
* - mode [ 0 : 4 ]
* - line [ 5 : 8 ]
* - port [ 9 : 12 ]
* - port [ 9 : 13 ]
*
* @param port Port ('A'..'K')
* @param port Port ('A'..'P')
* @param line Pin (0..15)
* @param mode Mode (ANALOG, GPIO_IN, ALTERNATE).
*/