arm64: dts: rockchip: Add DT node for ADC support in RK3588
authorShreeya Patel <shreeya.patel@collabora.com>
Sat, 3 Jun 2023 18:53:39 +0000 (00:23 +0530)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 6 Jun 2023 16:12:52 +0000 (18:12 +0200)
Add DT node for ADC support in RK3588.

Signed-off-by: Shreeya Patel <shreeya.patel@collabora.com>
Link: https://lore.kernel.org/r/20230603185340.13838-8-shreeya.patel@collabora.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588s.dtsi

index afcd4e806cf728e3d9c53c5750ea51fc72594ec0..d3f98788bb1c6bd0110edcc56988cf4af512cad7 100644 (file)
                status = "disabled";
        };
 
+       saradc: adc@fec10000 {
+               compatible = "rockchip,rk3588-saradc";
+               reg = <0x0 0xfec10000 0x0 0x10000>;
+               interrupts = <GIC_SPI 398 IRQ_TYPE_LEVEL_HIGH 0>;
+               #io-channel-cells = <1>;
+               clocks = <&cru CLK_SARADC>, <&cru PCLK_SARADC>;
+               clock-names = "saradc", "apb_pclk";
+               resets = <&cru SRST_P_SARADC>;
+               reset-names = "saradc-apb";
+               status = "disabled";
+       };
+
        i2c6: i2c@fec80000 {
                compatible = "rockchip,rk3588-i2c", "rockchip,rk3399-i2c";
                reg = <0x0 0xfec80000 0x0 0x1000>;