diff --git a/boards/st/nucleo_g431kb/doc/index.rst b/boards/st/nucleo_g431kb/doc/index.rst index 3ea55476583b752..cb90e460df56cc3 100644 --- a/boards/st/nucleo_g431kb/doc/index.rst +++ b/boards/st/nucleo_g431kb/doc/index.rst @@ -53,6 +53,8 @@ The Zephyr nucleo_g431kb board configuration supports the following hardware fea +-----------+------------+-------------------------------------+ | PWM | on-chip | pwm | +-----------+------------+-------------------------------------+ +| I2C | on-chip | i2c | ++-----------+------------+-------------------------------------+ Other hardware features are not yet supported on this Zephyr port. @@ -77,6 +79,8 @@ Default Zephyr Peripheral Mapping: - LPUART_1_RX : PA3 - LD2 : PB8 - PWM_4_CH_3 : PB8 +- I2C_2_SCL : PA9 +- I2C_2_SDA : PA8 System Clock ------------ diff --git a/boards/st/nucleo_g431kb/nucleo_g431kb.dts b/boards/st/nucleo_g431kb/nucleo_g431kb.dts index 4f1a5d971b0d268..8211acc1876c3af 100644 --- a/boards/st/nucleo_g431kb/nucleo_g431kb.dts +++ b/boards/st/nucleo_g431kb/nucleo_g431kb.dts @@ -90,6 +90,11 @@ }; }; +&i2c2 { + pinctrl-0 = <&i2c2_scl_pa9 &i2c2_sda_pa8>; + pinctrl-names = "default"; + status = "okay"; +}; &flash0 {