]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ARM: dts: OMAP3-N950: Add Keypad Slide Switch
authorSebastian Reichel <sre@kernel.org>
Sun, 13 Mar 2016 00:06:18 +0000 (01:06 +0100)
committerTony Lindgren <tony@atomide.com>
Tue, 12 Apr 2016 21:32:02 +0000 (14:32 -0700)
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3-n950.dts

index b6cea8c2d78f5472e062fd2c651660b4ee9109b3..67041305a0f10e2f5cb5fb59e7a7c1a0a64ccb26 100644 (file)
 / {
        model = "Nokia N950";
        compatible = "nokia,omap3-n950", "ti,omap36xx", "ti,omap3";
+
+       keys {
+               compatible = "gpio-keys";
+
+               keypad_slide {
+                       label = "Keypad Slide";
+                       gpios = <&gpio4 13 GPIO_ACTIVE_LOW>; /* 109 */
+                       linux,input-type = <EV_SW>;
+                       linux,code = <SW_KEYPAD_SLIDE>;
+                       wakeup-source;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&keypad_slide_pins>;
+               };
+       };
+};
+
+&omap3_pmx_core {
+       keypad_slide_pins: pinmux_debug_led_pins {
+               pinctrl-single,pins = <
+                       OMAP3_CORE1_IOPAD(0x212a, PIN_INPUT | MUX_MODE4)       /* cam_d10.gpio_109 */
+               >;
+       };
 };
 
 &omap3_pmx_core {