]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: allwinner: h616: Add GPADC device node
authorChris Morgan <macromorgan@hotmail.com>
Wed, 5 Jun 2024 17:20:48 +0000 (12:20 -0500)
committerChen-Yu Tsai <wens@csie.org>
Sat, 22 Jun 2024 12:14:28 +0000 (20:14 +0800)
The H616 has a GPADC controller which is identical to the one found on
the D1/T113s/R329/T507 SoCs.

Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Link: https://lore.kernel.org/r/20240605172049.231108-4-macroalpha82@gmail.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi

index 20564cc02267d8238214e8987d163e9352e531ed..b07d7aee1896a40b7ea4b7b6d86a2f7a6146b932 100644 (file)
                        status = "disabled";
                };
 
+               gpadc: adc@5070000 {
+                       compatible = "allwinner,sun50i-h616-gpadc",
+                                    "allwinner,sun20i-d1-gpadc";
+                       reg = <0x05070000 0x400>;
+                       clocks = <&ccu CLK_BUS_GPADC>;
+                       resets = <&ccu RST_BUS_GPADC>;
+                       interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+                       #io-channel-cells = <1>;
+               };
+
                ths: thermal-sensor@5070400 {
                        compatible = "allwinner,sun50i-h616-ths";
                        reg = <0x05070400 0x400>;