diff options
author | Ondrej Jirman <megous@megous.com> | 2019-03-27 03:33:39 +0100 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2019-04-09 09:43:04 +0200 |
commit | 5824c8ebb94d362ff0a278ff420bc22f7e075d32 (patch) | |
tree | 25f02108b1e4546c37eb52321141750f95351045 /arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | |
parent | ARM: dts: sunxi: Add R_LRADC support for A83T (diff) | |
download | linux-5824c8ebb94d362ff0a278ff420bc22f7e075d32.tar.xz linux-5824c8ebb94d362ff0a278ff420bc22f7e075d32.zip |
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>
Diffstat (limited to 'arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts')
-rw-r--r-- | arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts index 87c04d4b6ba3..66d078053d5f 100644 --- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts @@ -46,6 +46,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/pwm/pwm.h> +#include <dt-bindings/input/input.h> / { model = "TBS A711 Tablet"; @@ -219,6 +220,25 @@ status = "okay"; }; +&r_lradc { + vref-supply = <®_aldo2>; + status = "okay"; + + button@210 { + label = "Volume Up"; + linux,code = <KEY_VOLUMEUP>; + channel = <0>; + voltage = <210000>; + }; + + button@410 { + label = "Volume Down"; + linux,code = <KEY_VOLUMEDOWN>; + channel = <0>; + voltage = <410000>; + }; +}; + &r_rsb { status = "okay"; |