linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/7] ARM: dts: sun4i: Enable tablet keys on Chuwi V7 CW0825
@ 2015-03-07 19:01 Hans de Goede
  2015-03-07 19:01 ` [PATCH 2/7] ARM: dts: sun5i: Stop using different compatibles for ehci/ohci on a13 vs a10s Hans de Goede
                   ` (6 more replies)
  0 siblings, 7 replies; 22+ messages in thread
From: Hans de Goede @ 2015-03-07 19:01 UTC (permalink / raw)
  To: linux-arm-kernel

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

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts | 27 +++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts b/arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts
index 58214f2..97fca89 100644
--- a/arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts
+++ b/arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts
@@ -49,6 +49,7 @@
 #include "sun4i-a10.dtsi"
 #include "sunxi-common-regulators.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
 	model = "Chuwi V7 CW0825";
@@ -74,6 +75,32 @@
 	};
 };
 
+&lradc {
+	vref-supply = <&reg_vcc3v0>;
+	status = "okay";
+
+	button at 800 {
+		label = "Volume Up";
+		linux,code = <KEY_VOLUMEUP>;
+		channel = <0>;
+		voltage = <800000>;
+	};
+
+	button at 1000 {
+		label = "Volume Down";
+		linux,code = <KEY_VOLUMEDOWN>;
+		channel = <0>;
+		voltage = <1000000>;
+	};
+
+	button at 1200 {
+		label = "Back";
+		linux,code = <KEY_BACK>;
+		channel = <0>;
+		voltage = <1200000>;
+	};
+};
+
 &mmc0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
-- 
2.3.1

^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2015-03-09 14:53 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-07 19:01 [PATCH 1/7] ARM: dts: sun4i: Enable tablet keys on Chuwi V7 CW0825 Hans de Goede
2015-03-07 19:01 ` [PATCH 2/7] ARM: dts: sun5i: Stop using different compatibles for ehci/ohci on a13 vs a10s Hans de Goede
2015-03-08 17:19   ` Maxime Ripard
2015-03-07 19:01 ` [PATCH 3/7] ARM: dts: sun5i: Add mmc2 pinmux settings Hans de Goede
2015-03-08 17:19   ` Maxime Ripard
2015-03-07 19:01 ` [PATCH 4/7] ARM: dts: sun5i: Add new Auxtek-t004 board Hans de Goede
2015-03-08 17:21   ` Maxime Ripard
2015-03-08 19:15     ` Hans de Goede
2015-03-09 14:53       ` Maxime Ripard
2015-03-07 19:01 ` [PATCH 5/7] ARM: dts: sun5i: Add new Utoo P66 board Hans de Goede
2015-03-08 17:22   ` Maxime Ripard
2015-03-07 19:01 ` [PATCH 6/7] ARM: dts: sun7i: Add OOB irq support to boards with broadcom sdio wifi Hans de Goede
2015-03-08  2:40   ` [linux-sunxi] " Chen-Yu Tsai
2015-03-08  3:12   ` Chen-Yu Tsai
2015-03-08 11:25     ` Hans de Goede
2015-03-08 17:25   ` Maxime Ripard
2015-03-08 19:19     ` Hans de Goede
2015-03-07 19:01 ` [PATCH 7/7] ARM: dts: sun7i: Enable cap-sdio-irq for bananapro " Hans de Goede
2015-03-08  2:42   ` [linux-sunxi] " Chen-Yu Tsai
2015-03-08 11:27     ` Hans de Goede
2015-03-08 17:26       ` Maxime Ripard
2015-03-08 17:18 ` [PATCH 1/7] ARM: dts: sun4i: Enable tablet keys on Chuwi V7 CW0825 Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).