]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: allwinner: a523: add gpadc node
authorMichal Piekos <michal.piekos@mmpsystems.pl>
Sat, 16 May 2026 05:34:16 +0000 (07:34 +0200)
committerChen-Yu Tsai <wens@kernel.org>
Tue, 9 Jun 2026 13:31:38 +0000 (21:31 +0800)
Describe GPADC block on Allwinner A523.

Tested on Radxa Cubie A5E:
- 2 connected channels are showing voltages in agreement with
  schematics.
        BOOT-SEL-ADC ~500mV
        BOM-ADC ~1800mV
- 3rd channel exposed on 40pin header is showing correct voltages when
  connected to known voltage source.

Signed-off-by: Michal Piekos <michal.piekos@mmpsystems.pl>
Link: https://patch.msgid.link/20260516-sunxi-a523-gpadc-v3-3-a3a04cff2620@mmpsystems.pl
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi

index d3c47966e8fc883c5a7ccac9138fdc04b38d481e..321a03da77da525c29dc5f36625fb6307b9ff1c7 100644 (file)
                        status = "disabled";
                };
 
+               gpadc: adc@2009000 {
+                       compatible = "allwinner,sun55i-a523-gpadc";
+                       reg = <0x2009000 0x400>;
+                       clocks = <&ccu CLK_BUS_GPADC0>, <&ccu CLK_GPADC0>;
+                       clock-names = "bus", "mod";
+                       resets = <&ccu RST_BUS_GPADC0>;
+                       interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
+                       #io-channel-cells = <1>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
                wdt: watchdog@2050000 {
                        compatible = "allwinner,sun55i-a523-wdt";
                        reg = <0x2050000 0x20>;