diff options
author | Heiko Stuebner <heiko@sntech.de> | 2016-03-31 14:24:29 -0400 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2016-04-06 19:13:10 -0400 |
commit | 8b30c899c7dd9eb92b957a3c112d3226a9ac1c3c (patch) | |
tree | c250fe4a48987be5614c0b13cb31963d58ff4116 /arch/arm/boot/dts/rk3288-r89.dts | |
parent | a8f0fa2764626d2dd808cfbe1a160f2939a36c88 (diff) |
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/rk3288-r89.dts')
-rw-r--r-- | arch/arm/boot/dts/rk3288-r89.dts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/rk3288-r89.dts b/arch/arm/boot/dts/rk3288-r89.dts index 510a1d0d7abb..4b8a8adb243c 100644 --- a/arch/arm/boot/dts/rk3288-r89.dts +++ b/arch/arm/boot/dts/rk3288-r89.dts | |||
@@ -41,6 +41,7 @@ | |||
41 | */ | 41 | */ |
42 | 42 | ||
43 | /dts-v1/; | 43 | /dts-v1/; |
44 | #include <dt-bindings/input/input.h> | ||
44 | #include <dt-bindings/pwm/pwm.h> | 45 | #include <dt-bindings/pwm/pwm.h> |
45 | #include "rk3288.dtsi" | 46 | #include "rk3288.dtsi" |
46 | 47 | ||
@@ -61,16 +62,14 @@ | |||
61 | 62 | ||
62 | gpio-keys { | 63 | gpio-keys { |
63 | compatible = "gpio-keys"; | 64 | compatible = "gpio-keys"; |
64 | #address-cells = <1>; | ||
65 | #size-cells = <0>; | ||
66 | autorepeat; | 65 | autorepeat; |
67 | 66 | ||
68 | pinctrl-names = "default"; | 67 | pinctrl-names = "default"; |
69 | pinctrl-0 = <&pwrbtn>; | 68 | pinctrl-0 = <&pwrbtn>; |
70 | 69 | ||
71 | button@0 { | 70 | power { |
72 | gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; | 71 | gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; |
73 | linux,code = <116>; | 72 | linux,code = <KEY_POWER>; |
74 | label = "GPIO Key Power"; | 73 | label = "GPIO Key Power"; |
75 | linux,input-type = <1>; | 74 | linux,input-type = <1>; |
76 | wakeup-source; | 75 | wakeup-source; |