diff options
author | Heiko Stuebner <heiko@sntech.de> | 2016-03-31 20:24:29 +0200 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2016-04-07 01:13:10 +0200 |
commit | 8b30c899c7dd9eb92b957a3c112d3226a9ac1c3c (patch) | |
tree | c250fe4a48987be5614c0b13cb31963d58ff4116 /arch/arm/boot/dts/rk3188-radxarock.dts | |
parent | ARM: dts: rockchip: fix missing usbphy unit-names (diff) | |
download | linux-8b30c899c7dd9eb92b957a3c112d3226a9ac1c3c.tar.xz linux-8b30c899c7dd9eb92b957a3c112d3226a9ac1c3c.zip |
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/rk3188-radxarock.dts')
-rw-r--r-- | arch/arm/boot/dts/rk3188-radxarock.dts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/rk3188-radxarock.dts b/arch/arm/boot/dts/rk3188-radxarock.dts index 0b6924c97b6b..1da46d138029 100644 --- a/arch/arm/boot/dts/rk3188-radxarock.dts +++ b/arch/arm/boot/dts/rk3188-radxarock.dts @@ -41,6 +41,7 @@ */ /dts-v1/; +#include <dt-bindings/input/input.h> #include "rk3188.dtsi" / { @@ -54,13 +55,11 @@ gpio-keys { compatible = "gpio-keys"; - #address-cells = <1>; - #size-cells = <0>; autorepeat; - button@0 { + power { gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; - linux,code = <116>; + linux,code = <KEY_POWER>; label = "GPIO Key Power"; linux,input-type = <1>; wakeup-source; |