Skip to content

Commit 502e622

Browse files
andrei-edward-popakartben
authored andcommitted
dts: riscv: wch: added i2c node
added i2c node for ch32v003 Signed-off-by: Andrei-Edward Popa <andrei.popa105@yahoo.com>
1 parent f8a4262 commit 502e622

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dts/riscv/wch/ch32v0/ch32v003.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,16 @@
102102
};
103103
};
104104

105+
i2c1: i2c@40005400 {
106+
compatible = "wch,i2c";
107+
#address-cells = <1>;
108+
#size-cells = <0>;
109+
reg = <0x40005400 0x400>;
110+
clocks = <&rcc CH32V00X_CLOCK_I2C1>;
111+
interrupt-parent = <&pfic>;
112+
interrupts = <30>, <31>;
113+
};
114+
105115
usart1: uart@40013800 {
106116
compatible = "wch,usart";
107117
reg = <0x40013800 0x10>;

0 commit comments

Comments
 (0)