ARM: dts: suniv: f1c100s: add LRADC node
authorAndre Przywara <andre.przywara@arm.com>
Mon, 7 Nov 2022 00:54:30 +0000 (00:54 +0000)
committerJernej Skrabec <jernej.skrabec@gmail.com>
Wed, 16 Nov 2022 18:38:28 +0000 (19:38 +0100)
The Allwinner F1C100s series of SoCs contain a LRADC (aka. KEYADC)
compatible to the version in other SoCs.
The manual doesn't mention the ratio of the input voltage that is used,
but comparing actual measurements with the values in the register
suggests that it is 3/4 of Vref.

Add the DT node describing the base address and interrupt. As in the
older SoCs, there is no explicit reset or clock gate, also there is a
dedicated, non-multiplexed pin, so need for more properties.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20221107005433.11079-8-andre.przywara@arm.com
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
arch/arm/boot/dts/suniv-f1c100s.dtsi

index 2db99fb..9455d27 100644 (file)
                        status = "disabled";
                };
 
+               lradc: lradc@1c23400 {
+                       compatible = "allwinner,suniv-f1c100s-lradc",
+                                    "allwinner,sun8i-a83t-r-lradc";
+                       reg = <0x01c23400 0x400>;
+                       interrupts = <22>;
+                       status = "disabled";
+               };
+
                uart0: serial@1c25000 {
                        compatible = "snps,dw-apb-uart";
                        reg = <0x01c25000 0x400>;