Lines Matching +full:ac +full:- +full:detect +full:- +full:gpios
1 // SPDX-License-Identifier: GPL-2.0-or-later
31 #include <linux/platform_data/i2c-pxa.h>
33 #include <asm/mach-types.h>
37 #include "regs-rtc.h"
38 #include <linux/platform_data/keypad-pxa27x.h>
39 #include <linux/platform_data/video-pxafb.h>
40 #include <linux/platform_data/mmc-pxamci.h>
42 #include "pxa27x-udc.h"
43 #include <linux/platform_data/media/camera-pxa.h>
171 PWM_LOOKUP("pxa27x-pwm.0", 0, "pwm-backlight", NULL, 4000 * 1024,
185 * - the LTM0305A776C datasheet,
186 * - and the PXA27x Programmers' manual
249 MIO_KEY(KEY_HP, GPIO12_HPJACK_INSERT, "HP jack detect", 0)
279 * - init : GPIO24_GSM_MOD_RESET_CMD = 0, GPIO114_GSM_nMOD_DTE_UART_STATE = 1
281 * - reset : GPIO24_GSM_MOD_RESET_CMD = 1, msleep(100),
283 * - turn on : GPIO88_GSM_nMOD_ON_CMD = 0, msleep(1000),
285 * - turn off : GPIO90_GSM_nMOD_OFF_CMD = 0, msleep(1000),
342 * - turn on : GPIO83_BT_ON = 1
343 * - turn off : GPIO83_BT_ON = 0
350 * - init : GPIO23_GPS_UNKNOWN1 = 1, GPIO26_GPS_ON = 0, GPIO27_GPS_RESET = 0
352 * - turn on : GPIO27_GPS_RESET = 1, GPIO26_GPS_ON = 1
353 * - turn off : GPIO26_GPS_ON = 0, GPIO27_GPS_RESET = 0
370 .dev_id = "gpio-vbus",
372 GPIO_LOOKUP("gpio-pxa", GPIO13_nUSB_DETECT,
382 * The card detect interrupt isn't debounced so we delay it by 250ms
391 .dev_id = "pxa2xx-mci.0",
393 /* Card detect on GPIO 15 */
394 GPIO_LOOKUP("gpio-pxa", GPIO15_SDIO_INSERT,
397 GPIO_LOOKUP("gpio-pxa", GPIO78_SDIO_RO,
400 GPIO_LOOKUP("gpio-pxa", GPIO91_SDIO_EN,
409 .end = PXA_CS0_PHYS + SZ_8K - 1,
415 .id = -1,
428 * - disables interrupts
429 * - initialize SDRAM (self refresh RAM into active RAM)
430 * - initialize GPIOs (depends on value at 0xa020b020)
431 * - initialize coprossessors
432 * - if edge detect on PWR_SCL(GPIO3), then proceed to cold start
433 * - or if value at 0xa020b000 not equal to 0x0f0f0f0f, proceed to cold start
434 * - else do a resume, ie. jump to addr 0xa0100000
510 return -ENOMEM; in bootstrap_init()
552 .name = "ac",
568 .name = "pda-power",
569 .id = -1,
579 .temp_aux = -1,
580 .charge_gpio = -1,
665 .id = -1, \
674 MIO_SIMPLE_DEV(mioa701_gpio_keys, "gpio-keys", &mioa701_gpio_keys_data)
675 MIO_PARENT_DEV(mioa701_backlight, "pwm-backlight", &pxa27x_device_pwm0.dev,
677 MIO_SIMPLE_DEV(mioa701_led, "leds-gpio", &gpio_led_info)
678 MIO_SIMPLE_DEV(pxa2xx_pcm, "pxa2xx-pcm", NULL)
679 MIO_SIMPLE_DEV(mioa701_sound, "mioa701-wm9713", NULL)
680 MIO_SIMPLE_DEV(mioa701_board, "mioa701-board", NULL)
681 MIO_SIMPLE_DEV(gpio_vbus, "gpio-vbus", NULL);
717 REGULATOR_SUPPLY("power", "pwm-backlight"),
726 RTTR = 32768 - 1; /* Reset crazy WinCE value */ in mioa701_machine_init()
744 pr_err("MioA701: Failed to request GPIOs: %d", rc); in mioa701_machine_init()
764 regulator_register_always_on(0, "fixed-5.0V", fixed_5v0_consumers, in mioa701_machine_init()