| /linux/Documentation/devicetree/bindings/input/ | 
| H A D | adc-keys.yaml | 1 # SPDX-License-Identifier: GPL-2.03 ---
 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 …]
 
 | 
| /linux/arch/arm64/boot/dts/rockchip/ | 
| H A D | rk3588-ok3588-c.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)3 /dts-v1/;
 4 #include "rk3588-fet3588-c.dtsi"
 7 	model = "Forlinx OK3588-C Board";
 8 	compatible = "forlinx,ok3588-c", "forlinx,fet3588-c", "rockchip,rk3588";
 16 	adc-keys-0 {
 17 		compatible = "adc-keys";
 18 		io-channels = <&saradc 0>;
 19 		io-channel-names = "buttons";
 20 		keyup-threshold-microvolt = <1800000>;
 [all …]
 
 | 
| H A D | px30-firefly-jd4-core-mb.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)6 /dts-v1/;
 7 #include <dt-bindings/input/input.h>
 8 #include <dt-bindings/leds/common.h>
 9 #include "px30-firefly-jd4-core.dtsi"
 12 	compatible = "firefly,px30-jd4-core-mb", "firefly,px30-jd4-core",
 14 	model = "Firefly Core-PX30-JD4 on MB-JD4-PX30 baseboard";
 24 		stdout-path = "serial2:115200n8";
 27 	dc_12v: regulator-dc-12v {
 28 		compatible = "regulator-fixed";
 [all …]
 
 | 
| H A D | rk3568-fastrhino-r68s.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT3 #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";
 19 		stdout-path = "serial2:1500000n8";
 22 	adc-keys {
 23 		compatible = "adc-keys";
 24 		io-channels = <&saradc 0>;
 25 		io-channel-names = "buttons";
 26 		keyup-threshold-microvolt = <1800000>;
 [all …]
 
 | 
| H A D | rk3588-orangepi-5.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)6 /dts-v1/;
 8 #include <dt-bindings/gpio/gpio.h>
 9 #include <dt-bindings/leds/common.h>
 10 #include <dt-bindings/input/input.h>
 11 #include <dt-bindings/pinctrl/rockchip.h>
 12 #include <dt-bindings/usb/pd.h>
 22 		stdout-path = "serial2:1500000n8";
 25 	adc-keys-0 {
 26 		compatible = "adc-keys";
 [all …]
 
 | 
| H A D | rk3562-evb2-v10.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)3  * Copyright (c) 2024-2025 Rockchip Electronics Co., Ltd.
 7 /dts-v1/;
 9 #include <dt-bindings/gpio/gpio.h>
 10 #include <dt-bindings/input/input.h>
 11 #include <dt-bindings/leds/common.h>
 12 #include <dt-bindings/pinctrl/rockchip.h>
 17 	compatible = "rockchip,rk3562-evb2-v10", "rockchip,rk3562";
 20 		stdout-path = "serial0:1500000n8";
 23 	adc_keys: adc-keys {
 [all …]
 
 | 
| H A D | rk3528-radxa-e20c.dts | 1 // SPDX-License-Identifier: GPL-2.0+8 /dts-v1/;
 10 #include <dt-bindings/input/input.h>
 11 #include <dt-bindings/leds/common.h>
 12 #include <dt-bindings/pwm/pwm.h>
 28 		stdout-path = "serial0:1500000n8";
 31 	adc-keys {
 32 		compatible = "adc-keys";
 33 		io-channels = <&saradc 0>;
 34 		io-channel-names = "buttons";
 [all …]
 
 | 
| H A D | rk3588s-indiedroid-nova.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)3 /dts-v1/;
 5 #include <dt-bindings/gpio/gpio.h>
 6 #include <dt-bindings/input/linux-event-codes.h>
 7 #include <dt-bindings/pinctrl/rockchip.h>
 8 #include <dt-bindings/soc/rockchip,vop2.h>
 9 #include <dt-bindings/usb/pd.h>
 16 	adc-keys-0 {
 17 		compatible = "adc-keys";
 18 		io-channel-names = "buttons";
 [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";
 24 		stdout-path = "serial5:115200n8";
 27 	adc-keys {
 28 		compatible = "adc-keys";
 29 		io-channels = <&saradc 2>;
 [all …]
 
 | 
| /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>
 12 #include <dt-bindings/sound/meson-aiu.h>
 15 	compatible = "amlogic,p200", "amlogic,meson-gxbb";
 18 	spdif_dit: audio-codec-0 {
 19 		#sound-dai-cells = <0>;
 20 		compatible = "linux,spdif-dit";
 21 		sound-name-prefix = "DIT";
 [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-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-ugoos-am3.dts | 1 // SPDX-License-Identifier: GPL-2.010 /dts-v1/;
 12 #include <dt-bindings/input/input.h>
 13 #include <dt-bindings/interrupt-controller/amlogic,meson-g12a-gpio-intc.h>
 15 #include "meson-gxm.dtsi"
 16 #include "meson-gx-p23x-q20x.dtsi"
 19 	compatible = "ugoos,am3", "amlogic,s912", "amlogic,meson-gxm";
 22 	adc-keys {
 23 		compatible = "adc-keys";
 24 		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-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 …]
 
 | 
| H A D | meson-gxl-s905x-khadas-vim.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)6 /dts-v1/;
 8 #include "meson-gxl-s905x-p212.dtsi"
 9 #include <dt-bindings/input/input.h>
 10 #include <dt-bindings/sound/meson-aiu.h>
 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";
 [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 …]
 
 | 
| H A D | meson-gx-libretech-pc.dtsi | 1 // SPDX-License-Identifier: GPL-2.07 /* Libretech Amlogic GX PC form factor - AKA: Tartiflette */
 9 #include <dt-bindings/input/input.h>
 10 #include <dt-bindings/leds/common.h>
 11 #include <dt-bindings/sound/meson-aiu.h>
 14 	adc-keys {
 15 		compatible = "adc-keys";
 16 		io-channels = <&saradc 0>;
 17 		io-channel-names = "buttons";
 18 		keyup-threshold-microvolt = <1800000>;
 [all …]
 
 | 
| H A D | meson-gxm-khadas-vim2.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)8 /dts-v1/;
 10 #include "meson-gxm.dtsi"
 11 #include <dt-bindings/input/input.h>
 12 #include <dt-bindings/sound/meson-aiu.h>
 15 	compatible = "khadas,vim2", "amlogic,s912", "amlogic,meson-gxm";
 24 		stdout-path = "serial0:115200n8";
 32 	adc-keys {
 33 		compatible = "adc-keys";
 34 		io-channels = <&saradc 0>;
 [all …]
 
 | 
| /linux/drivers/input/keyboard/ | 
| H A D | adc-keys.c | 1 // SPDX-License-Identifier: GPL-2.0-only39 	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 …]
 
 | 
| /linux/arch/arm/boot/dts/rockchip/ | 
| H A D | rk3128-xpi-3128.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)3 /dts-v1/;
 5 #include <dt-bindings/input/input.h>
 6 #include <dt-bindings/leds/common.h>
 10 	model = "Geniatech XPI-3128";
 11 	compatible = "geniatech,xpi-3128", "rockchip,rk3128";
 25 		stdout-path = &uart1;
 28 	adc-keys {
 29 		compatible = "adc-keys";
 30 		io-channels = <&saradc 1>;
 [all …]
 
 |