This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit db0d438ae434271a1868c50dc08f34111ddb22cb Author: raiden00pl <[email protected]> AuthorDate: Sun Nov 22 10:35:45 2026 +0100 boards/arm: add I2C1 on the Arduino header of three Nucleo boards. nucleo-g491re: D15 (PB8 SCL) and D14 (PB9 SDA). nucleo-h533re: D15 (PB6 SCL) and D14 (PB7 SDA). nucleo-n657x0-q: D15 (PH9 SCL) and D14 (PC1 SDA), kernel clock from the HSI. Both pins are in VDDIO4, so mark that supply valid. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: raiden00pl <[email protected]> --- boards/arm/stm32g4/nucleo-g491re/include/board.h | 5 +++++ boards/arm/stm32h5/nucleo-h533re/include/board.h | 7 +++++++ boards/arm/stm32n6/nucleo-n657x0-q/include/board.h | 14 ++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/boards/arm/stm32g4/nucleo-g491re/include/board.h b/boards/arm/stm32g4/nucleo-g491re/include/board.h index 27dc47a3d13..cc015ceedaa 100644 --- a/boards/arm/stm32g4/nucleo-g491re/include/board.h +++ b/boards/arm/stm32g4/nucleo-g491re/include/board.h @@ -153,6 +153,11 @@ #define GPIO_USART3_TX GPIO_USART3_TX_3 /* PC10 */ #define GPIO_USART3_RX GPIO_USART3_RX_3 /* PC11 */ +/* I2C1 on Arduino D15 (SCL) and D14 (SDA). */ + +#define GPIO_I2C1_SCL GPIO_I2C1_SCL_3 /* PB8 */ +#define GPIO_I2C1_SDA GPIO_I2C1_SDA_3 /* PB9 */ + /* User LEDs */ #define BOARD_LED1 0 /* User LD2 */ diff --git a/boards/arm/stm32h5/nucleo-h533re/include/board.h b/boards/arm/stm32h5/nucleo-h533re/include/board.h index 95d5e0e5762..3a7d482c425 100644 --- a/boards/arm/stm32h5/nucleo-h533re/include/board.h +++ b/boards/arm/stm32h5/nucleo-h533re/include/board.h @@ -230,6 +230,13 @@ #define GPIO_USART2_RX GPIO_USART2_RX_1 /* PA3 */ #define GPIO_USART2_TX GPIO_USART2_TX_1 /* PA2 */ +/* I2C1 GPIOs ***************************************************************/ + +/* I2C1 on Arduino D15 (SCL) and D14 (SDA) */ + +#define GPIO_I2C1_SCL GPIO_I2C1_SCL_1 /* PB6 */ +#define GPIO_I2C1_SDA GPIO_I2C1_SDA_1 /* PB7 */ + /**************************************************************************** * Public Data ****************************************************************************/ diff --git a/boards/arm/stm32n6/nucleo-n657x0-q/include/board.h b/boards/arm/stm32n6/nucleo-n657x0-q/include/board.h index a48260e1c7a..efd5dd5092d 100644 --- a/boards/arm/stm32n6/nucleo-n657x0-q/include/board.h +++ b/boards/arm/stm32n6/nucleo-n657x0-q/include/board.h @@ -134,6 +134,10 @@ #define BOARD_PWR_VDDIO (PWR_SVMCR3_VDDIO2SV | PWR_SVMCR3_VDDIO3SV | \ PWR_SVMCR3_VDDIO2VRSEL | PWR_SVMCR3_VDDIO3VRSEL) +/* The Arduino I2C pins (D15 PH9, D14 PC1) are on the VddIO4 domain */ + +#define BOARD_PWR_VDDIO4 PWR_SVMCR1_VDDIO4SV + /* LED definitions **********************************************************/ /* The Nucleo-N657X0-Q has three user LEDs (UM3417 silkscreen): @@ -196,6 +200,16 @@ #define GPIO_USART1_TX (GPIO_USART1_TX_3 | GPIO_SPEED_50MHZ) #define GPIO_USART1_RX (GPIO_USART1_RX_3 | GPIO_SPEED_50MHZ) +/* I2C GPIOs ****************************************************************/ + +/* I2C1: Arduino D15/D14 (PH9 SCL, PC1 SDA), kernel clock from the HSI */ + +#define GPIO_I2C1_SCL (GPIO_I2C1_SCL_2 | GPIO_SPEED_50MHZ) +#define GPIO_I2C1_SDA (GPIO_I2C1_SDA_1 | GPIO_SPEED_50MHZ) + +#define STM32_RCC_CCIPR4_I2C1SEL RCC_CCIPR4_I2C1SEL_HSI +#define STM32_I2C1_FREQUENCY STM32_HSI_FREQUENCY + /* Ethernet GPIOs ***********************************************************/ /* ETH1 RMII to the LAN8742A PHY at MDIO address 0: PG11 MDC, PF4 MDIO,
