Lines Matching +full:gpio +full:- +full:joystick +full:- +full:pins
1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-omap1/board-sx1.c
5 * Modified from board-generic.c
9 * Original version : Vladimir Ananiev (Vovan888-at-gmail com)
14 #include <linux/gpio/machine.h>
15 #include <linux/gpio/consumer.h>
29 #include <linux/platform_data/keypad-omap.h>
30 #include <linux/omap-dma.h>
33 #include <asm/mach-types.h>
39 #include "board-sx1.h"
54 return -ENODEV; in sx1_i2c_write_byte()
55 msg->addr = devaddr; /* I2C address of chip */ in sx1_i2c_write_byte()
56 msg->flags = 0; in sx1_i2c_write_byte()
57 msg->len = 2; in sx1_i2c_write_byte()
58 msg->buf = data; in sx1_i2c_write_byte()
78 return -ENODEV; in sx1_i2c_read_byte()
80 msg->addr = devaddr; /* I2C address of chip */ in sx1_i2c_read_byte()
81 msg->flags = 0; in sx1_i2c_read_byte()
82 msg->len = 1; in sx1_i2c_read_byte()
83 msg->buf = data; in sx1_i2c_read_byte()
87 msg->addr = devaddr; /* I2C address */ in sx1_i2c_read_byte()
88 msg->flags = I2C_M_RD; in sx1_i2c_read_byte()
89 msg->len = 1; in sx1_i2c_read_byte()
90 msg->buf = data; in sx1_i2c_read_byte()
162 /*----------- Keypad -------------------------*/
174 KEY(3, 3, GROUP_1 | KEY_POWER), /* joystick press or Qt::Key_Select */
216 .name = "omap-keypad",
217 .id = -1,
225 /*----------- MTD -------------------------*/
228 /* bootloader (U-Boot, etc) in first sector */
233 .mask_flags = MTD_WRITEABLE, /* force read-only */
246 .size = SZ_2M - 2 * SZ_128K,
265 /* MTD Intel 4000 flash - new flashes */
268 .end = OMAP_CS0_PHYS + SZ_32M - 1,
273 .name = "physmap-flash",
282 /*----------- USB -------------------------*/
289 .pins[0] = 2,
290 .pins[1] = 0,
291 .pins[2] = 0,
294 /*----------- LCD -------------------------*/
300 /*-----------------------------------------*/
306 /*-----------------------------------------*/
311 GPIO_LOOKUP("gpio-0-15", 1, "irda_off",
313 GPIO_LOOKUP("gpio-0-15", 11, "switch",
315 GPIO_LOOKUP("gpio-0-15", 15, "usb_on",
325 /* mux pins for uarts */ in omap_sx1_init()
345 pr_err("Unable to get IRDA OFF GPIO descriptor\n"); in omap_sx1_init()
350 pr_err("Unable to get SWITCH GPIO descriptor\n"); in omap_sx1_init()
355 pr_err("Unable to get USB ON GPIO descriptor\n"); in omap_sx1_init()