Commit 2d4f6635 authored by Hans de Goede's avatar Hans de Goede Committed by Maxime Ripard

ARM: dts: sun4i: inet97fv2: Enable support for tablet keys

Enable support for the tablet keys which are connected via the lradc.
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 64a6295e
......@@ -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 @@ axp209: pmic@34 {
#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>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment