Skip to content

Commit 59ed137

Browse files
RomainPelletantkartben
authored andcommitted
esp32c6: dts: add i2c support
- Add i2c0 bus node in esp32c6 Signed-off-by: Romain Pelletant <[email protected]>
1 parent 09f5866 commit 59ed137

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dts/riscv/espressif/esp32c6/esp32c6_common.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <mem.h>
77
#include <freq.h>
88
#include <zephyr/dt-bindings/gpio/gpio.h>
9+
#include <zephyr/dt-bindings/i2c/i2c.h>
910
#include <zephyr/dt-bindings/interrupt-controller/esp-esp32c6-intmux.h>
1011
#include <zephyr/dt-bindings/clock/esp32c6_clock.h>
1112
#include <dt-bindings/pinctrl/esp32c6-pinctrl.h>
@@ -193,6 +194,17 @@
193194
ngpios = <30>; /* 0..29 */
194195
};
195196

197+
i2c0: i2c@60004000 {
198+
compatible = "espressif,esp32-i2c";
199+
#address-cells = <1>;
200+
#size-cells = <0>;
201+
reg = <0x60004000 0x1000>;
202+
interrupts = <I2C_EXT0_INTR_SOURCE IRQ_DEFAULT_PRIORITY 0>;
203+
interrupt-parent = <&intc>;
204+
clocks = <&rtc ESP32_I2C0_MODULE>;
205+
status = "disabled";
206+
};
207+
196208
uart0: uart@60000000 {
197209
compatible = "espressif,esp32-uart";
198210
reg = <0x60000000 DT_SIZE_K(4)>;

0 commit comments

Comments
 (0)