boards: arm: nucleo_c031c6: Add I2C to board dts

Add I2C to board dts and also add I2C support to board
documentation.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
This commit is contained in:
Benjamin Björnsson 2023-05-15 20:10:58 +02:00 committed by Carles Cufí
parent bbbfc0a96d
commit 864e4f090e
3 changed files with 10 additions and 0 deletions

View File

@ -86,6 +86,8 @@ The Zephyr nucleo_c031c6 board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported in this Zephyr port.

View File

@ -105,6 +105,13 @@
};
};
&i2c1 {
pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
pinctrl-names = "default";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
};
&adc1 {
pinctrl-0 = <&adc1_in0_pa0 &adc1_in1_pa1 &adc1_in4_pa4>;
pinctrl-names = "default";

View File

@ -12,5 +12,6 @@ supported:
- watchdog
- pwm
- adc
- i2c
ram: 12
flash: 32