Skip to content

Commit

Permalink
boards: st: nucleo_431kb: add i2c
Browse files Browse the repository at this point in the history
Add support for i2c.

Signed-off-by: Klaus Nagel <[email protected]>
  • Loading branch information
nagelkl committed Sep 6, 2024
1 parent 1930a1e commit 7230571
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/st/nucleo_g431kb/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
------------
Expand Down
5 changes: 5 additions & 0 deletions boards/st/nucleo_g431kb/nucleo_g431kb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@
};
};

&i2c2 {
pinctrl-0 = <&i2c2_scl_pa9 &i2c2_sda_pa8>;
pinctrl-names = "default";
status = "okay";
};

&flash0 {

Expand Down

0 comments on commit 7230571

Please sign in to comment.