Lines Matching +full:gpio +full:- +full:keymap
1 // SPDX-License-Identifier: GPL-2.0-only
22 #include <linux/gpio.h>
24 #include <linux/w1-gpio.h>
26 #include <asm/mach-types.h>
31 #include "pxa27x-udc.h"
34 #include <linux/platform_data/mmc-pxamci.h>
35 #include <linux/platform_data/video-pxafb.h>
36 #include <linux/platform_data/irda-pxaficp.h>
37 #include <linux/platform_data/keypad-pxa27x.h>
39 #include <linux/platform_data/usb-ohci-pxa27x.h>
40 #include <mach/pxa2xx-regs.h>
41 #include <linux/platform_data/asoc-palm27x.h>
42 #include <linux/platform_data/media/camera-pxa.h>
45 #include <sound/pxa2xx-lib.h>
133 /* MATRIX KEYPAD - different wake up source */
137 /* LCD... L_BIAS alt fn not configured on Treo680; is GPIO instead */
154 /* MATRIX KEYPAD - different wake up source */
164 * GPIO keyboard
286 .keymap = treo680_matrix_keys,
291 .keymap = centro_matrix_keys,
310 data->matrix_keymap_data = ¢ro_matrix_keymap_data; in palmtreo_kpc_init()
344 .gpio = GPIO_NR_TREO680_VIBRATE_EN,
349 .gpio = GPIO_NR_TREO_GREEN_LED,
354 .gpio = GPIO_NR_TREO680_KEYB_BL,
367 .gpio = GPIO_NR_CENTRO_VIBRATE_EN,
372 .gpio = GPIO_NR_TREO_GREEN_LED,
378 .gpio = GPIO_NR_CENTRO_KEYB_BL,
388 .name = "leds-gpio",
389 .id = -1,
421 palm27x_ac97_init(-1, -1, -1, 95); in palmphone_common_init()
422 palm27x_pwm_init(GPIO_NR_TREO_BL_POWER, -1); in palmphone_common_init()
423 palm27x_power_init(GPIO_NR_TREO_POWER_DETECT, -1); in palmphone_common_init()
433 unsigned int gpio; in treo680_gpio_init() local
439 * LCD GPIO initialization... in treo680_gpio_init()
446 * gpio line is used by the lcd controller as the L_BIAS signal, but in treo680_gpio_init()
447 * treo680 configures it as gpio. in treo680_gpio_init()
449 gpio = GPIO_NR_TREO680_LCD_POWER; in treo680_gpio_init()
450 if (gpio_request_one(gpio, lcd_flags, "LCD power") < 0) in treo680_gpio_init()
461 gpio = GPIO_NR_TREO680_LCD_EN; in treo680_gpio_init()
462 if (gpio_request_one(gpio, lcd_flags, "LCD enable") < 0) in treo680_gpio_init()
464 gpio = GPIO_NR_TREO680_LCD_EN_N; in treo680_gpio_init()
465 if (gpio_request_one(gpio, lcd_flags, "LCD enable_n") < 0) in treo680_gpio_init()
473 pr_err("gpio %d initialization failed\n", gpio); in treo680_gpio_init()
480 .dev_id = "pxa2xx-mci.0",
482 GPIO_LOOKUP("gpio-pxa", GPIO_NR_TREO_SD_DETECT_N,
484 GPIO_LOOKUP("gpio-pxa", GPIO_NR_TREO680_SD_READONLY,
486 GPIO_LOOKUP("gpio-pxa", GPIO_NR_TREO680_SD_POWER,
504 .dev_id = "pxa2xx-mci.0",
506 GPIO_LOOKUP("gpio-pxa", GPIO_NR_TREO_SD_DETECT_N,
508 GPIO_LOOKUP("gpio-pxa", GPIO_NR_CENTRO_SD_POWER,