Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d747af01 authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Maxime Ripard
Browse files

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: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 361a4069
Loading
Loading
Loading
Loading
+20 −0
Original line number Original line Diff line number Diff line
@@ -45,6 +45,7 @@
#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>
#include <dt-bindings/pinctrl/sun4i-a10.h>
#include <dt-bindings/pinctrl/sun4i-a10.h>


/ {
/ {
@@ -96,6 +97,25 @@
	status = "okay";
	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 {
&mmc0 {
	pinctrl-names = "default";
	pinctrl-names = "default";
	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_h702>;
	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_h702>;