| /linux/arch/arm64/boot/dts/allwinner/ |
| H A D | sun50i-h700-anbernic-rg35xx-h.dts | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 7 #include "sun50i-h700-anbernic-rg35xx-plus.dts" 11 compatible = "anbernic,rg35xx-h", "allwinner,sun50i-h700"; 13 adc-joystick { 14 compatible = "adc-joystick"; 15 io-channels = <&adc_mux 0>, 19 pinctrl-0 = <&joy_mux_pin>; 20 pinctrl-names = "default"; 21 poll-interval = <60>; 22 #address-cells = <1>; [all …]
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3566-anbernic-rg353x.dtsi | 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 "rk3566-anbernic-rgxx3.dtsi" 11 adc-joystick { 12 compatible = "adc-joystick"; 13 io-channels = <&adc_mux 0>, 17 pinctrl-0 = <&joy_mux_en>; [all …]
|
| H A D | rk3326-odroid-go3.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 9 #include "rk3326-odroid-go.dtsi" 12 model = "ODROID-GO Super"; 13 compatible = "hardkernel,rk3326-odroid-go3", "rockchip,rk3326"; 15 joystick_mux_controller: mux-controller { 16 compatible = "gpio-mux"; 18 #mux-control-cells = <0>; 20 mux-gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>, 24 joystick_mux: adc-mux { [all …]
|
| H A D | rk3326-odroid-go2.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 9 #include "rk3326-odroid-go.dtsi" 12 model = "ODROID-GO Advance"; 13 compatible = "hardkernel,rk3326-odroid-go2", "rockchip,rk3326"; 15 analog_sticks: adc-joystick { 16 compatible = "adc-joystick"; 17 io-channels = <&saradc 1>, 19 poll-interval = <60>; 20 #address-cells = <1>; [all …]
|
| H A D | rk3326-odroid-go2-v11.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 9 #include "rk3326-odroid-go.dtsi" 12 model = "ODROID-GO Advance Black Edition"; 13 compatible = "hardkernel,rk3326-odroid-go2-v11", "rockchip,rk3326"; 19 analog_sticks: adc-joystick { 20 compatible = "adc-joystick"; 21 io-channels = <&saradc 1>, 23 poll-interval = <60>; 24 #address-cells = <1>; [all …]
|
| H A D | rk3566-powkiddy-rk2023.dtsi | 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/leds/common.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include <dt-bindings/soc/rockchip,vop2.h> 13 chassis-type = "handset"; 21 adc-joystick { 22 compatible = "adc-joystick"; [all …]
|
| H A D | rk3326-gameforce-chi.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/leds/common.h> 10 #include <dt-bindings/pinctrl/rockchip.h> 16 chassis-type = "handset"; 24 stdout-path = "serial2:115200n8"; 27 adc_joystick: adc-joystick { 28 compatible = "adc-joystick"; [all …]
|
| /linux/Documentation/devicetree/bindings/input/ |
| H A D | adc-joystick.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 # Copyright 2019-2020 Artur Rojek 4 --- 5 $id: http://devicetree.org/schemas/input/adc-joystick.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Artur Rojek <contact@artur-rojek.eu> 18 - $ref: input.yaml# 22 const: adc-joystick 24 io-channels: 31 https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/iio-consumer.yaml [all …]
|
| /linux/drivers/input/joystick/ |
| H A D | adc-joystick.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (c) 2019-2020 Artur Rojek <contact@artur-rojek.eu> 35 return (max + min) - val; in adc_joystick_invert() 43 for (i = 0; i < joy->num_chans; i++) { in adc_joystick_poll() 44 ret = iio_read_channel_raw(&joy->chans[i], &val); in adc_joystick_poll() 47 if (joy->axes[i].inverted) in adc_joystick_poll() 49 input_report_abs(input, joy->axes[i].code, val); in adc_joystick_poll() 62 bytes = joy->chans[0].channel->scan_type.storagebits >> 3; in adc_joystick_handle() 64 for (i = 0; i < joy->num_chans; ++i) { in adc_joystick_handle() 65 idx = joy->chans[i].channel->scan_index; in adc_joystick_handle() [all …]
|
| /linux/arch/arm64/boot/dts/amlogic/ |
| H A D | meson-g12b-odroid-go-ultra.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "meson-g12b-s922x.dtsi" 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/gpio/meson-g12a-gpio.h> 12 #include <dt-bindings/sound/meson-g12a-toacodec.h> 13 #include <dt-bindings/sound/meson-g12a-tohdmitx.h> 16 compatible = "hardkernel,odroid-go-ultra", "amlogic,s922x", "amlogic,g12b"; 17 model = "Hardkernel ODROID-GO-Ultra"; [all …]
|
| /linux/include/uapi/linux/ |
| H A D | input.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * Copyright (c) 1999-2002 Vojtech Pavlik 20 #include "input-event-codes.h" 56 * IOCTLs (0x00 - 0x7f) 67 * struct input_absinfo - use 97 __s32 fuzz; global() member 179 EVIOCGABS(abs) global() argument 180 EVIOCSABS(abs) global() argument [all...] |
| /linux/drivers/virtio/ |
| H A D | virtio_input.c | 1 // SPDX-License-Identifier: GPL-2.0-only 30 virtqueue_add_inbuf(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); in virtinput_queue_evtbuf() 35 struct virtio_input *vi = vq->vdev->priv; in virtinput_recv_events() 40 spin_lock_irqsave(&vi->lock, flags); in virtinput_recv_events() 41 if (vi->ready) { in virtinput_recv_events() 42 while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) { in virtinput_recv_events() 43 spin_unlock_irqrestore(&vi->lock, flags); in virtinput_recv_events() 44 input_event(vi->idev, in virtinput_recv_events() 45 le16_to_cpu(event->type), in virtinput_recv_events() 46 le16_to_cpu(event->code), in virtinput_recv_events() [all …]
|
| /linux/kernel/time/ |
| H A D | ntp.c | 1 // SPDX-License-Identifier: GPL-2.0 27 * struct ntp_data - Structure holding all NTP related state 41 * @ntp_tick_adj: Constant boot-param configurable NTP tick adjustment (upscaled) 91 [ 0 ... TIMEKEEPERS_MAX - 1 ] = { 111 * The following variables are used when a pulse-per-second (PPS) signal 130 if (ntpdata->time_status & STA_PPSTIME && ntpdata->time_status & STA_PPSSIGNAL) in ntp_offset_chunk() 133 return shift_right(offset, SHIFT_PLL + ntpdata->time_constant); in ntp_offset_chunk() 139 ntpdata->pps_shift = PPS_INTMIN; in pps_reset_freq_interval() 140 ntpdata->pps_intcnt = 0; in pps_reset_freq_interval() 144 * pps_clear - Clears the PPS state variables [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-lg.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz> 7 * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc 8 * Copyright (c) 2006-2007 Jiri Kosina 25 #include "hid-ids.h" 26 #include "hid-lg.h" 27 #include "hid-lg4ff.h" 435 if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && in lg_report_fixup() 442 if ((drv_data->quirks & LG_RDESC_REL_ABS) && *rsize >= 51 && in lg_report_fixup() 446 "fixing up rel/abs in Logitech report descriptor\n"); in lg_report_fixup() [all …]
|
| H A D | wacom_wac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * USB Wacom tablet support - Wacom specific code 25 * 2^14/pi is a good approximation on Intuos5 and 3rd-gen Bamboo 43 struct input_dev *input = wacom_wac->pen_input; in wacom_force_proxout() 45 wacom_wac->shared->stylus_in_proximity = 0; in wacom_force_proxout() 51 input_report_key(input, wacom_wac->tool[0], 0); in wacom_force_proxout() 52 if (wacom_wac->serial[0]) { in wacom_force_proxout() 57 wacom_wac->tool[0] = 0; in wacom_force_proxout() 58 wacom_wac->id[0] = 0; in wacom_force_proxout() 59 wacom_wac->serial[0] = 0; in wacom_force_proxout() [all …]
|
| H A D | hid-logitech-hidpp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (c) 2012-2013 Google (c) 7 * Copyright (c) 2013-2014 Red Hat Inc. 25 #include <linux/fixp-arith.h> 28 #include "hid-ids.h" 39 "Disable Tap-To-Click mode reporting for touchpads (only on the K400 currently)."); 41 /* Define a non-zero software ID to identify our own requests */ 84 /* Convenience constant to check for any high-res support. */ 128 u8 params[HIDPP_REPORT_VERY_LONG_MAX_LENGTH - 4U]; 134 u8 params[HIDPP_REPORT_VERY_LONG_MAX_LENGTH - 4U]; [all …]
|