diff options
author | John Keeping <john@metanate.com> | 2018-02-18 17:03:35 +0000 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2018-02-19 06:53:05 +0100 |
commit | 83454312f72ea310c315117dad27e5f0c0b05c30 (patch) | |
tree | 0028b7dee3204f7a7569d38147d4c3141170b154 /arch/arm/boot/dts/rk3288-rock2-square.dts | |
parent | 1689dbe7b52f0b7c270ce813711e0e27e6f7329c (diff) | |
download | linux-83454312f72ea310c315117dad27e5f0c0b05c30.tar.bz2 |
ARM: dts: rockchip: add recovery button for Rock2 Square
The recovery button is connected to ADC1. This is the same setup as the
Firefly board, but for Rock2 the power supply is connected on the module
and all of the inputs are wired up to the edge connector, so use of the
ADC depends on the carrier board.
Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm/boot/dts/rk3288-rock2-square.dts')
-rw-r--r-- | arch/arm/boot/dts/rk3288-rock2-square.dts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3288-rock2-square.dts b/arch/arm/boot/dts/rk3288-rock2-square.dts index 6adeb331452f..0ea2a3a1fa51 100644 --- a/arch/arm/boot/dts/rk3288-rock2-square.dts +++ b/arch/arm/boot/dts/rk3288-rock2-square.dts @@ -50,6 +50,19 @@ stdout-path = "serial2:115200n8"; }; + adc-keys { + compatible = "adc-keys"; + io-channels = <&saradc 1>; + io-channel-names = "buttons"; + keyup-threshold-microvolt = <1800000>; + + button-recovery { + label = "Recovery"; + linux,code = <KEY_VENDOR>; + press-threshold-microvolt = <0>; + }; + }; + gpio-keys { compatible = "gpio-keys"; @@ -281,6 +294,10 @@ }; }; +&saradc { + status = "okay"; +}; + &spdif { status = "okay"; }; |