Lines Matching +full:battery +full:- +full:detect +full:- +full:gpios

1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2008-2009 Philipp Zabel
8 * Copyright (c) 2004 Hewlett-Packard Company.
27 #include <linux/platform_data/gpio-htc-egpio.h>
31 #include <linux/regulator/gpio-regulator.h>
37 #include <linux/platform_data/i2c-pxa.h>
39 #include <asm/mach-types.h>
43 #include "addr-map.h"
45 #include <linux/platform_data/irda-pxaficp.h>
88 /* FFUART (RS-232) */
134 /* HX4700 specific input GPIOs */
139 /* HX4700 specific output GPIOs */
192 .name = "gpio-keys",
196 .id = -1,
210 .id = -1,
257 /* GPIOC - CF, LEDs, SD */
273 /* GPIOD: input GPIOs, CF */
283 .default_trigger = "ds2760-battery.0-charging-blink-full-solid",
291 .default_trigger = "hx4700-radio",
315 .id = -1,
348 .name = "htc-egpio",
349 .id = -1,
358 * LCD - Sony display connected to ATI Imageon w3220
523 .id = -1,
544 .name = "platform-lcd",
545 .id = -1,
562 .name = "pwm-backlight",
563 .id = -1,
571 PWM_LOOKUP("pxa27x-pwm.1", 0, "pwm-backlight", NULL,
580 .dev_id = "gpio-vbus",
585 GPIOD14_nUSBC_DETECT - HX4700_ASIC3_GPIO_BASE,
588 GPIO_LOOKUP("gpio-pxa", GPIO76_HX4700_USBC_PUEN,
595 .name = "gpio-vbus",
596 .id = -1,
602 * Touchscreen - TSC2046 connected to SSP2
640 GPIO_LOOKUP_IDX("gpio-pxa", GPIO88_HX4700_TSC2046_CS, "cs", 0, GPIO_ACTIVE_LOW),
651 return gpio_request(GPIOD9_nAC_IN, "AC charger detect"); in power_supply_init()
665 "ds2760-battery.0", "backup-battery"
686 .name = "pda-power",
687 .id = -1,
696 * Battery charger
716 { .value = 100000, .gpios = (0 << 0) },
717 { .value = 500000, .gpios = (1 << 0) },
736 .name = "gpio-regulator",
737 .id = -1,
744 .dev_id = "gpio-regulator",
746 GPIO_LOOKUP("gpio-pxa", GPIO96_HX4700_BQ24022_ISET2,
748 GPIO_LOOKUP("gpio-pxa", GPIO72_HX4700_BQ24022_nCHARGE_EN,
774 .name = "physmap-flash",
775 .id = -1,
838 .dev_id = "hx4700-audio",
840 GPIO_LOOKUP("gpio-pxa", GPIO75_HX4700_EARPHONE_nDET,
841 "earphone-det", GPIO_ACTIVE_LOW),
842 GPIO_LOOKUP("gpio-pxa", GPIO92_HX4700_HP_DRIVER,
843 "hp-driver", GPIO_ACTIVE_HIGH),
844 GPIO_LOOKUP("gpio-pxa", GPIO107_HX4700_SPK_nSD,
845 "spk-sd", GPIO_ACTIVE_LOW),
851 .name = "hx4700-audio",
852 .id = -1,
903 pr_err ("hx4700: Failed to request GPIOs.\n"); in hx4700_init()