From: Chen-Yu Tsai Date: Fri, 31 Jul 2015 14:40:58 +0000 (+0800) Subject: ARM: dts: sun5i: hsg-h702: Enable side volume buttons with LRADC X-Git-Tag: MMI-PSA29.97-13-9~9490^2~24^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d747af013db7d0a0d3c5054d3856ad941f2b715c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Maxime Ripard --- 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 +#include #include / { @@ -96,6 +97,25 @@ status = "okay"; }; +&lradc { + vref-supply = <®_ldo2>; + status = "okay"; + + button@200 { + label = "Volume Up"; + linux,code = ; + channel = <0>; + voltage = <200000>; + }; + + button@400 { + label = "Volume Down"; + linux,code = ; + channel = <0>; + voltage = <400000>; + }; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_h702>;