summary refs log tree commit diff
path: root/arch/arm/boot/dts/sun4i-a10-inet97fv2.dts
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-08-24 00:37:25 +0200
committerMaxime Ripard <maxime.ripard@free-electrons.com>2015-09-27 10:21:20 +0200
commit2d4f66355b37b149efb63887226f3bb71342b5aa (patch)
treef53dc507cc75af691a8524ab5b10b50e15d0fb57 /arch/arm/boot/dts/sun4i-a10-inet97fv2.dts
parent64a6295e620204e8a9d4429c3e59544022eeef45 (diff)
downloadlinux-2d4f66355b37b149efb63887226f3bb71342b5aa.tar.gz
ARM: dts: sun4i: inet97fv2: Enable support for tablet keys
Enable support for the tablet keys which are connected via the lradc.

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/sun4i-a10-inet97fv2.dts')
-rw-r--r--arch/arm/boot/dts/sun4i-a10-inet97fv2.dts41
1 files changed, 41 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun4i-a10-inet97fv2.dts b/arch/arm/boot/dts/sun4i-a10-inet97fv2.dts
index 309a0daa31cd..909fde9edfed 100644
--- a/arch/arm/boot/dts/sun4i-a10-inet97fv2.dts
+++ b/arch/arm/boot/dts/sun4i-a10-inet97fv2.dts
@@ -47,6 +47,7 @@
 #include "sunxi-common-regulators.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
 	model = "INet-97F Rev 02";
@@ -82,6 +83,46 @@
 
 #include "axp209.dtsi"
 
+&lradc {
+	vref-supply = <&reg_ldo2>;
+	status = "okay";
+
+	button@200 {
+		label = "Menu";
+		linux,code = <KEY_MENU>;
+		channel = <0>;
+		voltage = <200000>;
+	};
+
+	button@600 {
+		label = "Volume Up";
+		linux,code = <KEY_VOLUMEUP>;
+		channel = <0>;
+		voltage = <600000>;
+	};
+
+	button@800 {
+		label = "Volume Down";
+		linux,code = <KEY_VOLUMEDOWN>;
+		channel = <0>;
+		voltage = <800000>;
+	};
+
+	button@1000 {
+		label = "Home";
+		linux,code = <KEY_HOMEPAGE>;
+		channel = <0>;
+		voltage = <1000000>;
+	};
+
+	button@1200 {
+		label = "Esc";
+		linux,code = <KEY_ESC>;
+		channel = <0>;
+		voltage = <1200000>;
+	};
+};
+
 &mmc0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;