]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: dts: sophgo: Add SARADC description for Sophgo CV1800B
authorThomas Bonnefille <thomas.bonnefille@bootlin.com>
Thu, 29 Aug 2024 12:31:52 +0000 (14:31 +0200)
committerInochi Amaoto <inochiama@gmail.com>
Tue, 22 Oct 2024 00:39:53 +0000 (08:39 +0800)
Add SARADC node for the Successive Approximation Analog to
Digital Converter used in Sophgo CV1800B SoC.
This patch only adds the active domain controller.

Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
Reviewed-by: Inochi Amaoto <inochiama@gmail.com>
Link: https://lore.kernel.org/r/20240829-sg2002-adc-v5-3-aacb381e869b@bootlin.com
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
arch/riscv/boot/dts/sophgo/cv18xx.dtsi

index b724fb6d9689ef65cfe9470a1f614df30e4ca147..bef89979df78cef028d016c807a5013d91dd8d53 100644 (file)
                        };
                };
 
+               saradc: adc@30f0000 {
+                       compatible = "sophgo,cv1800b-saradc";
+                       reg = <0x030f0000 0x1000>;
+                       clocks = <&clk CLK_SARADC>;
+                       interrupts = <100 IRQ_TYPE_LEVEL_HIGH>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+
+                       channel@0 {
+                               reg = <0>;
+                       };
+
+                       channel@1 {
+                               reg = <1>;
+                       };
+
+                       channel@2 {
+                               reg = <2>;
+                       };
+               };
+
                i2c0: i2c@4000000 {
                        compatible = "snps,designware-i2c";
                        reg = <0x04000000 0x10000>;