aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun5i-a13-hsg-h702.dts
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2015-07-31 22:40:58 +0800
committerMaxime Ripard <maxime.ripard@free-electrons.com>2015-07-31 18:59:39 +0200
commitd747af013db7d0a0d3c5054d3856ad941f2b715c (patch)
treeacec5e10efe991cd2e63dc6487a683b1de23083b /arch/arm/boot/dts/sun5i-a13-hsg-h702.dts
parent361a4069727b1f43583314470e877e1187b35505 (diff)
ARM: dts: sun5i: hsg-h702: Enable side volume buttons with LRADC
The tablet has volume up/down buttons on the side, connected to the LRADC. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun5i-a13-hsg-h702.dts')
-rw-r--r--arch/arm/boot/dts/sun5i-a13-hsg-h702.dts20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun5i-a13-hsg-h702.dts b/arch/arm/boot/dts/sun5i-a13-hsg-h702.dts
index 990f9d61ae4d..4b8808ab9711 100644
--- a/arch/arm/boot/dts/sun5i-a13-hsg-h702.dts
+++ b/arch/arm/boot/dts/sun5i-a13-hsg-h702.dts
@@ -45,6 +45,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>
/ {
@@ -96,6 +97,25 @@
status = "okay";
};
+&lradc {
+ vref-supply = <&reg_ldo2>;
+ 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>;
+ };
+};
+
&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_h702>;