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

1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-pxa/cm-x300.c
5 * Support for the CompuLab CM-X300 modules
26 #include <linux/platform_data/rtc-v3020.h>
32 #include <linux/platform_data/i2c-pxa.h>
37 #include <linux/apm-emulation.h>
43 #include <asm/mach-types.h>
49 #include "pxa27x-udc.h"
50 #include <linux/platform_data/video-pxafb.h>
51 #include <linux/platform_data/mmc-pxamci.h>
52 #include <linux/platform_data/usb-ohci-pxa27x.h>
53 #include <linux/platform_data/mtd-nand-pxa3xx.h>
55 #include <linux/platform_data/usb-pxa3xx-ulpi.h>
159 /* GPIOs */
164 /* RTC GPIOs */
179 /* GPIOs */
186 /* GPIOs */
308 PWM_LOOKUP("pxa27x-pwm.0", 1, "pwm-backlight.0", NULL, 10000,
318 .name = "pwm-backlight",
357 GPIO_LOOKUP("gpio-pxa", GPIO_LCD_SCL,
359 GPIO_LOOKUP("gpio-pxa", GPIO_LCD_DIN,
361 GPIO_LOOKUP("gpio-pxa", GPIO_LCD_DOUT,
363 GPIO_LOOKUP("gpio-pxa", GPIO_LCD_CS,
409 .mask_flags = MTD_WRITEABLE, /* force read-only */
412 .name = "U-Boot",
415 .mask_flags = MTD_WRITEABLE, /* force read-only */
426 .mask_flags = MTD_WRITEABLE, /* force read-only */
461 .dev_id = "pxa2xx-mci.0",
463 /* Card detect on GPIO 82 */
464 GPIO_LOOKUP("gpio-pxa", GPIO82_MMC_IRQ, "cd", GPIO_ACTIVE_LOW),
466 GPIO_LOOKUP("gpio-pxa", GPIO85_MMC_WP, "wp", GPIO_ACTIVE_LOW),
471 /* The second MMC slot of CM-X300 is hardwired to Libertas card and has
598 .name = "cm-x300:green",
610 .name = "leds-gpio",
611 .id = -1,
672 .id = -1,
686 /* Battery */
688 .name = "battery",
755 .name = "da903x-battery",
760 .name = "da903x-regulator",
806 pr_err("failed to request wifi/bt gpios: %d\n", err); in cm_x300_init_wi2wi()
821 /* board-processor specific GPIO initialization */ in cm_x300_init_mfp()
862 /* Make sure that mi->bank[0].start = PHYS_ADDR */ in cm_x300_fixup()
863 for (; tags->hdr.size; tags = tag_next(tags)) in cm_x300_fixup()
864 if (tags->hdr.tag == ATAG_MEM && in cm_x300_fixup()
865 tags->u.mem.start == 0x80000000) { in cm_x300_fixup()
866 tags->u.mem.start = 0xa0000000; in cm_x300_fixup()
871 MACHINE_START(CM_X300, "CM-X300 module")