Skip to content

Commit

Permalink
ARM: dts: sun5i: hsg-h702: Enable side volume buttons with LRADC
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chen-Yu Tsai authored and Maxime Ripard committed Jul 31, 2015
1 parent 361a406 commit d747af0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions arch/arm/boot/dts/sun5i-a13-hsg-h702.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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>

/ {
Expand Down Expand Up @@ -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>;
Expand Down

0 comments on commit d747af0

Please sign in to comment.