ARM: dts: sun5i: hsg-h702: Enable side volume buttons with LRADC
authorChen-Yu Tsai <wens@csie.org>
Fri, 31 Jul 2015 14:40:58 +0000 (22:40 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 31 Jul 2015 16:59:39 +0000 (18:59 +0200)
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>
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts

index 990f9d61ae4d01756a812fe2a7b4fc7c5b9cae2f..4b8808ab9711274186a9d73e98f3b5fd98f48d4f 100644 (file)
@@ -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>
 
 / {
        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>;