Lines Matching +full:gpio +full:- +full:keymap
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Copyright 2009-2010 Analog Devices Inc.
28 #define GPIO_INT_STAT1 0x11 /* GPIO Interrupt Status */
29 #define GPIO_INT_STAT2 0x12 /* GPIO Interrupt Status */
30 #define GPIO_INT_STAT3 0x13 /* GPIO Interrupt Status */
31 #define GPIO_DAT_STAT1 0x14 /* GPIO Data Status, Read twice to clear */
32 #define GPIO_DAT_STAT2 0x15 /* GPIO Data Status, Read twice to clear */
33 #define GPIO_DAT_STAT3 0x16 /* GPIO Data Status, Read twice to clear */
34 #define GPIO_DAT_OUT1 0x17 /* GPIO DATA OUT */
35 #define GPIO_DAT_OUT2 0x18 /* GPIO DATA OUT */
36 #define GPIO_DAT_OUT3 0x19 /* GPIO DATA OUT */
37 #define GPIO_INT_EN1 0x1A /* GPIO Interrupt Enable */
38 #define GPIO_INT_EN2 0x1B /* GPIO Interrupt Enable */
39 #define GPIO_INT_EN3 0x1C /* GPIO Interrupt Enable */
40 #define KP_GPIO1 0x1D /* Keypad or GPIO Selection */
41 #define KP_GPIO2 0x1E /* Keypad or GPIO Selection */
42 #define KP_GPIO3 0x1F /* Keypad or GPIO Selection */
46 #define GPIO_DIR1 0x23 /* GPIO Data Direction */
47 #define GPIO_DIR2 0x24 /* GPIO Data Direction */
48 #define GPIO_DIR3 0x25 /* GPIO Data Direction */
49 #define GPIO_INT_LVL1 0x26 /* GPIO Edge/Level Detect */
50 #define GPIO_INT_LVL2 0x27 /* GPIO Edge/Level Detect */
51 #define GPIO_INT_LVL3 0x28 /* GPIO Edge/Level Detect */
55 #define GPIO_PULL1 0x2C /* GPIO Pull Disable */
56 #define GPIO_PULL2 0x2D /* GPIO Pull Disable */
57 #define GPIO_PULL3 0x2E /* GPIO Pull Disable */
134 #define ADP5588_GPIMAPSIZE_MAX (GPI_PIN_END - GPI_PIN_BASE + 1)
144 const unsigned short *keymap; /* Pointer to keymap */ member
145 unsigned short keymapsize; /* Keymap size */
158 int gpio_start; /* GPIO Chip base # */
161 unsigned pullup_dis_mask; /* Pull-Up Disable Mask */
163 unsigned gpio, unsigned ngpio,
166 unsigned gpio, unsigned ngpio,