summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/rk3288-firefly.dtsi
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2016-03-31 18:24:29 (GMT)
committerHeiko Stuebner <heiko@sntech.de>2016-04-06 23:13:10 (GMT)
commit8b30c899c7dd9eb92b957a3c112d3226a9ac1c3c (patch)
treec250fe4a48987be5614c0b13cb31963d58ff4116 /arch/arm/boot/dts/rk3288-firefly.dtsi
parenta8f0fa2764626d2dd808cfbe1a160f2939a36c88 (diff)
downloadlinux-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/rk3288-firefly.dtsi')
-rw-r--r--arch/arm/boot/dts/rk3288-firefly.dtsi7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi b/arch/arm/boot/dts/rk3288-firefly.dtsi
index 5f06d8c..d6cf9ad 100644
--- a/arch/arm/boot/dts/rk3288-firefly.dtsi
+++ b/arch/arm/boot/dts/rk3288-firefly.dtsi
@@ -40,6 +40,7 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
+#include <dt-bindings/input/input.h>
#include "rk3288.dtsi"
/ {
@@ -87,14 +88,12 @@
keys: gpio-keys {
compatible = "gpio-keys";
- #address-cells = <1>;
- #size-cells = <0>;
- button@0 {
+ power {
wakeup-source;
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
label = "GPIO Power";
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
pinctrl-names = "default";
pinctrl-0 = <&pwr_key>;
};