Skip to content

Commit 2672a3a

Browse files
RomainPelletantkartben
authored andcommitted
boards: esp32c6_devkitc: add i2c0 port
- Add I2C support in esp32c6_devkitc - Update board documentation Signed-off-by: Romain Pelletant <[email protected]>
1 parent 42efd84 commit 2672a3a

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

boards/espressif/esp32c6_devkitc/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ Current Zephyr's ESP32-C6-DevKitC board supports the following features:
9999
+------------+------------+-------------------------------------+
100100
| SPI Master | on-chip | spi |
101101
+------------+------------+-------------------------------------+
102+
| I2C | on-chip | i2c |
103+
+------------+------------+-------------------------------------+
102104
| Watchdog | on-chip | watchdog |
103105
+------------+------------+-------------------------------------+
104106
| LEDC | on-chip | pwm |

boards/espressif/esp32c6_devkitc/esp32c6_devkitc-pinctrl.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,14 @@
3232
output-low;
3333
};
3434
};
35+
36+
i2c0_default: i2c0_default {
37+
group1 {
38+
pinmux = <I2C0_SDA_GPIO6>,
39+
<I2C0_SCL_GPIO7>;
40+
bias-pull-up;
41+
drive-open-drain;
42+
output-high;
43+
};
44+
};
3545
};

boards/espressif/esp32c6_devkitc/esp32c6_devkitc.dts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@
4949
status = "okay";
5050
};
5151

52+
&i2c0 {
53+
status = "okay";
54+
clock-frequency = <I2C_BITRATE_FAST>;
55+
pinctrl-0 = <&i2c0_default>;
56+
pinctrl-names = "default";
57+
};
58+
5259
&spi2 {
5360
#address-cells = <1>;
5461
#size-cells = <0>;

boards/espressif/esp32c6_devkitc/esp32c6_devkitc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ supported:
1212
- dma
1313
- spi
1414
- entropy
15+
- i2c
1516
testing:
1617
ignore_tags:
1718
- bluetooth

0 commit comments

Comments
 (0)