diff options
author | Chen-Yu Tsai <wens@csie.org> | 2015-07-31 10:40:58 -0400 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2015-07-31 12:59:39 -0400 |
commit | d747af013db7d0a0d3c5054d3856ad941f2b715c (patch) | |
tree | acec5e10efe991cd2e63dc6487a683b1de23083b | |
parent | 361a4069727b1f43583314470e877e1187b35505 (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>
-rw-r--r-- | arch/arm/boot/dts/sun5i-a13-hsg-h702.dts | 20 |
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 @@ | |||
45 | #include "sunxi-common-regulators.dtsi" | 45 | #include "sunxi-common-regulators.dtsi" |
46 | 46 | ||
47 | #include <dt-bindings/gpio/gpio.h> | 47 | #include <dt-bindings/gpio/gpio.h> |
48 | #include <dt-bindings/input/input.h> | ||
48 | #include <dt-bindings/pinctrl/sun4i-a10.h> | 49 | #include <dt-bindings/pinctrl/sun4i-a10.h> |
49 | 50 | ||
50 | / { | 51 | / { |
@@ -96,6 +97,25 @@ | |||
96 | status = "okay"; | 97 | status = "okay"; |
97 | }; | 98 | }; |
98 | 99 | ||
100 | &lradc { | ||
101 | vref-supply = <®_ldo2>; | ||
102 | status = "okay"; | ||
103 | |||
104 | button@200 { | ||
105 | label = "Volume Up"; | ||
106 | linux,code = <KEY_VOLUMEUP>; | ||
107 | channel = <0>; | ||
108 | voltage = <200000>; | ||
109 | }; | ||
110 | |||
111 | button@400 { | ||
112 | label = "Volume Down"; | ||
113 | linux,code = <KEY_VOLUMEDOWN>; | ||
114 | channel = <0>; | ||
115 | voltage = <400000>; | ||
116 | }; | ||
117 | }; | ||
118 | |||
99 | &mmc0 { | 119 | &mmc0 { |
100 | pinctrl-names = "default"; | 120 | pinctrl-names = "default"; |
101 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_h702>; | 121 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_h702>; |