riscv: dts: sophgo: cv18xx: Add i2c devices
authorInochi Amaoto <inochiama@outlook.com>
Thu, 8 Feb 2024 00:22:12 +0000 (08:22 +0800)
committerInochi Amaoto <inochiama@outlook.com>
Thu, 11 Apr 2024 09:32:31 +0000 (17:32 +0800)
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>
arch/riscv/boot/dts/sophgo/cv18xx.dtsi

index dcb219d9d2faa989dc8b68fba920d8df8de8bc0c..75d0c57f4ffbffd17b28cdc13f5d0bb509e5a51a 100644 (file)
                        };
                };
 
+               i2c0: i2c@4000000 {
+                       compatible = "snps,designware-i2c";
+                       reg = <0x04000000 0x10000>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C0>;
+                       clock-names = "ref", "pclk";
+                       interrupts = <49 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
+
+               i2c1: i2c@4010000 {
+                       compatible = "snps,designware-i2c";
+                       reg = <0x04010000 0x10000>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C1>;
+                       clock-names = "ref", "pclk";
+                       interrupts = <50 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
+
+               i2c2: i2c@4020000 {
+                       compatible = "snps,designware-i2c";
+                       reg = <0x04020000 0x10000>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C2>;
+                       clock-names = "ref", "pclk";
+                       interrupts = <51 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
+
+               i2c3: i2c@4030000 {
+                       compatible = "snps,designware-i2c";
+                       reg = <0x04030000 0x10000>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C3>;
+                       clock-names = "ref", "pclk";
+                       interrupts = <52 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
+
+               i2c4: i2c@4040000 {
+                       compatible = "snps,designware-i2c";
+                       reg = <0x04040000 0x10000>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C4>;
+                       clock-names = "ref", "pclk";
+                       interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
+
                uart0: serial@4140000 {
                        compatible = "snps,dw-apb-uart";
                        reg = <0x04140000 0x100>;