Lines Matching +full:ac +full:- +full:detect +full:- +full:gpios
1 // SPDX-License-Identifier: GPL-2.0-only
4 * i-mate JAM, O2 Xda mini, Orange SPV M500, Qtek s100, Qtek s110
5 * and T-Mobile MDA Compact.
7 * Copyright (c) 2006-2007 Philipp Zabel
20 #include <linux/mfd/htc-pasic3.h>
23 #include <linux/platform_data/gpio-htc-egpio.h>
28 #include <linux/regulator/gpio-regulator.h>
30 #include <linux/platform_data/i2c-pxa.h>
33 #include <asm/mach-types.h>
39 #include <linux/platform_data/video-pxafb.h>
40 #include <linux/platform_data/mmc-pxamci.h>
41 #include <linux/platform_data/irda-pxaficp.h>
42 #include <linux/platform_data/usb-ohci-pxa27x.h>
49 #include "pxa27x-udc.h"
72 /* PWM 0 - LCD backlight */
117 /* Magician specific input GPIOs */
173 .name = "gpio-keys",
177 .id = -1,
183 * 32-bit aligned 8-bit registers
191 .end = PXA_CS3_PHYS + 0x20 - 1,
231 .name = "htc-egpio",
232 .id = -1,
241 * PXAFB LCD - Toppoly TD028STEB1 or Samsung LTP280QV
313 mdelay(6); /* Avdd -> Voff >5ms */ in samsung_lcd_power()
315 mdelay(16); /* Voff -> Von >(5+10)ms */ in samsung_lcd_power()
353 PWM_LOOKUP("pxa27x-pwm.0", 0, "pwm-backlight", NULL, 30923,
382 return brightness - 72; in magician_backlight_notify()
398 * 100-400 Hz = 2 .5*10^6 - 10 *10^6 ns
410 .name = "pwm-backlight",
411 .id = -1,
441 .name = "leds-gpio",
442 .id = -1,
472 .id = -1,
508 .dev_id = "gpio-vbus",
515 GPIO_LOOKUP("htc-egpio-1", 1,
517 GPIO_LOOKUP("gpio-pxa", GPIO27_MAGICIAN_USBC_PUEN,
524 .name = "gpio-vbus",
525 .id = -1,
536 int ret = -1; in magician_supply_init()
538 ret = gpio_request(EGPIO_MAGICIAN_CABLE_TYPE, "Cable is AC charger"); in magician_supply_init()
540 pr_err("Cannot request AC/USB charger GPIO (%i)\n", ret); in magician_supply_init()
561 pr_debug("Charging from AC\n"); in magician_set_charge()
575 gpio_get_value(EGPIO_MAGICIAN_CABLE_TYPE); /* AC=1 */ in magician_is_ac_online()
591 "ds2760-battery.0", "backup-battery"
606 .name = "ac",
622 .name = "pda-power",
623 .id = -1,
654 { .value = 100000, .gpios = (0 << 0) },
655 { .value = 500000, .gpios = (1 << 0) },
674 .name = "gpio-regulator",
675 .id = -1,
682 .dev_id = "gpio-regulator",
684 GPIO_LOOKUP("gpio-pxa", EGPIO_MAGICIAN_BQ24022_ISET2,
686 GPIO_LOOKUP("gpio-pxa", GPIO30_MAGICIAN_BQ24022_nCHARGE_EN,
715 .name = "reg-fixed-voltage",
716 .id = -1,
776 "mmc card detect", data); in magician_mci_init()
804 .dev_id = "pxa2xx-mci.0",
806 GPIO_LOOKUP("htc-egpio-1", EGPIO_MAGICIAN_nSD_READONLY_OFFSET,
808 GPIO_LOOKUP("htc-egpio-0", EGPIO_MAGICIAN_nSD_POWER_OFFSET,
860 .end = PXA_CS0_PHYS + SZ_64M - 1,
879 * physmap-flash driver
892 .name = "physmap-flash",
893 .id = -1,
997 pr_err("magician: Failed to request global GPIOs: %d\n", err); in magician_init()