diff options
author | Randy Li <ayaka@soulik.info> | 2017-05-30 23:52:46 +0800 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2017-06-01 22:24:41 +0200 |
commit | 23c0c210a1adcfca27a52808d1a0cbd807e86518 (patch) | |
tree | ff47c24b390778263350ba1c9832f902ce80a4f5 | |
parent | 08e779e59950affaec4f677b22fda6a1ab150a43 (diff) | |
download | op-kernel-dev-23c0c210a1adcfca27a52808d1a0cbd807e86518.zip op-kernel-dev-23c0c210a1adcfca27a52808d1a0cbd807e86518.tar.gz |
ARM: dts: rockchip: add adc button for Firefly
The only adc button connected to adc input is recovery button.
Signed-off-by: Randy Li <ayaka@soulik.info>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r-- | arch/arm/boot/dts/rk3288-firefly-reload.dts | 17 | ||||
-rw-r--r-- | arch/arm/boot/dts/rk3288-firefly.dtsi | 13 |
2 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3288-firefly-reload.dts b/arch/arm/boot/dts/rk3288-firefly-reload.dts index d0b3204a..b11a282 100644 --- a/arch/arm/boot/dts/rk3288-firefly-reload.dts +++ b/arch/arm/boot/dts/rk3288-firefly-reload.dts @@ -48,6 +48,19 @@ model = "Firefly-RK3288-reload"; compatible = "firefly,firefly-rk3288-reload", "rockchip,rk3288"; + 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"; @@ -246,6 +259,10 @@ status = "okay"; }; +&saradc { + status = "okay"; +}; + &sdmmc { bus-width = <4>; cap-mmc-highspeed; diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi b/arch/arm/boot/dts/rk3288-firefly.dtsi index 8647473..32dabae 100644 --- a/arch/arm/boot/dts/rk3288-firefly.dtsi +++ b/arch/arm/boot/dts/rk3288-firefly.dtsi @@ -49,6 +49,19 @@ reg = <0 0x80000000>; }; + 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>; + }; + }; + dovdd_1v8: dovdd-1v8-regulator { compatible = "regulator-fixed"; regulator-name = "dovdd_1v8"; |