]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: dts: thead: Add TH1520 I2C1 controller
authorMoeLeak <i@leak.moe>
Fri, 8 May 2026 11:44:13 +0000 (19:44 +0800)
committerDrew Fustini <fustini@kernel.org>
Mon, 25 May 2026 08:12:49 +0000 (01:12 -0700)
Describe the TH1520 I2C1 controller so boards can enable devices attached
to that bus.

The controller is disabled by default because pinmuxing and connected
peripherals are board-specific.

Signed-off-by: MoeLeak <i@leak.moe>
Signed-off-by: Drew Fustini <fustini@kernel.org>
arch/riscv/boot/dts/thead/th1520.dtsi

index 5e91dc1d2b9b7eb1171203eaf405fc7a4d0ae66e..94932c51b7e392cd75dc934b22c36be30f39fbcb 100644 (file)
                        status = "disabled";
                };
 
+               i2c1: i2c@ffe7f24000 {
+                       compatible = "thead,th1520-i2c", "snps,designware-i2c";
+                       reg = <0xff 0xe7f24000 0x0 0x4000>;
+                       interrupts = <45 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk CLK_I2C1>, <&clk CLK_PERI_APB_PCLK>;
+                       clock-names = "ref", "pclk";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
                gpio@ffe7f34000 {
                        compatible = "snps,dw-apb-gpio";
                        reg = <0xff 0xe7f34000 0x0 0x1000>;