Lines Matching +full:serial +full:- +full:dat +full:- +full:low
1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-omap1/board-ams-delta.c
5 * Modified from board-generic.c
20 #include <linux/mtd/nand-gpio.h>
30 #include <linux/platform_data/gpio-omap.h>
32 #include <asm/serial.h>
33 #include <asm/mach-types.h>
37 #include <linux/platform_data/keypad-omap.h>
43 #include "ams-delta-fiq.h"
44 #include "board-ams-delta.h"
171 .name = "dat",
173 .end = LATCH1_PHYS + (LATCH1_NGPIO - 1) / 8,
182 .base = -1,
187 .name = "basic-mmio-gpio",
209 .name = "dat",
211 .end = LATCH2_PHYS + (LATCH2_NGPIO - 1) / 8,
220 .base = -1,
225 .name = "basic-mmio-gpio",
253 REGULATOR_SUPPLY("POR", "cx20442-codec"),
274 .name = "reg-fixed-voltage",
275 .id = -1,
282 .dev_id = "reg-fixed-voltage",
304 { .name = "u-boot",
307 { .name = "u-boot params",
317 .offset = 32 * SZ_1M - 3 * SZ_256K,
327 .name = "ams-delta-nand",
328 .id = -1,
334 #define OMAP_GPIO_LABEL "gpio-0-15"
384 .name = "omap-keypad",
385 .id = -1,
395 .id = -1,
464 .name = "ams-delta-audio",
465 .id = -1,
483 .name = "cx20442-codec",
484 .id = -1,
495 .start = -EINVAL,
496 .end = -EINVAL,
501 .name = "ams-delta-serio",
538 .name = "reg-fixed-voltage",
574 * with GPIO numbers. The same applies to GPIO based IRQ lines - some
585 return !strcmp(label, chip->label); in gpiochip_match_by_label()
645 * Initialize latch2 pins with values which are safe for dependent on-board
648 * - LATCH2_PIN_LCD_VBLEN = 0
649 * - LATCH2_PIN_LCD_NDISP = 0 Keep LCD device powered off before its
651 * - LATCH2_PIN_NAND_NCE = 0
652 * - LATCH2_PIN_NAND_NWP = 0 Keep NAND device down and write-
655 * - LATCH2_PIN_KEYBRD_PWR = 0 Keep keyboard powered off before serio
657 * - LATCH2_PIN_KEYBRD_DATAOUT = 0 Keep low to avoid corruption of first
660 * the pin is also hogged low by the latch2
662 * - LATCH2_PIN_MODEM_NRESET = 1 Enable voice MODEM device, allowing for
666 * - LATCH2_PIN_MODEM_CODEC = 1 Attach voice MODEM CODEC data port
746 leds_gpio_table.dev_id = dev_name(&leds_pdev->dev); in ams_delta_init()
757 struct modem_private_data *priv = port->private_data; in modem_pm()
763 if (IS_ERR(priv->regulator)) in modem_pm()
770 ret = regulator_enable(priv->regulator); in modem_pm()
772 ret = regulator_disable(priv->regulator); in modem_pm()
777 dev_warn(port->dev, in modem_pm()
822 * - with a descriptor of already functional modem_nreset regulator
824 * - with the regulator not yet controlled by modem_pm function but
826 * - before the modem_nreset regulator is probed, with the pin already
831 * should be registered after OMAP serial ports. Since those ports
840 return -ENODEV; in ams_delta_modem_init()
845 modem_priv.regulator = ERR_PTR(-ENODEV); in ams_delta_modem_init()