From: Thomas Bonnefille Date: Thu, 29 Aug 2024 12:31:52 +0000 (+0200) Subject: riscv: dts: sophgo: Add SARADC description for Sophgo CV1800B X-Git-Tag: v6.13-rc1~140^2~19^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45a544a62ef7cac9ecc69585a90da72ca68af898;p=thirdparty%2Fkernel%2Flinux.git riscv: dts: sophgo: Add SARADC description for Sophgo CV1800B 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 Reviewed-by: Inochi Amaoto Link: https://lore.kernel.org/r/20240829-sg2002-adc-v5-3-aacb381e869b@bootlin.com Signed-off-by: Inochi Amaoto Signed-off-by: Chen Wang --- diff --git a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi index b724fb6d9689e..bef89979df78c 100644 --- a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi @@ -133,6 +133,28 @@ }; }; + 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>;