Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03d6372c authored by Hans de Goede's avatar Hans de Goede Committed by Maxime Ripard
Browse files

ARM: dts: sun8i: Enable lradc on a23-ippo-q8h-v5



The a23-ippo-q8h tablets have volume up/down buttons using the lradc. This
has been tested on both a v5 and a v1.2 tablet.

Tested-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent f0a05a0c
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@
#include "sunxi-common-regulators.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/sun4i-a10.h>

/ {
@@ -86,6 +87,25 @@
			};
		};

		lradc: lradc@01c22800 {
			vref-supply = <&reg_vcc3v0>;
			status = "okay";

			button@200 {
				label = "Volume Up";
				linux,code = <KEY_VOLUMEUP>;
				channel = <0>;
				voltage = <200000>;
			};

			button@400 {
				label = "Volume Down";
				linux,code = <KEY_VOLUMEDOWN>;
				channel = <0>;
				voltage = <400000>;
			};
		};

		i2c0: i2c@01c2ac00 {
			pinctrl-names = "default";
			pinctrl-0 = <&i2c0_pins_a>;