diff options
author | Heiko Stuebner <heiko@sntech.de> | 2016-03-31 21:24:29 +0300 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2016-04-07 02:13:10 +0300 |
commit | 8b30c899c7dd9eb92b957a3c112d3226a9ac1c3c (patch) | |
tree | c250fe4a48987be5614c0b13cb31963d58ff4116 /arch/arm/boot/dts/rk3066a-bqcurie2.dts | |
parent | a8f0fa2764626d2dd808cfbe1a160f2939a36c88 (diff) | |
download | linux-8b30c899c7dd9eb92b957a3c112d3226a9ac1c3c.tar.xz |
ARM: dts: rockchip: clean up gpio-keys nodes
Drop superfluous #address-cells and #size-cells, rename
key-nodes to individual names and also use the key constants
intead of numbers.
Reported-by: Julien Chauveau <chauveau.julien@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/rk3066a-bqcurie2.dts')
-rw-r--r-- | arch/arm/boot/dts/rk3066a-bqcurie2.dts | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/arm/boot/dts/rk3066a-bqcurie2.dts b/arch/arm/boot/dts/rk3066a-bqcurie2.dts index 6d2a5b3a84a8..bc674ee206ec 100644 --- a/arch/arm/boot/dts/rk3066a-bqcurie2.dts +++ b/arch/arm/boot/dts/rk3066a-bqcurie2.dts @@ -42,6 +42,7 @@ */ /dts-v1/; +#include <dt-bindings/input/input.h> #include "rk3066a.dtsi" / { @@ -77,21 +78,19 @@ gpio-keys { compatible = "gpio-keys"; - #address-cells = <1>; - #size-cells = <0>; autorepeat; - button@0 { + power { gpios = <&gpio6 2 GPIO_ACTIVE_LOW>; /* GPIO6_A2 */ - linux,code = <116>; + linux,code = <KEY_POWER>; label = "GPIO Key Power"; linux,input-type = <1>; wakeup-source; debounce-interval = <100>; }; - button@1 { + volume-down { gpios = <&gpio4 21 GPIO_ACTIVE_LOW>; /* GPIO4_C5 */ - linux,code = <104>; + linux,code = <KEY_VOLUMEDOWN>; label = "GPIO Key Vol-"; linux,input-type = <1>; debounce-interval = <100>; |