summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-01-13 11:47:04 +0100
committerMaxime Ripard <maxime.ripard@free-electrons.com>2015-01-21 09:59:13 +0100
commit03d6372c844950eb7bbf9729c780051e07daa8a9 (patch)
tree85cb3414999f319f8ae9329cfa2454f8a80228a6 /arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts
parentf0a05a0cd444a242d78a915a5dc0ad0c8f33a6e7 (diff)
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: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts')
-rw-r--r--arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts b/arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts
index 1da31d0e7338..623573e46080 100644
--- a/arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts
+++ b/arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts
@@ -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>;