/linux-6.12.1/arch/arm64/boot/dts/allwinner/ |
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-6.12.1/arch/arm64/boot/dts/rockchip/ |
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 …]
|
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 …]
|
D | rk3566-anbernic-rg503.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 "rk3566-anbernic-rgxx3.dtsi" 20 adc-joystick { 21 compatible = "adc-joystick"; 22 io-channels = <&adc_mux 0>, 26 pinctrl-0 = <&joy_mux_en>; [all …]
|
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 …]
|
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 …]
|
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 …]
|
D | rk3588s-gameforce-ace.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/leds/common.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include <dt-bindings/pwm/pwm.h> 10 #include <dt-bindings/thermal/thermal.h> 11 #include <dt-bindings/usb/pd.h> 16 chassis-type = "handset"; [all …]
|
D | rk3566-powkiddy-x55.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/leds/common.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include <dt-bindings/soc/rockchip,vop2.h> 14 chassis-type = "handset"; 25 stdout-path = "serial2:1500000n8"; 28 adc_joystick: adc-joystick { [all …]
|
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-6.12.1/Documentation/devicetree/bindings/input/ |
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-6.12.1/drivers/input/joystick/ |
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-6.12.1/arch/arm64/boot/dts/amlogic/ |
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-6.12.1/include/uapi/linux/ |
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 - used by EVIOCGABS/EVIOCSABS ioctls 71 * @fuzz: specifies fuzz value that is used to filter noise from 97 __s32 fuzz; member 103 * struct input_keymap_entry - used by EVIOCGKEYCODE/EVIOCSKEYCODE ioctls 104 * @scancode: scancode represented in machine-endian form. 148 * EVIOCGMTSLOTS(len) - get MT slot values [all …]
|
/linux-6.12.1/drivers/input/ |
D | input.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 1999-2002 Vojtech Pavlik 28 #include "input-compat.h" 29 #include "input-core-private.h" 30 #include "input-poller.h" 70 static int input_defuzz_abs_event(int value, int old_val, int fuzz) in input_defuzz_abs_event() argument 72 if (fuzz) { in input_defuzz_abs_event() 73 if (value > old_val - fuzz / 2 && value < old_val + fuzz / 2) in input_defuzz_abs_event() 76 if (value > old_val - fuzz && value < old_val + fuzz) in input_defuzz_abs_event() 79 if (value > old_val - fuzz * 2 && value < old_val + fuzz * 2) in input_defuzz_abs_event() [all …]
|
D | input-mt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2008-2010 Henrik Rydberg 11 #include "input-core-private.h" 17 if (dev->absinfo && test_bit(src, dev->absbit)) { in copy_abs() 18 dev->absinfo[dst] = dev->absinfo[src]; in copy_abs() 19 dev->absinfo[dst].fuzz = 0; in copy_abs() 20 __set_bit(dst, dev->absbit); in copy_abs() 25 * input_mt_init_slots() - initialize MT input slots 36 * May be called repeatedly. Returns -EINVAL if attempting to 42 struct input_mt *mt = dev->mt; in input_mt_init_slots() [all …]
|
/linux-6.12.1/drivers/virtio/ |
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-6.12.1/drivers/misc/lis3lv02d/ |
D | lis3lv02d.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * lis3lv02d.c - ST LIS3LV02DL accelerometer driver 5 * Copyright (C) 2007-2008 Yan Burman 7 * Copyright (C) 2008-2009 Pavel Machek 42 #define SELFTEST_FAIL -1 43 #define SELFTEST_IRQ -2 51 * to keep the interrupt for the free-fall event. The values are updated at 61 * LIS3LV02D spec says 1024 LSBs corresponds 1 G -> 1LSB is 1000/1024 mG 67 /* Sensitivity values for -2G +2G scale */ 72 * LIS331DLH spec says 1LSBs corresponds 4G/4096 -> 1LSB is 1000/1024 mG. [all …]
|
/linux-6.12.1/kernel/time/ |
D | ntp.c | 1 // SPDX-License-Identifier: GPL-2.0 49 * phase-lock loop variables 82 /* constant (boot-param configurable) NTP tick adjustment (upscaled) */ 91 * The following variables are used when a pulse-per-second (PPS) signal 142 * pps_clear - Clears the PPS state variables 161 pps_valid--; in pps_dec_valid() 195 txc->ppsfreq = shift_right((pps_freq >> PPM_SCALE_INV_SHIFT) * in pps_fill_timex() 197 txc->jitter = pps_jitter; in pps_fill_timex() 199 txc->jitter = pps_jitter / NSEC_PER_USEC; in pps_fill_timex() 200 txc->shift = pps_shift; in pps_fill_timex() [all …]
|
/linux-6.12.1/drivers/hid/ |
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 …]
|
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 …]
|
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 */ 83 /* Convenience constant to check for any high-res support. */ 127 u8 params[HIDPP_REPORT_VERY_LONG_MAX_LENGTH - 4U]; 133 u8 params[HIDPP_REPORT_VERY_LONG_MAX_LENGTH - 4U]; [all …]
|
/linux-6.12.1/drivers/gpu/drm/ |
D | drm_edid.c | 3 * Copyright (c) 2007-2008 Intel Corporation 24 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 83 /* Force reduced-blanking timings for detailed modes */ 141 /* BOE model on HP Pavilion 15-n233sl reports 8 bpc, but is a 6 bpc panel */ 147 /* SDC panel of Lenovo B50-80 reports 8 bpc, but is a 6 bpc panel */ 157 /* Envision Peripherals, Inc. EN-7100e */ 175 /* LG Philips LCD LP154W01-A5 */ 181 /* Samsung SyncMaster 22[5-6]BW */ 185 /* Sony PVM-2541A does up to 12 bpc, but only reports max 8 bpc */ 197 /* Panel in Samsung NP700G7A-S01PL notebook reports 6bpc */ [all …]
|