]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: sun8i: v3s: add LRADC device node
authorIcenowy Zheng <icenowy@aosc.io>
Mon, 15 May 2017 08:39:59 +0000 (16:39 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 15 May 2017 08:53:50 +0000 (10:53 +0200)
Allwinner V3s features a LRADC like the ones in older SoCs.

Add a device tree node for it.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-v3s.dtsi

index 3b50fa580261d44edb72e7b6b1d935f2baaf61e6..b9a3df941fb419b6ba75615727bb5c0c69f27ad9 100644 (file)
@@ -240,6 +240,13 @@ wdt0: watchdog@01c20ca0 {
                        interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
                };
 
+               lradc: lradc@1c22800 {
+                       compatible = "allwinner,sun4i-a10-lradc-keys";
+                       reg = <0x01c22800 0x400>;
+                       interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
+
                uart0: serial@01c28000 {
                        compatible = "snps,dw-apb-uart";
                        reg = <0x01c28000 0x400>;