Skip to content

Commit 65fcc08

Browse files
committed
riscv: dts: sophgo: cv18xx: Add i2c devices
Add i2c devices for the CV180x, CV181x and SG200x soc. Link: https://lore.kernel.org/r/IA1PR20MB49531AA2DBD4832B7926D4A8BB442@IA1PR20MB4953.namprd20.prod.outlook.com Signed-off-by: Inochi Amaoto <inochiama@outlook.com> Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
1 parent 4281f8f commit 65fcc08

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

arch/riscv/boot/dts/sophgo/cv18xx.dtsi

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,61 @@
140140
};
141141
};
142142

143+
i2c0: i2c@4000000 {
144+
compatible = "snps,designware-i2c";
145+
reg = <0x04000000 0x10000>;
146+
#address-cells = <1>;
147+
#size-cells = <0>;
148+
clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C0>;
149+
clock-names = "ref", "pclk";
150+
interrupts = <49 IRQ_TYPE_LEVEL_HIGH>;
151+
status = "disabled";
152+
};
153+
154+
i2c1: i2c@4010000 {
155+
compatible = "snps,designware-i2c";
156+
reg = <0x04010000 0x10000>;
157+
#address-cells = <1>;
158+
#size-cells = <0>;
159+
clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C1>;
160+
clock-names = "ref", "pclk";
161+
interrupts = <50 IRQ_TYPE_LEVEL_HIGH>;
162+
status = "disabled";
163+
};
164+
165+
i2c2: i2c@4020000 {
166+
compatible = "snps,designware-i2c";
167+
reg = <0x04020000 0x10000>;
168+
#address-cells = <1>;
169+
#size-cells = <0>;
170+
clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C2>;
171+
clock-names = "ref", "pclk";
172+
interrupts = <51 IRQ_TYPE_LEVEL_HIGH>;
173+
status = "disabled";
174+
};
175+
176+
i2c3: i2c@4030000 {
177+
compatible = "snps,designware-i2c";
178+
reg = <0x04030000 0x10000>;
179+
#address-cells = <1>;
180+
#size-cells = <0>;
181+
clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C3>;
182+
clock-names = "ref", "pclk";
183+
interrupts = <52 IRQ_TYPE_LEVEL_HIGH>;
184+
status = "disabled";
185+
};
186+
187+
i2c4: i2c@4040000 {
188+
compatible = "snps,designware-i2c";
189+
reg = <0x04040000 0x10000>;
190+
#address-cells = <1>;
191+
#size-cells = <0>;
192+
clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C4>;
193+
clock-names = "ref", "pclk";
194+
interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
195+
status = "disabled";
196+
};
197+
143198
uart0: serial@4140000 {
144199
compatible = "snps,dw-apb-uart";
145200
reg = <0x04140000 0x100>;

0 commit comments

Comments
 (0)