Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: sun8i: tbs-a711: Add support for volume keys input

TBS A711 tablet has volume up/down keys connected to r_lradc. Add
support for these keys.

Signed-off-by: Ondrej Jirman <megous@megous.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>

authored by

Ondrej Jirman and committed by
Maxime Ripard
5824c8eb d6212ce3

+20
+20
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
··· 46 46 47 47 #include <dt-bindings/gpio/gpio.h> 48 48 #include <dt-bindings/pwm/pwm.h> 49 + #include <dt-bindings/input/input.h> 49 50 50 51 / { 51 52 model = "TBS A711 Tablet"; ··· 218 217 pinctrl-names = "default"; 219 218 pinctrl-0 = <&pwm_pin>; 220 219 status = "okay"; 220 + }; 221 + 222 + &r_lradc { 223 + vref-supply = <&reg_aldo2>; 224 + status = "okay"; 225 + 226 + button@210 { 227 + label = "Volume Up"; 228 + linux,code = <KEY_VOLUMEUP>; 229 + channel = <0>; 230 + voltage = <210000>; 231 + }; 232 + 233 + button@410 { 234 + label = "Volume Down"; 235 + linux,code = <KEY_VOLUMEDOWN>; 236 + channel = <0>; 237 + voltage = <410000>; 238 + }; 221 239 }; 222 240 223 241 &r_rsb {