Lines Matching +full:pendown +full:- +full:gpio +full:- +full:debounce
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Support for Sharp SL-Cxx00 Series of PDAs
4 * Models: SL-C3000 (Spitz), SL-C1000 (Akita) and SL-C3100 (Borzoi)
15 #include <linux/gpio.h>
16 #include <linux/gpio/machine.h>
17 #include <linux/gpio/property.h>
20 #include <linux/platform_data/i2c-pxa.h>
28 #include <linux/input-event-codes.h>
37 #include <asm/mach-types.h>
43 #include "pxa27x-udc.h"
45 #include <linux/platform_data/mmc-pxamci.h>
46 #include <linux/platform_data/usb-ohci-pxa27x.h>
47 #include <linux/platform_data/video-pxafb.h>
64 /* LCD - 16bpp Active TFT */
105 /* GPIO matrix keypad */
134 .name = "sharp-scoop.0",
139 .name = "sharp-scoop.1",
144 .name = "i2c-max7310",
148 * Scoop GPIO expander
169 .name = "sharp-scoop",
196 .name = "sharp-scoop",
272 .cd_irq = -1,
295 * GPIO keyboard
407 PROPERTY_ENTRY_REF_ARRAY("row-gpios", spitz_mkp_row_gpios),
408 PROPERTY_ENTRY_REF_ARRAY("col-gpios", spitz_mkp_col_gpios),
409 PROPERTY_ENTRY_U32("col-scan-delay-us", 10),
410 PROPERTY_ENTRY_U32("debounce-delay-ms", 10),
411 PROPERTY_ENTRY_BOOL("wakeup-source"),
416 .name = "matrix-keypad",
437 * GPIO keys
441 .name = "spitz-gpio-keys",
445 PROPERTY_ENTRY_U32("linux,input-type", EV_PWR),
450 PROPERTY_ENTRY_BOOL("wakeup-source"),
460 PROPERTY_ENTRY_U32("linux,input-type", EV_SW),
474 PROPERTY_ENTRY_U32("linux,input-type", EV_SW),
498 .name = "gpio-keys", in spitz_keys_init()
506 pr_err("failed to register gpio-keys software nodes: %d\n", err); in spitz_keys_init()
515 pr_err("failed to create gpio-keys device: %d\n", err); in spitz_keys_init()
526 .name = "spitz-leds",
530 PROPERTY_ENTRY_STRING("linux,default-trigger", "sharpsl-charge"),
543 PROPERTY_ENTRY_STRING("linux,default-trigger", "disk-activity"),
565 .name = "leds-gpio", in spitz_leds_init()
595 PROPERTY_ENTRY_U32("touchscreen-max-pressure", 1024),
596 PROPERTY_ENTRY_U16("ti,x-plate-ohms", 419),
597 PROPERTY_ENTRY_U16("ti,y-plate-ohms", 486),
598 PROPERTY_ENTRY_U16("ti,vref-delay-usecs", 100),
599 PROPERTY_ENTRY_GPIO("pendown-gpios", &pxa2xx_gpiochip_node,
601 PROPERTY_ENTRY_GPIO("ti,hsync-gpios", &pxa2xx_gpiochip_node,
612 PROPERTY_ENTRY_GPIO("BL_CONT-gpios",
614 PROPERTY_ENTRY_GPIO("BL_ON-gpios",
620 PROPERTY_ENTRY_GPIO("BL_ON-gpios",
622 PROPERTY_ENTRY_GPIO("BL_CONT-gpios",
628 .name = "spitz-lcdcon",
648 .modalias = "corgi-lcd",
677 .name = "pxa2xx-spi",
678 /* pxa2xx-spi platform-device ID equals respective SSP platform-device ID + 1 */
691 pr_err("pxa2xx-spi: failed to instantiate SPI controller: %d\n", in spitz_spi_init()
712 struct pxamci_platform_data* p_d = dev->platform_data; in spitz_mci_setpower()
714 if ((1 << vdd) & p_d->ocr_mask) in spitz_mci_setpower()
729 PROPERTY_ENTRY_GPIO("cd-gpios", &pxa2xx_gpiochip_node,
731 PROPERTY_ENTRY_GPIO("wp-gpios", &pxa2xx_gpiochip_node,
847 return -ERANGE; in akita_ooblayout_ecc()
851 oobregion->offset = 5; in akita_ooblayout_ecc()
852 oobregion->length = 1; in akita_ooblayout_ecc()
856 oobregion->offset = 1; in akita_ooblayout_ecc()
857 oobregion->length = 3; in akita_ooblayout_ecc()
861 oobregion->offset = 6; in akita_ooblayout_ecc()
862 oobregion->length = 2; in akita_ooblayout_ecc()
866 oobregion->offset += (section / 3) * 0x10; in akita_ooblayout_ecc()
875 return -ERANGE; in akita_ooblayout_free()
877 oobregion->offset = 8; in akita_ooblayout_free()
878 oobregion->length = 9; in akita_ooblayout_free()
903 .end = PXA_CS3_PHYS + SZ_4K - 1,
909 .name = "sharpsl-nand",
910 .id = -1,
952 .end = PXA_CS0_PHYS + SZ_8M - 1,
958 .name = "physmap-flash",
959 .id = -1,
1026 size--; in spitz_i2c_init()
1038 PROPERTY_ENTRY_GPIO("mute-l-gpios", &spitz_scoop_1_gpiochip_node, 3,
1040 PROPERTY_ENTRY_GPIO("mute-r-gpios", &spitz_scoop_1_gpiochip_node, 4,
1042 PROPERTY_ENTRY_GPIO("mic-gpios", &spitz_scoop_2_gpiochip_node, 8,
1048 PROPERTY_ENTRY_GPIO("mute-l-gpios", &spitz_scoop_1_gpiochip_node, 3,
1050 PROPERTY_ENTRY_GPIO("mute-r-gpios", &spitz_scoop_1_gpiochip_node, 4,
1052 PROPERTY_ENTRY_GPIO("mic-gpios", &akita_max7310_gpiochip_node, 2,
1063 .name = "spitz-audio", in spitz_audio_init()