/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 …]
|
H A D | adi,adp5588.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Nuno Sá <nuno.sa@analog.com> 14 https://www.analog.com/media/en/technical-documentation/data-sheets/ADP5588.pdf 17 - $ref: matrix-keymap.yaml# 18 - $ref: input.yaml# 23 - adi,adp5587 24 - adi,adp5588 29 vcc-supply: [all …]
|
/linux/arch/x86/platform/geode/ |
H A D | geode-common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Shared helpers to register GPIO-connected buttons and LEDs 8 #include <linux/gpio/machine.h> 9 #include <linux/gpio/property.h> 15 #include "geode-common.h" 18 .name = "cs5535-gpio", 22 PROPERTY_ENTRY_U32("poll-interval", 20), 27 .name = "geode-gpio-keys", 32 { /* Placeholder for GPIO property */ }, 35 PROPERTY_ENTRY_U32("debounce-interval", 100), [all …]
|
/linux/drivers/input/keyboard/ |
H A D | gpio_keys.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for keys on GPIO lines capable of generating interrupts. 26 #include <linux/gpio.h> 27 #include <linux/gpio/consumer.h> 31 #include <dt-bindings/input/gpio-keys.h> 41 unsigned int release_delay; /* in msecs, for IRQ-only buttons */ 45 unsigned int software_debounce; /* in msecs, for GPIO-driven buttons */ 67 * SYSFS interface for enabling/disabling keys and switches: 69 * There are 4 attributes under /sys/devices/platform/gpio-keys/ 70 * keys [ro] - bitmap of keys (EV_KEY) which can be [all …]
|
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> 48 #define GPIO_INT_STAT1 0x11 /* GPIO Interrupt Status */ 49 #define GPIO_INT_STAT2 0x12 /* GPIO Interrupt Status */ 50 #define GPIO_INT_STAT3 0x13 /* GPIO Interrupt Status */ 51 #define GPIO_DAT_STAT1 0x14 /* GPIO Data Status, Read twice to clear */ 52 #define GPIO_DAT_STAT2 0x15 /* GPIO Data Status, Read twice to clear */ [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 24 board-specific setup logic must also provide a configuration data 38 be called adp5520-keys. 51 module will be called adp5588-keys. 61 module will be called adp5589-keys. 126 Say Y here if you have a PA-RISC machine and want to use an AT or 128 PA-RISC keyboards. 138 built-in keyboard (as opposed to an external keyboard). 140 The PrecisionBook has five keys that conflict with those used by most 152 in the left-hand column will be interpreted as the corresponding key [all …]
|
/linux/drivers/mfd/ |
H A D | ucb1x00-assabet.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/mfd/ucb1x00-assabet.c 5 * Copyright (C) 2001-2003 Russell King, All Rights Reserved. 7 * We handle the machine-specific bits of the UCB1x00 driver here. 39 struct ucb1x00 *ucb = dev->ucb; in ucb1x00_assabet_add() 41 struct gpio_keys_platform_data keys; in ucb1x00_assabet_add() local 46 memset(&keys, 0, sizeof(keys)); in ucb1x00_assabet_add() 50 buttons[i].gpio = ucb->gpio.base + i; in ucb1x00_assabet_add() 55 keys.buttons = buttons; in ucb1x00_assabet_add() 56 keys.nbuttons = ARRAY_SIZE(buttons); in ucb1x00_assabet_add() [all …]
|
H A D | adp5520.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * LEDs : drivers/led/leds-adp5520 6 * GPIO : drivers/gpio/adp5520-gpio (ADP5520 only) 7 * Keys : drivers/input/keyboard/adp5520-keys (ADP5520 only) 17 * Copyright (C) 2006-2008 Marvell International Ltd. 49 dev_err(&client->dev, "failed reading at 0x%02x\n", reg); in __adp5520_read() 64 dev_err(&client->dev, "failed writing 0x%02x to 0x%02x\n", in __adp5520_write() 78 mutex_lock(&chip->lock); in __adp5520_ack_bits() 87 mutex_unlock(&chip->lock); in __adp5520_ack_bits() 109 mutex_lock(&chip->lock); in adp5520_set_bits() [all …]
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | ipq5332-rdp-common.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 5 * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. 8 /dts-v1/; 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/leds/common.h> 21 stdout-path = "serial0"; 24 gpio-keys { 25 compatible = "gpio-keys"; 26 pinctrl-0 = <&gpio_keys_default>; [all …]
|
H A D | msm8939-huawei-kiwi.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 /dts-v1/; 5 #include "msm8939-pm8916.dtsi" 6 #include <dt-bindings/gpio/gpio.h> 11 chassis-type = "handset"; 20 stdout-path = "serial0"; 23 reserved-memory { 26 no-map; 30 gpio-hall-sensor { 31 compatible = "gpio-keys"; [all …]
|
H A D | msm8916-samsung-j5-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 #include "msm8916-pm8916.dtsi" 4 #include "msm8916-modem-qdsp6.dtsi" 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 18 stdout-path = "serial0"; 21 reserved-memory { 23 tz-apps@85500000 { 25 no-map; [all …]
|
H A D | msm8916-lg-c50.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 /dts-v1/; 5 #include "msm8916-pm8916.dtsi" 7 #include <dt-bindings/gpio/gpio.h> 12 chassis-type = "handset"; 21 stdout-path = "serial0"; 24 gpio-keys { 25 compatible = "gpio-keys"; 27 pinctrl-0 = <&gpio_keys_default>; 28 pinctrl-names = "default"; [all …]
|
H A D | msm8916-samsung-gt5-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 /dts-v1/; 5 #include "msm8916-pm8916.dtsi" 6 #include "msm8916-modem-qdsp6.dtsi" 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 11 #include <dt-bindings/sound/apq8016-lpass.h> 21 stdout-path = "serial0"; 24 reserved-memory { [all …]
|
H A D | msm8939-longcheer-l9100.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 /dts-v1/; 5 #include "msm8939-pm8916.dtsi" 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 12 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h> 17 chassis-type = "handset"; [all …]
|
H A D | msm8916-motorola-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 #include "msm8916-pm8916.dtsi" 4 #include "msm8916-modem-qdsp6.dtsi" 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 18 stdout-path = "serial0"; 21 gpio-keys { 22 compatible = "gpio-keys"; 24 pinctrl-0 = <&gpio_keys_default>; [all …]
|
H A D | msm8939-wingtech-wt82918.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 #include "msm8916-modem-qdsp6.dtsi" 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h> 17 stdout-path = "serial0"; 21 compatible = "pwm-backlight"; 23 brightness-levels = <0 255>; 24 num-interpolated-steps = <255>; 25 default-brightness-level = <128>; [all …]
|
/linux/arch/arm64/boot/dts/amlogic/ |
H A D | meson-gxl-s905d-mecool-kii-pro.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 9 #include "meson-gxl-s905d.dtsi" 10 #include "meson-gx-p23x-q20x.dtsi" 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/leds/common.h> 15 compatible = "videostrong,gxl-kii-pro", "amlogic,s905d", "amlogic,meson-gxl"; 18 adc-keys { 19 compatible = "adc-keys"; 20 io-channels = <&saradc 0>; [all …]
|
H A D | meson-gxm-mecool-kiii-pro.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 9 #include "meson-gxm.dtsi" 10 #include "meson-gx-p23x-q20x.dtsi" 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/leds/common.h> 15 compatible = "videostrong,gxm-kiii-pro", "amlogic,s912", "amlogic,meson-gxm"; 23 adc-keys { 24 compatible = "adc-keys"; 25 io-channels = <&saradc 0>; [all …]
|
H A D | meson-gxm-wetek-core2.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "meson-gxm.dtsi" 9 #include "meson-gx-p23x-q20x.dtsi" 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 14 compatible = "wetek,core2", "amlogic,s912", "amlogic,meson-gxm"; 23 compatible = "gpio-leds"; 25 led-blue { 28 gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>; [all …]
|
H A D | meson-gxm-minix-neo-u9h.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "meson-gxm.dtsi" 9 #include "meson-gx-p23x-q20x.dtsi" 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 14 compatible = "minix,neo-u9h", "amlogic,s912", "amlogic,meson-gxm"; 15 model = "Minix Neo U9-H"; 18 compatible = "gpio-leds"; 20 led-white { [all …]
|
H A D | meson-gxm-q200.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 9 #include <dt-bindings/input/input.h> 11 #include "meson-gxm.dtsi" 12 #include "meson-gx-p23x-q20x.dtsi" 15 compatible = "amlogic,q200", "amlogic,s912", "amlogic,meson-gxm"; 18 adc-keys { 19 compatible = "adc-keys"; 20 io-channels = <&saradc 0>; 21 io-channel-names = "buttons"; [all …]
|
/linux/arch/arm/boot/dts/nuvoton/ |
H A D | nuvoton-wpcm450-supermicro-x9sci-ln4f.dts | 1 // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 4 /dts-v1/; 9 #include "nuvoton-wpcm450.dtsi" 11 #include <dt-bindings/input/linux-event-codes.h> 12 #include <dt-bindings/gpio/gpio.h> 15 model = "Supermicro X9SCi-LN4F BMC"; 16 compatible = "supermicro,x9sci-ln4f-bmc", "nuvoton,wpcm450"; 24 stdout-path = "serial0:115200n8"; 32 gpio-keys { 33 compatible = "gpio-keys"; [all …]
|
/linux/arch/arm/boot/dts/rockchip/ |
H A D | rk3288-rock2-square.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 4 #include <dt-bindings/input/input.h> 5 #include "rk3288-rock2-som.dtsi" 9 compatible = "radxa,rock2-square", "rockchip,rk3288"; 12 stdout-path = "serial2:115200n8"; 15 adc-keys { 16 compatible = "adc-keys"; 17 io-channels = <&saradc 1>; 18 io-channel-names = "buttons"; [all …]
|
/linux/drivers/platform/x86/ |
H A D | pcengines-apuv2.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * PC-Engines APUv2/APUv3 board platform driver 5 * for GPIO buttons and LEDs 20 #include <linux/gpio/machine.h> 22 #include <linux/platform_data/gpio/gpio-amd-fch.h> 25 * NOTE: this driver only supports APUv2/3 - not APUv1, as this one 38 /* Order in which the GPIO lines are defined in the register list */ 47 /* GPIO device */ 60 [APU2_GPIO_LINE_LED1] = "front-led1", 61 [APU2_GPIO_LINE_LED2] = "front-led2", [all …]
|
/linux/arch/arm64/boot/dts/allwinner/ |
H A D | sun50i-h700-anbernic-rg35xx-sp.dts | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 7 #include <dt-bindings/input/gpio-keys.h> 8 #include "sun50i-h700-anbernic-rg35xx-plus.dts" 12 compatible = "anbernic,rg35xx-sp", "allwinner,sun50i-h700"; 14 gpio-keys-lid { 15 compatible = "gpio-keys"; 17 lid-switch { 20 linux,can-disable; 22 linux,input-type = <EV_SW>; 23 wakeup-event-action = <EV_ACT_DEASSERTED>; [all …]
|