Skip to content

Commit 7930d9c

Browse files
gautierg-stkartben
authored andcommitted
drivers: pinctrl: stm32: add pinctrl for stm32n6
Add pinctrl driver for STM32N6 Signed-off-by: Guillaume Gautier <[email protected]>
1 parent daeb2a8 commit 7930d9c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

drivers/pinctrl/pinctrl_stm32.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ static const struct device *const gpio_ports[] = {
6363
DEVICE_DT_GET_OR_NULL(DT_NODELABEL(gpion)),
6464
DEVICE_DT_GET_OR_NULL(DT_NODELABEL(gpioo)),
6565
DEVICE_DT_GET_OR_NULL(DT_NODELABEL(gpiop)),
66+
DEVICE_DT_GET_OR_NULL(DT_NODELABEL(gpioq)),
6667
};
6768

6869
/** Number of GPIO ports. */

include/zephyr/dt-bindings/pinctrl/stm32-pinctrl-common.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@
2626
#define STM32_PORTN 13
2727
#define STM32_PORTO 14
2828
#define STM32_PORTP 15 /* IO port P (0xF) */
29+
#define STM32_PORTQ 16 /* IO port Q (0x10) */
2930

3031
#ifndef STM32_PORTS_MAX
31-
#define STM32_PORTS_MAX (STM32_PORTP + 1)
32+
#define STM32_PORTS_MAX (STM32_PORTQ + 1)
3233
#endif
3334

3435
/**

include/zephyr/dt-bindings/pinctrl/stm32-pinctrl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* - line [ 5 : 8 ]
5656
* - port [ 9 : 13 ]
5757
*
58-
* @param port Port ('A'..'P')
58+
* @param port Port ('A'..'Q')
5959
* @param line Pin (0..15)
6060
* @param mode Mode (ANALOG, GPIO_IN, ALTERNATE).
6161
*/

0 commit comments

Comments
 (0)