ARM: dts: Nokia N9: add support for up/down keys in the dts
authorPavel Machek <pavel@ucw.cz>
Tue, 2 Jan 2018 12:59:48 +0000 (13:59 +0100)
committerTony Lindgren <tony@atomide.com>
Fri, 19 Jan 2018 15:40:13 +0000 (07:40 -0800)
This adds support for volume up/down keys in the dts.

Signed-off-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3-n9.dts

index 39e35f8b8206aeca9f23286b305f8cc7c92563f9..e44d93fc644cc3f7d09cd36882e6ef010581ca1c 100644 (file)
@@ -11,6 +11,7 @@
 /dts-v1/;
 
 #include "omap3-n950-n9.dtsi"
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Nokia N9";
@@ -72,3 +73,9 @@
        st,max-limit-y = <46>;
        st,max-limit-z = <46>;
 };
+
+&twl_keypad {
+       linux,keymap = < MATRIX_KEY(6, 8, KEY_VOLUMEUP)
+                        MATRIX_KEY(7, 8, KEY_VOLUMEDOWN)
+                        >;
+};