From f62d9ef99dcd05c31a4306dc2b82933e19b807d5 Mon Sep 17 00:00:00 2001 From: Yannis Damigos Date: Wed, 10 Jan 2018 14:07:58 +0200 Subject: [PATCH] include: dt-bindings: stm32_pinctrl: Add ports I, J, K Add defines for ports I, J, K Signed-off-by: Yannis Damigos --- .../pinctrl/stm32-pinctrl-common.h | 57 ++++++++++++++++++- 1 file changed, 55 insertions(+), 2 deletions(-) diff --git a/include/dt-bindings/pinctrl/stm32-pinctrl-common.h b/include/dt-bindings/pinctrl/stm32-pinctrl-common.h index 6dc196917ad..8c63ec3b9e0 100644 --- a/include/dt-bindings/pinctrl/stm32-pinctrl-common.h +++ b/include/dt-bindings/pinctrl/stm32-pinctrl-common.h @@ -19,10 +19,13 @@ #define STM32_PORTE 4 #define STM32_PORTF 5 #define STM32_PORTG 6 -#define STM32_PORTH 7 /* IO port H */ +#define STM32_PORTH 7 +#define STM32_PORTI 8 +#define STM32_PORTJ 9 +#define STM32_PORTK 10 /* IO port K */ #ifndef STM32_PORTS_MAX -#define STM32_PORTS_MAX (STM32_PORTH + 1) +#define STM32_PORTS_MAX (STM32_PORTK + 1) #endif /** @@ -179,5 +182,55 @@ #define STM32_PIN_PH14 STM32PIN(STM32_PORTH, 14) #define STM32_PIN_PH15 STM32PIN(STM32_PORTH, 15) +#define STM32_PIN_PI0 STM32PIN(STM32_PORTI, 0) +#define STM32_PIN_PI1 STM32PIN(STM32_PORTI, 1) +#define STM32_PIN_PI2 STM32PIN(STM32_PORTI, 2) +#define STM32_PIN_PI3 STM32PIN(STM32_PORTI, 3) +#define STM32_PIN_PI4 STM32PIN(STM32_PORTI, 4) +#define STM32_PIN_PI5 STM32PIN(STM32_PORTI, 5) +#define STM32_PIN_PI6 STM32PIN(STM32_PORTI, 6) +#define STM32_PIN_PI7 STM32PIN(STM32_PORTI, 7) +#define STM32_PIN_PI8 STM32PIN(STM32_PORTI, 8) +#define STM32_PIN_PI9 STM32PIN(STM32_PORTI, 9) +#define STM32_PIN_PI10 STM32PIN(STM32_PORTI, 10) +#define STM32_PIN_PI11 STM32PIN(STM32_PORTI, 11) +#define STM32_PIN_PI12 STM32PIN(STM32_PORTI, 12) +#define STM32_PIN_PI13 STM32PIN(STM32_PORTI, 13) +#define STM32_PIN_PI14 STM32PIN(STM32_PORTI, 14) +#define STM32_PIN_PI15 STM32PIN(STM32_PORTI, 15) + +#define STM32_PIN_PJ0 STM32PIN(STM32_PORTJ, 0) +#define STM32_PIN_PJ1 STM32PIN(STM32_PORTJ, 1) +#define STM32_PIN_PJ2 STM32PIN(STM32_PORTJ, 2) +#define STM32_PIN_PJ3 STM32PIN(STM32_PORTJ, 3) +#define STM32_PIN_PJ4 STM32PIN(STM32_PORTJ, 4) +#define STM32_PIN_PJ5 STM32PIN(STM32_PORTJ, 5) +#define STM32_PIN_PJ6 STM32PIN(STM32_PORTJ, 6) +#define STM32_PIN_PJ7 STM32PIN(STM32_PORTJ, 7) +#define STM32_PIN_PJ8 STM32PIN(STM32_PORTJ, 8) +#define STM32_PIN_PJ9 STM32PIN(STM32_PORTJ, 9) +#define STM32_PIN_PJ10 STM32PIN(STM32_PORTJ, 10) +#define STM32_PIN_PJ11 STM32PIN(STM32_PORTJ, 11) +#define STM32_PIN_PJ12 STM32PIN(STM32_PORTJ, 12) +#define STM32_PIN_PJ13 STM32PIN(STM32_PORTJ, 13) +#define STM32_PIN_PJ14 STM32PIN(STM32_PORTJ, 14) +#define STM32_PIN_PJ15 STM32PIN(STM32_PORTJ, 15) + +#define STM32_PIN_PK0 STM32PIN(STM32_PORTK, 0) +#define STM32_PIN_PK1 STM32PIN(STM32_PORTK, 1) +#define STM32_PIN_PK2 STM32PIN(STM32_PORTK, 2) +#define STM32_PIN_PK3 STM32PIN(STM32_PORTK, 3) +#define STM32_PIN_PK4 STM32PIN(STM32_PORTK, 4) +#define STM32_PIN_PK5 STM32PIN(STM32_PORTK, 5) +#define STM32_PIN_PK6 STM32PIN(STM32_PORTK, 6) +#define STM32_PIN_PK7 STM32PIN(STM32_PORTK, 7) +#define STM32_PIN_PK8 STM32PIN(STM32_PORTK, 8) +#define STM32_PIN_PK9 STM32PIN(STM32_PORTK, 9) +#define STM32_PIN_PK10 STM32PIN(STM32_PORTK, 10) +#define STM32_PIN_PK11 STM32PIN(STM32_PORTK, 11) +#define STM32_PIN_PK12 STM32PIN(STM32_PORTK, 12) +#define STM32_PIN_PK13 STM32PIN(STM32_PORTK, 13) +#define STM32_PIN_PK14 STM32PIN(STM32_PORTK, 14) +#define STM32_PIN_PK15 STM32PIN(STM32_PORTK, 15) #endif /* _STM32_PINCTRL_COMMON_H_ */