ARM: dts: sun4i: Enable tablet keys on Chuwi V7 CW0825

Enable the lradc controlled tablet keys on the Chuwi V7 CW0825 tablet.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
Hans de Goede 2015-03-07 20:01:18 +01:00 committed by Maxime Ripard
parent ef1ac7c963
commit cbc8107b3e
1 changed files with 27 additions and 0 deletions

View File

@ -49,6 +49,7 @@
#include "sun4i-a10.dtsi" #include "sun4i-a10.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ { / {
model = "Chuwi V7 CW0825"; model = "Chuwi V7 CW0825";
@ -74,6 +75,32 @@ axp209: pmic@34 {
}; };
}; };
&lradc {
vref-supply = <&reg_vcc3v0>;
status = "okay";
button@800 {
label = "Volume Up";
linux,code = <KEY_VOLUMEUP>;
channel = <0>;
voltage = <800000>;
};
button@1000 {
label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>;
channel = <0>;
voltage = <1000000>;
};
button@1200 {
label = "Back";
linux,code = <KEY_BACK>;
channel = <0>;
voltage = <1200000>;
};
};
&mmc0 { &mmc0 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;