diff options
author | Andreas Färber <afaerber@suse.de> | 2016-03-16 16:58:43 +0300 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2016-03-29 22:37:12 +0300 |
commit | 479d75b7603c3db0cbaafb4368e3c3ba0da80864 (patch) | |
tree | 84a0252032dbfb999b2afc06fb540736fb662907 /arch/arm64/boot/dts/rockchip/rk3368-r88.dts | |
parent | 33e84ad03294b17d85a592ed4c5e80618bd197d3 (diff) | |
download | linux-479d75b7603c3db0cbaafb4368e3c3ba0da80864.tar.xz |
arm64: dts: rockchip: Clean up gpio-keys nodes
Drop superfluous #address-cells and #size-cells.
Use KEY_POWER define for 116.
Rename sub-nodes to avoid new dtc warnings.
Reported-by: Julien Chauveau <chauveau.julien@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Julien Chauveau <chauveau.julien@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm64/boot/dts/rockchip/rk3368-r88.dts')
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3368-r88.dts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3368-r88.dts b/arch/arm64/boot/dts/rockchip/rk3368-r88.dts index a1d1aa9c16fe..b56b7205e39b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368-r88.dts +++ b/arch/arm64/boot/dts/rockchip/rk3368-r88.dts @@ -42,6 +42,7 @@ /dts-v1/; #include "rk3368.dtsi" +#include <dt-bindings/input/input.h> / { model = "Rockchip R88"; @@ -65,16 +66,14 @@ keys: gpio-keys { compatible = "gpio-keys"; - #address-cells = <1>; - #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&pwr_key>; - button@0 { + power { wakeup-source; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; label = "GPIO Power"; - linux,code = <116>; + linux,code = <KEY_POWER>; }; }; |