| /linux/arch/arm/mach-omap1/ |
| H A D | board-ams-delta.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/arch/arm/mach-omap1/board-ams-delta.c 5 * Modified from board-generic.c 11 #include <linux/gpio/driver.h> 12 #include <linux/gpio/machine.h> 13 #include <linux/gpio/consumer.h> 19 #include <linux/mtd/nand-gpio.h> 30 #include <linux/platform_data/gpio-omap.h> 31 #include <linux/soc/ti/omap1-mux.h> 34 #include <asm/mach-types.h> [all …]
|
| H A D | board-sx1.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/arch/arm/mach-omap1/board-sx1.c 5 * Modified from board-generic.c 9 * Original version : Vladimir Ananiev (Vovan888-at-gmail com) 14 #include <linux/gpio/machine.h> 15 #include <linux/gpio/consumer.h> 29 #include <linux/platform_data/keypad-omap.h> 30 #include <linux/omap-dma.h> 33 #include <asm/mach-types.h> 39 #include "board-sx1.h" [all …]
|
| H A D | board-palmte.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/arch/arm/mach-omap1/board-palmte.c 5 * Modified from board-generic.c 12 * palmtelinux-developpers@lists.sf.net 16 #include <linux/gpio/machine.h> 17 #include <linux/gpio/consumer.h> 27 #include <linux/apm-emulation.h> 29 #include <linux/omap-dma.h> 30 #include <linux/platform_data/keypad-omap.h> 33 #include <asm/mach-types.h> [all …]
|
| /linux/Documentation/devicetree/bindings/input/ |
| H A D | gpio-keys.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/input/gpio-keys.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO attached keys 10 - Rob Herring <robh@kernel.org> 15 - gpio-keys 16 - gpio-keys-polled 23 poll-interval: true 26 …"^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switc… [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-macsmc.c | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 3 * Apple SMC GPIO driver 6 * This driver implements basic SMC PMU GPIO support that can read inputs 12 #include <linux/gpio/driver.h> 19 * Commands 0-6 are, presumably, the intended API. 79 static int macsmc_gpio_nr(smc_key key) in macsmc_gpio_nr() argument 81 int low = hex_to_bin(key & 0xff); in macsmc_gpio_nr() 82 int high = hex_to_bin((key >> 8) & 0xff); in macsmc_gpio_nr() 85 return -1; in macsmc_gpio_nr() 97 struct apple_smc *smc = smcgp->smc; in macsmc_gpio_find_first_gpio_index() [all …]
|
| /linux/Documentation/admin-guide/gpio/ |
| H A D | gpio-aggregator.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 3 GPIO Aggregator 6 The GPIO Aggregator provides a mechanism to aggregate GPIOs, and expose them as 11 ----------------------------- 13 GPIO controllers are exported to userspace using /dev/gpiochip* character 15 system permissions, on an all-or-nothing basis: either a GPIO controller is 18 The GPIO Aggregator provides access control for a set of one or more GPIOs, by 22 grab the full GPIO controller, and no longer needs to care about which GPIOs to 25 Aggregated GPIO controllers are instantiated and destroyed by writing to 26 write-only attribute files in sysfs. [all …]
|
| /linux/arch/arm64/boot/dts/renesas/ |
| H A D | rzg3s-smarc.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 * Device Tree Source for the RZ SMARC Carrier-II Board. 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/pinctrl/rzg2l-pinctrl.h> 23 stdout-path = "serial3:115200n8"; 27 compatible = "gpio-keys"; 29 key-1 { 30 interrupts-extended = <&pinctrl RZG2L_GPIO(18, 0) IRQ_TYPE_EDGE_FALLING>; 33 wakeup-source; [all …]
|
| /linux/arch/arm/boot/dts/samsung/ |
| H A D | exynos4412-itop-elite.dts | 1 // SPDX-License-Identifier: GPL-2.0 13 /dts-v1/; 14 #include <dt-bindings/leds/common.h> 15 #include <dt-bindings/pwm/pwm.h> 16 #include <dt-bindings/sound/samsung-i2s.h> 17 #include "exynos4412-itop-scp-core.dtsi" 21 compatible = "topeet,itop4412-elite", "samsung,exynos4412", "samsung,exynos4"; 29 stdout-path = "serial2:115200n8"; 33 compatible = "gpio-leds"; 39 default-state = "off"; [all …]
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | am3517-evm-ui.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2018 Logic PD, Inc - https://www.logicpd.com/ 6 #include <dt-bindings/input/input.h> 10 compatible = "simple-audio-card"; 11 simple-audio-card,name = "tlv320aic23-hifi"; 13 simple-audio-card,widgets = 18 simple-audio-card,routing = 25 simple-audio-card,format = "i2s"; 26 simple-audio-card,bitclock-master = <&sound_master>; 27 simple-audio-card,frame-master = <&sound_master>; [all …]
|
| /linux/drivers/input/keyboard/ |
| H A D | adp5588-keys.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * Copyright (C) 2008-2010 Analog Devices Inc. 14 #include <linux/gpio/consumer.h> 15 #include <linux/gpio/driver.h> 24 #include <linux/pinctrl/pinconf-generic.h> 34 #define KEY_LCK_EC_STAT 0x03 /* Key Lock and Event Counter Register */ 35 #define KEY_EVENTA 0x04 /* Key Event Register A */ 36 #define KEY_EVENTB 0x05 /* Key Event Register B */ 37 #define KEY_EVENTC 0x06 /* Key Event Register C */ 38 #define KEY_EVENTD 0x07 /* Key Event Register D */ [all …]
|
| /linux/arch/arm/boot/dts/nxp/lpc/ |
| H A D | lpc3250-ea3250.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 /dts-v1/; 20 gpio-keys { 21 compatible = "gpio-keys"; 25 label = "Interrupt Key"; 27 gpios = <&gpio 4 1 0>; /* GPI_P3 1 */ 55 label = "Joystick Key 0"; 57 gpios = <&gpio 2 0 0>; /* P2.0 */ 61 label = "Joystick Key 1"; 63 gpios = <&gpio 2 1 0>; /* P2.1 */ [all …]
|
| /linux/arch/arm64/boot/dts/exynos/ |
| H A D | exynosautov9-sadk.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 16 compatible = "samsung,exynosautov9-sadk", "samsung,exynosautov9"; 18 #address-cells = <2>; 19 #size-cells = <2>; 26 stdout-path = &serial_0; 36 gpio-keys { 37 compatible = "gpio-keys"; [all …]
|
| H A D | exynos7885-jackpotlte.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung Galaxy A8 2018 (jackpotlte/SM-A530F) device tree source 9 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/interrupt-controller/irq.h> 18 chassis-type = "handset"; 28 stdout-path = &serial_2; 38 gpio-keys { 39 compatible = "gpio-keys"; [all …]
|
| H A D | exynosautov920-sadk.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 11 #include "exynos-pinctrl.h" 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/input/input.h> 17 compatible = "samsung,exynosautov920-sadk", "samsung,exynosautov920"; 19 #address-cells = <2>; 20 #size-cells = <2>; 27 stdout-path = &serial_0; 30 gpio-keys { [all …]
|
| /linux/tools/testing/selftests/gpio/ |
| H A D | gpio-aggregator.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 CONFIGFS_SIM_DIR="/sys/kernel/config/gpio-sim" 8 CONFIGFS_AGG_DIR="/sys/kernel/config/gpio-aggregator" 9 SYSFS_AGG_DIR="/sys/bus/platform/drivers/gpio-aggregator" 10 MODULE="gpio-aggregator" 14 echo "GPIO $MODULE test FAIL" 20 echo "GPIO $MODULE test SKIP" 24 # gpio-sim 38 local NOCHECK=${1:-0} 41 [ -d "$CHIP_DIR" ] || continue [all …]
|
| /linux/include/linux/gpio/ |
| H A D | machine.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 22 * struct gpiod_lookup - lookup table 23 * @key: either the name of the chip the GPIO belongs to, or the GPIO line name 24 * Note that GPIO line names are not guaranteed to be globally unique, 26 * @chip_hwnum: hardware number (i.e. relative to the chip) of the GPIO, or 27 * U16_MAX to indicate that @key is a GPIO line name 28 * @con_id: name of the GPIO from the device's point of view 29 * @idx: index of the GPIO in case several GPIOs share the same name 36 const char *key; member 50 * struct gpiod_hog - GPIO line hog table [all …]
|
| /linux/arch/arm/boot/dts/nxp/imx/ |
| H A D | imx6ull-uti260b.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 // Copyright (C) 2022-2024 Sebastian Reichel <sre@kernel.org> 4 /dts-v1/; 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/clock/imx6ul-clock.h> 9 #include <dt-bindings/leds/common.h> 12 model = "UNI-T UTi260B Thermal Camera"; 13 compatible = "uni-t,uti260b", "fsl,imx6ull"; 16 stdout-path = "serial0:115200n8"; [all …]
|
| H A D | imx6q-var-dt6customboard.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Support for Variscite DART-MX6 Carrier-board 9 /dts-v1/; 12 #include "imx6qdl-var-dart.dtsi" 13 #include <dt-bindings/input/linux-event-codes.h> 16 model = "Variscite DART-MX6 Carrier-board"; 20 compatible = "pwm-backlight"; 22 brightness-levels = <0 4 8 16 32 64 128 248>; 23 default-brightness-level = <7>; 27 gpio-keys { [all …]
|
| /linux/arch/arm/boot/dts/allwinner/ |
| H A D | sun7i-a20-pcduino3.dts | 5 * This file is dual-licensed: you can use it either under the terms 44 /dts-v1/; 45 #include "sun7i-a20.dtsi" 46 #include "sunxi-common-regulators.dtsi" 48 #include <dt-bindings/gpio/gpio.h> 49 #include <dt-bindings/input/input.h> 50 #include <dt-bindings/interrupt-controller/irq.h> 54 compatible = "linksprite,pcduino3", "allwinner,sun7i-a20"; 61 stdout-path = "serial0:115200n8"; 65 compatible = "gpio-leds"; [all …]
|
| H A D | sun4i-a10-pcduino.dts | 5 * This file is dual-licensed: you can use it either under the terms 44 /dts-v1/; 45 #include "sun4i-a10.dtsi" 46 #include "sunxi-common-regulators.dtsi" 48 #include <dt-bindings/gpio/gpio.h> 49 #include <dt-bindings/input/input.h> 53 compatible = "linksprite,a10-pcduino", "allwinner,sun4i-a10"; 60 stdout-path = "serial0:115200n8"; 64 compatible = "gpio-leds"; 66 led-0 { [all …]
|
| /linux/arch/arm/mach-s3c/ |
| H A D | mach-crag6410.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/input-event-codes.h> 18 #include <linux/gpio.h> 19 #include <linux/gpio/machine.h> 29 #include <linux/gpio/driver.h> 33 #include <linux/platform_data/s3c-hsotg.h> 40 #include <linux/mfd/wm831x/gpio.h> 43 #include <asm/mach-types.h> 47 #include "regs-gpio.h" 48 #include "gpio-samsung.h" [all …]
|
| /linux/arch/arm64/boot/dts/allwinner/ |
| H A D | sun50i-h700-anbernic-rg35xx-2024.dts | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 6 /dts-v1/; 8 #include "sun50i-h616.dtsi" 9 #include "sun50i-h616-cpu-opp.dtsi" 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/input/linux-event-codes.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include <dt-bindings/leds/common.h> 17 chassis-type = "handset"; 18 compatible = "anbernic,rg35xx-2024", "allwinner,sun50i-h700"; [all …]
|
| /linux/drivers/media/pci/saa7134/ |
| H A D | saa7134-input.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 #include "saa7134-reg.h" 36 printk(KERN_DEBUG pr_fmt("ir %s: " fmt), ir->rc->device_name, \ 43 /* -------------------- GPIO generic keycode builder -------------------- */ 47 struct saa7134_card_ir *ir = dev->remote; in build_key() 48 u32 gpio, data; in build_key() local 51 switch (dev->board) { in build_key() 61 gpio = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2); in build_key() 62 if (ir->polling) { in build_key() 63 if (ir->last_gpio == gpio) in build_key() [all …]
|
| /linux/arch/arm/boot/dts/renesas/ |
| H A D | r8a7791-koelsch.dts | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2013-2014 Renesas Solutions Corp. 11 * SSI-AK4643 38 /dts-v1/; 40 #include <dt-bindings/gpio/gpio.h> 41 #include <dt-bindings/input/input.h> 63 stdout-path = "serial0:115200n8"; 77 compatible = "gpio-keys"; 79 pinctrl-0 = <&keyboard_pins>; 80 pinctrl-names = "default"; [all …]
|
| H A D | r8a7793-gose.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2014-2015 Renesas Electronics Corporation 9 * SSI-AK4643 36 /dts-v1/; 38 #include <dt-bindings/gpio/gpio.h> 39 #include <dt-bindings/input/input.h> 59 stdout-path = "serial0:115200n8"; 68 compatible = "gpio-keys"; 70 pinctrl-0 = <&keyboard_pins>; 71 pinctrl-names = "default"; [all …]
|