Home
last modified time | relevance | path

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

123

/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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
19 const: adc-joystick
21 io-channels:
[all …]
/kernel/linux/linux-6.6/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>
37 for (i = 0; i < joy->num_chans; i++) { in adc_joystick_poll()
38 ret = iio_read_channel_raw(&joy->chans[i], &val); in adc_joystick_poll()
41 input_report_abs(input, joy->axes[i].code, val); in adc_joystick_poll()
54 bytes = joy->chans[0].channel->scan_type.storagebits >> 3; in adc_joystick_handle()
56 for (i = 0; i < joy->num_chans; ++i) { in adc_joystick_handle()
57 idx = joy->chans[i].channel->scan_index; in adc_joystick_handle()
58 endianness = joy->chans[i].channel->scan_type.endianness; in adc_joystick_handle()
[all …]
/kernel/linux/linux-5.10/drivers/input/joystick/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # Joystick driver configuration
8 If you have a joystick, 6dof controller, gamepad, steering wheel,
13 Please read the file <file:Documentation/input/joydev/joystick.rst> which
22 Say Y here if you have a joystick that connects to the PC
23 gameport. In addition to the usual PC analog joystick, this driver
29 Please read the file <file:Documentation/input/joydev/joystick.rst> which
46 tristate "Simple joystick connected over ADC"
51 Say Y here if you have a simple joystick connected over ADC.
54 module will be called adc-joystick.
[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
20 #define DRIVER_DESC "FP-Gaming Assassin 3D joystick driver"
35 static char *a3d_names[] = { NULL, "FP-Gaming Assassin 3D", "MadCatz Panther", "OEM Panther",
40 struct gameport *adc; member
71 t--; in a3d_read_packet()
92 for (i = 0; i < count - 2; i++) in a3d_csum()
94 return (csum & 0x3f) != ((data[count - 2] << 3) | data[count - 1]); in a3d_csum()
99 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>
39 bytes = joy->chans[0].channel->scan_type.storagebits >> 3; in adc_joystick_handle()
41 for (i = 0; i < joy->num_chans; ++i) { in adc_joystick_handle()
42 idx = joy->chans[i].channel->scan_index; in adc_joystick_handle()
43 endianness = joy->chans[i].channel->scan_type.endianness; in adc_joystick_handle()
44 msb = joy->chans[i].channel->scan_type.realbits - 1; in adc_joystick_handle()
45 sign = tolower(joy->chans[i].channel->scan_type.sign) == 's'; in adc_joystick_handle()
66 return -EINVAL; in adc_joystick_handle()
[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 …]
/kernel/linux/linux-6.6/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-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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
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 …]
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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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
31 - enum:
33 - acbel,fsg032
34 … # SMBus/I2C Digital Temperature Sensor in 6-Pin SOT with SMBus Alert and Over Temperature Pin
35 - ad,ad7414
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/include/sound/
Demu10k1.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
16 #include <sound/pcm-indirect.h>
25 /* ------------------- DEFINES -------------------- */
37 /* FIXME? - according to the OSS driver the EMU10K1 needs a 29 bit DMA mask */
55 #define PTR_CHANNELNUM_MASK 0x0000003f /* For each per-channel register, indicates the */
57 /* accessed. For non per-channel registers the */
88 #define IPR_ADCBUFFULL 0x00008000 /* ADC buffer full */
89 #define IPR_ADCBUFHALFFULL 0x00004000 /* ADC buffer half full */
93 #define IPR_CDROMSTATUSCHANGE 0x00000400 /* CD-ROM channel status change */
106 #define INTE_VIRTUALSB_220 0x00000000 /* Capture at I/O base address 0x220-0x22f */
[all …]
/kernel/linux/linux-6.6/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 …]

123