/openbmc/linux/Documentation/devicetree/bindings/input/ |
H A D | adc-keys.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/input/adc-keys.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Alexandre Belloni <alexandre.belloni@bootlin.com> 13 - $ref: input.yaml# 17 const: adc-keys 19 io-channels: 22 io-channel-names: 25 keyup-threshold-microvolt: [all …]
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3308-evb.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 8 #include <dt-bindings/input/input.h> 13 compatible = "rockchip,rk3308-evb", "rockchip,rk3308"; 16 stdout-path = "serial4:1500000n8"; 19 adc-keys0 { 20 compatible = "adc-keys"; 21 io-channels = <&saradc 0>; 22 io-channel-names = "buttons"; 23 poll-interval = <100>; [all …]
|
H A D | rk3399-nanopi-m4b.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 5 * Copyright (c) 2020 Chen-Yu Tsai <wens@csie.org> 8 /dts-v1/; 9 #include "rk3399-nanopi-m4.dts" 13 compatible = "friendlyarm,nanopi-m4b", "rockchip,rk3399"; 15 adc-keys { 16 compatible = "adc-keys"; 17 io-channels = <&saradc 1>; 18 io-channel-names = "buttons"; 19 keyup-threshold-microvolt = <1500000>; [all …]
|
H A D | rk3399-nanopc-t4.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * FriendlyElec NanoPC-T4 board device tree source 11 /dts-v1/; 12 #include "rk3399-nanopi4.dtsi" 15 model = "FriendlyElec NanoPC-T4"; 16 compatible = "friendlyarm,nanopc-t4", "rockchip,rk3399"; 18 vcc12v0_sys: vcc12v0-sys { 19 compatible = "regulator-fixed"; 20 regulator-always-on; 21 regulator-boot-on; [all …]
|
H A D | rk3328-roc-pc.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 // Copyright (c) 2021 T-Chip Intelligent Technology Co., Ltd 4 /dts-v1/; 6 #include <dt-bindings/input/input.h> 8 #include "rk3328-roc-cc.dts" 11 model = "Firefly ROC-RK3328-PC"; 12 compatible = "firefly,roc-rk3328-pc", "rockchip,rk3328"; 14 adc-keys { 15 compatible = "adc-keys"; 16 io-channels = <&saradc 0>; [all …]
|
H A D | rk3568-fastrhino-r68s.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 #include "rk3568-fastrhino-r66s.dtsi" 7 compatible = "lunzn,fastrhino-r68s", "rockchip,rk3568"; 15 adc-keys { 16 compatible = "adc-keys"; 17 io-channels = <&saradc 0>; 18 io-channel-names = "buttons"; 19 keyup-threshold-microvolt = <1800000>; 21 button-recovery { 24 press-threshold-microvolt = <1750>; [all …]
|
H A D | rk3399-sapphire-excavator.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 7 #include "rk3399-sapphire.dtsi" 10 model = "Excavator-RK3399 Board"; 11 compatible = "rockchip,rk3399-sapphire-excavator", "rockchip,rk3399"; 17 adc-keys { 18 compatible = "adc-keys"; 19 io-channels = <&saradc 1>; 20 io-channel-names = "buttons"; 21 keyup-threshold-microvolt = <1800000>; [all …]
|
H A D | rk3318-a95x-z2.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 4 #include <dt-bindings/input/input.h> 9 compatible = "zkmagic,a95x-z2", "rockchip,rk3318"; 18 stdout-path = "serial2:1500000n8"; 21 adc-keys { 22 compatible = "adc-keys"; 23 io-channels = <&saradc 0>; 24 io-channel-names = "buttons"; 25 keyup-threshold-microvolt = <1800000>; [all …]
|
H A D | px30-evb.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/pinctrl/rockchip.h> 14 compatible = "rockchip,px30-evb", "rockchip,px30"; 23 stdout-path = "serial5:115200n8"; 26 adc-keys { 27 compatible = "adc-keys"; 28 io-channels = <&saradc 2>; [all …]
|
/openbmc/linux/arch/arm64/boot/dts/amlogic/ |
H A D | meson-gxbb-p200.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include "meson-gxbb-p20x.dtsi" 11 #include <dt-bindings/input/input.h> 14 compatible = "amlogic,p200", "amlogic,meson-gxbb"; 17 avdd18_usb_adc: regulator-avdd18_usb_adc { 18 compatible = "regulator-fixed"; 19 regulator-name = "AVDD18_USB_ADC"; 20 regulator-min-microvolt = <1800000>; 21 regulator-max-microvolt = <1800000>; [all …]
|
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-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 { 29 default-state = "on"; [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 …]
|
H A D | meson-gxm-gt1-ultimate.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 = "azw,gt1-ultimate", "amlogic,s912", "amlogic,meson-gxm"; 18 compatible = "gpio-leds"; 20 led-white { 24 default-state = "on"; [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-gxl-s905d-p230.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 9 #include <dt-bindings/input/input.h> 11 #include "meson-gxl-s905d.dtsi" 12 #include "meson-gx-p23x-q20x.dtsi" 15 compatible = "amlogic,p230", "amlogic,s905d", "amlogic,meson-gxl"; 18 adc-keys { 19 compatible = "adc-keys"; 20 io-channels = <&saradc 0>; 21 io-channel-names = "buttons"; [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-g12b-bananapi-cm4-cm4io.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "meson-g12b-bananapi-cm4.dtsi" 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/sound/meson-g12a-tohdmitx.h> 14 compatible = "bananapi,bpi-cm4io", "bananapi,bpi-cm4", "amlogic,a311d", "amlogic,g12b"; 15 model = "BananaPi BPI-CM4IO Baseboard with BPI-CM4 Module"; 23 adc-keys { 24 compatible = "adc-keys"; [all …]
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | adc-keys.c | 1 // SPDX-License-Identifier: GPL-2.0-only 39 ret = iio_read_channel_processed(st->channel, &value); in adc_keys_poll() 42 value = st->keyup_voltage; in adc_keys_poll() 44 for (i = 0; i < st->num_keys; i++) { in adc_keys_poll() 45 diff = abs(st->map[i].voltage - value); in adc_keys_poll() 48 keycode = st->map[i].keycode; in adc_keys_poll() 53 if (abs(st->keyup_voltage - value) < closest) in adc_keys_poll() 56 if (st->last_key && st->last_key != keycode) in adc_keys_poll() 57 input_report_key(input, st->last_key, 0); in adc_keys_poll() 63 st->last_key = keycode; in adc_keys_poll() [all …]
|
/openbmc/linux/arch/arm/boot/dts/rockchip/ |
H A D | rk3066a-mk808.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 7 #include <dt-bindings/input/input.h> 20 stdout-path = "serial2:115200n8"; 28 adc-keys { 29 compatible = "adc-keys"; 30 io-channels = <&saradc 1>; 31 io-channel-names = "buttons"; 32 keyup-threshold-microvolt = <2500000>; 33 poll-interval = <100>; [all …]
|
H A D | rk3288-evb.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 #include <dt-bindings/input/input.h> 4 #include <dt-bindings/pwm/pwm.h> 13 adc-keys { 14 compatible = "adc-keys"; 15 io-channels = <&saradc 1>; 16 io-channel-names = "buttons"; 17 keyup-threshold-microvolt = <1800000>; 19 button-up { 22 press-threshold-microvolt = <100000>; [all …]
|
/openbmc/linux/arch/arm/boot/dts/amlogic/ |
H A D | meson8m2-mxiii-plus.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Copyright (c) 2018 Oleg Ivanov <balbes-150@yandex.ru> 7 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 16 compatible = "tronsmart,mxiii-plus", "amlogic,meson8m2"; 26 stdout-path = "serial0:115200n8"; 34 adc-keys { 35 compatible = "adc-keys"; 36 io-channels = <&saradc 0>; [all …]
|
/openbmc/linux/arch/mips/boot/dts/ingenic/ |
H A D | rs90.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/iio/adc/ingenic,adc.h> 8 #include <dt-bindings/input/linux-event-codes.h> 12 model = "RS-90"; 19 reserved-memory { 20 #address-cells = <1>; 21 #size-cells = <1>; 24 vmem: video-memory@1f00000 { [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | meson-gxl-s905x-khadas-vim.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/input/input.h> 10 #include "meson-gxl-s905x-p212.dtsi" 13 compatible = "khadas,vim", "amlogic,s905x", "amlogic,meson-gxl"; 16 adc-keys { 17 compatible = "adc-keys"; 18 io-channels = <&saradc 0>; 19 io-channel-names = "buttons"; 20 keyup-threshold-microvolt = <1710000>; [all …]
|
H A D | meson-axg-s400.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "meson-axg.dtsi" 9 #include <dt-bindings/input/input.h> 12 compatible = "amlogic,s400", "amlogic,a113d", "amlogic,meson-axg"; 16 compatible = "adc-keys"; 17 io-channels = <&saradc 0>; 18 io-channel-names = "buttons"; 19 keyup-threshold-microvolt = <1800000>; 21 button-next { [all …]
|