Lines Matching +full:key +full:- +full:2
1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-omap1/board-ams-delta.c
5 * Modified from board-generic.c
19 #include <linux/mtd/nand-gpio.h>
29 #include <linux/platform_data/gpio-omap.h>
30 #include <linux/soc/ti/omap1-mux.h>
33 #include <asm/mach-types.h>
37 #include <linux/platform_data/keypad-omap.h>
41 #include "ams-delta-fiq.h"
42 #include "board-ams-delta.h"
47 KEY(0, 0, KEY_F1), /* Advert */
49 KEY(0, 3, KEY_COFFEE), /* Games */
50 KEY(0, 2, KEY_QUESTION), /* Directory */
51 KEY(2, 3, KEY_CONNECT), /* Internet */
52 KEY(1, 2, KEY_SHOP), /* Services */
53 KEY(1, 1, KEY_PHONE), /* VoiceMail */
55 KEY(0, 1, KEY_DELETE), /* Delete */
56 KEY(2, 2, KEY_PLAY), /* Play */
57 KEY(1, 0, KEY_PAGEUP), /* Up */
58 KEY(1, 3, KEY_PAGEDOWN), /* Down */
59 KEY(2, 0, KEY_EMAIL), /* ReadEmail */
60 KEY(2, 1, KEY_STOP), /* Stop */
63 KEY(0, 7, KEY_KP1),
64 KEY(0, 6, KEY_KP2),
65 KEY(0, 5, KEY_KP3),
66 KEY(1, 7, KEY_KP4),
67 KEY(1, 6, KEY_KP5),
68 KEY(1, 5, KEY_KP6),
69 KEY(2, 7, KEY_KP7),
70 KEY(2, 6, KEY_KP8),
71 KEY(2, 5, KEY_KP9),
72 KEY(3, 6, KEY_KP0),
73 KEY(3, 7, KEY_KPASTERISK),
74 KEY(3, 5, KEY_KPDOT), /* # key */
75 KEY(7, 2, KEY_NUMLOCK), /* Mute */
76 KEY(7, 1, KEY_KPMINUS), /* Recall */
77 KEY(6, 1, KEY_KPPLUS), /* Redial */
78 KEY(7, 6, KEY_KPSLASH), /* Handsfree */
79 KEY(6, 0, KEY_ENTER), /* Video */
81 KEY(7, 4, KEY_CAMERA), /* Photo */
83 KEY(0, 4, KEY_F2), /* Home */
84 KEY(1, 4, KEY_F3), /* Office */
85 KEY(2, 4, KEY_F4), /* Mobile */
86 KEY(7, 7, KEY_F5), /* SMS */
87 KEY(7, 5, KEY_F6), /* Email */
90 KEY(3, 4, KEY_Q),
91 KEY(3, 3, KEY_W),
92 KEY(3, 2, KEY_E),
93 KEY(3, 1, KEY_R),
94 KEY(3, 0, KEY_T),
95 KEY(4, 7, KEY_Y),
96 KEY(4, 6, KEY_U),
97 KEY(4, 5, KEY_I),
98 KEY(4, 4, KEY_O),
99 KEY(4, 3, KEY_P),
101 KEY(4, 2, KEY_A),
102 KEY(4, 1, KEY_S),
103 KEY(4, 0, KEY_D),
104 KEY(5, 7, KEY_F),
105 KEY(5, 6, KEY_G),
106 KEY(5, 5, KEY_H),
107 KEY(5, 4, KEY_J),
108 KEY(5, 3, KEY_K),
109 KEY(5, 2, KEY_L),
111 KEY(5, 1, KEY_Z),
112 KEY(5, 0, KEY_X),
113 KEY(6, 7, KEY_C),
114 KEY(6, 6, KEY_V),
115 KEY(6, 5, KEY_B),
116 KEY(6, 4, KEY_N),
117 KEY(6, 3, KEY_M),
118 KEY(6, 2, KEY_SPACE),
120 KEY(7, 0, KEY_LEFTSHIFT), /* Vol up */
121 KEY(7, 3, KEY_LEFTCTRL), /* Vol down */
162 .pins[0] = 2,
171 .end = LATCH1_PHYS + (LATCH1_NGPIO - 1) / 8,
180 .base = -1,
185 .name = "basic-mmio-gpio",
196 #define LATCH1_PIN_LED_MAIL 2
209 .end = LATCH2_PHYS + (LATCH2_NGPIO - 1) / 8,
218 .base = -1,
223 .name = "basic-mmio-gpio",
234 #define LATCH2_PIN_NAND_NCE 2
251 REGULATOR_SUPPLY("POR", "cx20442-codec"),
272 .name = "reg-fixed-voltage",
273 .id = -1,
280 .dev_id = "reg-fixed-voltage",
302 { .name = "u-boot",
305 { .name = "u-boot params",
315 .offset = 32 * SZ_1M - 3 * SZ_256K,
325 .name = "ams-delta-nand",
326 .id = -1,
332 #define OMAP_GPIO_LABEL "gpio-0-15"
351 GPIO_LOOKUP_IDX(OMAP_MPUIO_LABEL, 2, "data", 2, 0),
382 .name = "omap-keypad",
383 .id = -1,
393 .id = -1,
455 .name = "ams-delta-audio",
456 .id = -1,
474 .name = "cx20442-codec",
475 .id = -1,
486 .start = -EINVAL,
487 .end = -EINVAL,
492 .name = "ams-delta-serio",
529 .name = "reg-fixed-voltage",
608 * with GPIO numbers. The same applies to GPIO based IRQ lines - some in omap_gpio_deps_init()
635 * Initialize latch2 pins with values which are safe for dependent on-board
638 * - LATCH2_PIN_LCD_VBLEN = 0
639 * - LATCH2_PIN_LCD_NDISP = 0 Keep LCD device powered off before its
641 * - LATCH2_PIN_NAND_NCE = 0
642 * - LATCH2_PIN_NAND_NWP = 0 Keep NAND device down and write-
645 * - LATCH2_PIN_KEYBRD_PWR = 0 Keep keyboard powered off before serio
647 * - LATCH2_PIN_KEYBRD_DATAOUT = 0 Keep low to avoid corruption of first
652 * - LATCH2_PIN_MODEM_NRESET = 1 Enable voice MODEM device, allowing for
656 * - LATCH2_PIN_MODEM_CODEC = 1 Attach voice MODEM CODEC data port
732 leds_gpio_table.dev_id = dev_name(&leds_pdev->dev); in ams_delta_init()
743 struct modem_private_data *priv = port->private_data; in modem_pm()
749 if (IS_ERR(priv->regulator)) in modem_pm()
756 ret = regulator_enable(priv->regulator); in modem_pm()
758 ret = regulator_disable(priv->regulator); in modem_pm()
763 dev_warn(port->dev, in modem_pm()
788 return -EPROBE_DEFER; in ams_delta_modem_pm_activate()
810 * - with a descriptor of already functional modem_nreset regulator
812 * - with the regulator not yet controlled by modem_pm function but
814 * - before the modem_nreset regulator is probed, with the pin already
826 return -ENODEV; in ams_delta_modem_init()
831 modem_priv.regulator = ERR_PTR(-ENODEV); in ams_delta_modem_init()