Home
last modified time | relevance | path

Searched +full:adc +full:- +full:joystick (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.12.1/Documentation/devicetree/bindings/input/
Dadc-joystick.yaml1 # 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#
8 title: ADC attached joystick
11 - Artur Rojek <contact@artur-rojek.eu>
14 Bindings for joystick devices connected to ADC controllers supporting
18 - $ref: input.yaml#
22 const: adc-joystick
[all …]
/linux-6.12.1/drivers/input/joystick/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # Joystick driver configuration
9 If you have a joystick, 6dof controller, gamepad, steering wheel,
14 Please read the file <file:Documentation/input/joydev/joystick.rst> which
23 Say Y here if you have a joystick that connects to the PC
24 gameport. In addition to the usual PC analog joystick, this driver
30 Please read the file <file:Documentation/input/joydev/joystick.rst> which
47 tristate "Simple joystick connected over ADC"
52 Say Y here if you have a simple joystick connected over ADC.
55 module will be called adc-joystick.
[all …]
DMakefile1 # SPDX-License-Identifier: GPL-2.0
8 obj-$(CONFIG_JOYSTICK_A3D) += a3d.o
9 obj-$(CONFIG_JOYSTICK_ADC) += adc-joystick.o
10 obj-$(CONFIG_JOYSTICK_ADI) += adi.o
11 obj-$(CONFIG_JOYSTICK_AMIGA) += amijoy.o
12 obj-$(CONFIG_JOYSTICK_AS5011) += as5011.o
13 obj-$(CONFIG_JOYSTICK_ANALOG) += analog.o
14 obj-$(CONFIG_JOYSTICK_COBRA) += cobra.o
15 obj-$(CONFIG_JOYSTICK_DB9) += db9.o
16 obj-$(CONFIG_JOYSTICK_FSIA6B) += fsia6b.o
[all …]
Da3d.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 1998-2001 Vojtech Pavlik
7 * FP-Gaming Assassin 3D joystick driver for Linux
17 #define DRIVER_DESC "FP-Gaming Assassin 3D joystick driver"
32 static char *a3d_names[] = { NULL, "FP-Gaming Assassin 3D", "MadCatz Panther", "OEM Panther",
37 struct gameport *adc; member
68 t--; in a3d_read_packet()
89 for (i = 0; i < count - 2; i++) in a3d_csum()
91 return (csum & 0x3f) != ((data[count - 2] << 3) | data[count - 1]); in a3d_csum()
96 struct input_dev *dev = a3d->dev; in a3d_read()
[all …]
Dadc-joystick.c1 // SPDX-License-Identifier: GPL-2.0
3 * Input driver for joysticks connected over ADC.
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()
[all …]
Dadafruit-seesaw.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * Oleh Kravchenko (Sparkfun Qwiic Joystick driver)
10 * Datasheet: https://cdn-learn.adafruit.com/downloads/pdf/gamepad-qt.pdf
15 * - Add interrupt support
23 #include <linux/input/sparse-keymap.h>
27 #define SEESAW_DEVICE_NAME "seesaw-gamepad"
92 .addr = client->addr, in seesaw_register_read()
93 .flags = client->flags, in seesaw_register_read()
98 .addr = client->addr, in seesaw_register_read()
99 .flags = client->flags | I2C_M_RD, in seesaw_register_read()
[all …]
/linux-6.12.1/arch/arm64/boot/dts/allwinner/
Dsun50i-h700-anbernic-rg35xx-h.dts1 // 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/
Drk3326-odroid-go3.dts1 // 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 …]
Drk3326-odroid-go2.dts1 // 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 …]
Drk3326-gameforce-chi.dts1 // 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 …]
Drk3566-anbernic-rg353x.dtsi1 // 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 …]
Drk3326-odroid-go2-v11.dts1 // 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 …]
Drk3566-anbernic-rg503.dts1 // 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 …]
Drk3588s-gameforce-ace.dts1 // 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 …]
Drk3566-powkiddy-rk2023.dtsi1 // 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 …]
/linux-6.12.1/Documentation/input/
Dgameport-programming.rst9 the code needed to register it with the joystick drivers is simple::
34 Please also consider enabling the gameport on the card in the ->open()
35 callback if the io is mapped to ISA space - this way it'll occupy the io
37 ->close() callback. You also can select the io address in the ->open()
70 the driver doesn't have to measure them the old way - an ADC is built into
86 return -(mode != GAMEPORT_MODE_COOKED);
95 experimentation, it is the amount of noise in the ADC data. Perfect
97 See analog.c and input.c for handling of fuzz - the fuzz value determines
105 examples 1+2 or 1+3. Gameports can support internal calibration - see below,
107 more than one gameport instance simultaneously, use the ->private member of
[all …]
/linux-6.12.1/arch/arm/boot/dts/microchip/
Dat91sam9m10g45ek.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board
8 /dts-v1/;
10 #include <dt-bindings/pwm/pwm.h>
13 model = "Atmel AT91SAM9M10G45-EK";
18 stdout-path = "serial0:115200n8";
27 clock-frequency = <32768>;
31 clock-frequency = <12000000>;
43 compatible = "atmel,tcb-timer";
48 compatible = "atmel,tcb-timer";
[all …]
/linux-6.12.1/arch/arm/boot/dts/nxp/lpc/
Dlpc3250-ea3250.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
8 /dts-v1/;
20 gpio-keys {
21 compatible = "gpio-keys";
55 label = "Joystick Key 0";
61 label = "Joystick Key 1";
67 label = "Joystick Key 2";
73 label = "Joystick Key 3";
79 label = "Joystick Key 4";
86 compatible = "gpio-leds";
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/
Dtrivial-devices.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/trivial-devices.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rob Herring <robh@kernel.org>
27 spi-max-frequency: true
32 - enum:
34 - acbel,fsg032
35 … # SMBus/I2C Digital Temperature Sensor in 6-Pin SOT with SMBus Alert and Over Temperature Pin
36 - ad,ad7414 # Deprecated, use adi,ad7414
[all …]
/linux-6.12.1/Documentation/sound/cards/
Dcmipci.rst2 Brief Notes on C-Media 8338/8738/8768/8770 Driver
8 Front/Rear Multi-channel Playback
9 ---------------------------------
11 CM8x38 chip can use ADC as the second DAC so that two different stereo
13 DACs, both streams are handled independently unlike the 4/6ch multi-
22 - The first DAC supports U8 and S16LE formats, while the second DAC
24 - The second DAC supports only two channel stereo.
51 control switch in the driver "Line-In As Rear", which you can change
52 via alsamixer or somewhat else. When this switch is on, line-in jack
60 4/6 Multi-Channel Playback
[all …]
/linux-6.12.1/arch/arm64/boot/dts/amlogic/
Dmeson-g12b-odroid-go-ultra.dts1 // 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/sound/
Demu10k1.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
16 #include <sound/pcm-indirect.h>
25 /* ------------------- DEFINES -------------------- */
33 /* FIXME? - according to the OSS driver the EMU10K1 needs a 29 bit DMA mask */
41 // This is used to define hardware bit-fields (sub-registers) by combining
44 // The non-concatenating (_NC) variant should be used directly only for
45 // sub-registers that do not follow the <register>_<field> naming pattern.
55 // Macros for manipulating values of bit-fields declared using the above macros.
59 // single sub-register at a time.
62 #define REG_MASK0(r) ((1U << REG_SIZE(r)) - 1U)
[all …]
/linux-6.12.1/sound/pci/
Dens1370.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 /* Power-Management-Code ( CONFIG_PM )
11 * using https://www.kernel.org/doc/html/latest/sound/kernel-api/writing-an-alsa-driver.html
64 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
71 static bool joystick[SNDRV_CARDS]; variable
88 MODULE_PARM_DESC(joystick_port, "Joystick port address.");
90 module_param_array(joystick, bool, NULL, 0444);
91 MODULE_PARM_DESC(joystick, "Enable joystick.");
96 MODULE_PARM_DESC(spdif, "S/PDIF output (-1 = none, 0 = auto, 1 = force).");
111 #define CT5880REV_CT5880_D 0x03 /* ??? -jk */
[all …]
Dcs4281.c1 // SPDX-License-Identifier: GPL-2.0-or-later
29 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
119 #define BA0_DMR_SIZE20 (1<<20) /* Sample is 20-bit */
123 #define BA0_DMR_SIZE8 (1<<16) /* Sample is 8-bit */
129 #define BA0_DMR_AUTO (1<<4) /* Auto-Initialize */
214 #define BA0_SLT12O 0x041c /* Slot 12 GPIO Output Register for AC-Link */
218 #define BA0_SERMC_ODSEN2 (1<<25) /* On-Demand Support Enable ASDIN2 */
219 #define BA0_SERMC_ODSEN1 (1<<24) /* On-Demand Support Enable ASDIN1 */
240 #define BA0_SLT12M 0x045c /* Slot 12 Monitor Register for Primary AC-Link */
254 #define BA0_ACOSV_SLV(x) (1<<((x)-3))
[all …]
Dazt3328.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 /* "PU" == "power-up value", as tested on PCI168 PCI rev. 10
85 …REQ_SUSPECTED_66200 0x06 | SOUNDFORMAT_XTAL2 /* 66200 (13240 * 5); 64000 may have been nicer :-\ */
111 #define IDX_IO_TIMER_VALUE 0x60 /* found this timer area by pure luck :-) */
122 /* some IRQ bit in here might also be used to signal a power-management timer
150 * in case playback is active? Or is this driver-induced?
179 * --> FIFO/timing settings???) */
186 #define IDX_IO_6CH 0x6C /* unknown; fully read-writable */
228 /* enable to have the latch continuously accept ADC values
232 /* joystick data (measured axes) ready for reading: */
[all …]

12