Home
last modified time | relevance | path

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

12

/openbmc/linux/Documentation/devicetree/bindings/input/
H A 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 …]
/openbmc/linux/drivers/input/joystick/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/linux/arch/arm64/boot/dts/rockchip/
H A 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 …]
H A 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 …]
H A 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 …]
H A Drk3566-anbernic-rgxx3.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>
14 stdout-path = "serial2:1500000n8";
17 adc-joystick {
18 compatible = "adc-joystick";
[all …]
/openbmc/linux/Documentation/input/
H A 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 …]
/openbmc/u-boot/arch/arm/dts/
H A Dat91sam9m10g45ek.dts2 * at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board
9 /dts-v1/;
11 #include <dt-bindings/pwm/pwm.h>
14 model = "Atmel AT91SAM9M10G45-EK";
19 stdout-path = "serial0:115200n8";
20 u-boot,dm-pre-reloc;
29 clock-frequency = <32768>;
33 clock-frequency = <12000000>;
41 u-boot,dm-pre-reloc;
45 pinctrl-0 =
[all …]
/openbmc/linux/arch/arm/boot/dts/microchip/
H A 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 …]
/openbmc/linux/arch/arm/boot/dts/nxp/lpc/
H A 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 …]
/openbmc/linux/Documentation/devicetree/bindings/
H A 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-ma
[all...]
/openbmc/linux/Documentation/sound/cards/
H A 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 …]
/openbmc/linux/arch/arm64/boot/dts/amlogic/
H A 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 …]
/openbmc/linux/include/sound/
H A 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 …]
/openbmc/linux/sound/pci/
H A 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 …]
H A 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 …]
H A 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 …]
H A Dcmipci.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for C-Media CMI8338 and 8738 PCI soundcards.
31 MODULE_DESCRIPTION("C-Media CMI8x38 PCI");
38 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
41 static long mpu_port[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = 1};
42 static long fm_port[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)]=1};
43 static bool soft_ac3[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)]=1};
49 MODULE_PARM_DESC(index, "Index value for C-Media PCI soundcard.");
51 MODULE_PARM_DESC(id, "ID string for C-Media PCI soundcard.");
53 MODULE_PARM_DESC(enable, "Enable C-Media PCI soundcard.");
[all …]
H A Dsonicvibes.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 #include <linux/dma-mapping.h>
37 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
61 #define SV_REG(sonic, x) ((sonic)->enh_port + SV_REG_##x)
64 #define SV_ENHANCED 0x01 /* audio mode select - enhanced mode */
68 #define SV_INTA 0x20 /* INTA driving - should be always 1 */
71 #define SV_DMAA_MASK 0x01 /* mask DMA-A interrupt */
72 #define SV_DMAC_MASK 0x04 /* mask DMA-C interrupt */
73 #define SV_SPEC_MASK 0x08 /* special interrupt mask - should be always masked */
77 #define SV_DMAA_IRQ 0x01 /* DMA-A interrupt */
[all …]
/openbmc/qemu/hw/audio/
H A Des1370.c53 Copyright (C) 1998-2001, 2003 Thomas Sailer (t.sailer@alumni.ethz.ch)
82 #define DAC2_SRTODIV(x) (((1411200+(x)/2)/(x))-2)
85 #define CTRL_ADC_STOP 0x80000000 /* 1 = ADC stopped */
88 #define CTRL_PCLKDIV 0x1fff0000 /* ADC/DAC2 clock divider */
96 #define CTRL_M_CB 0x00000200 /* recording source: 0 = ADC, 1 = MPEG */
101 #define CTRL_ADC_EN 0x00000010 /* enable ADC */
103 #define CTRL_JYSTK_EN 0x00000004 /* enable Joystick port (presumably at address 0x200) */
111 #define STAT_VC 0x00000060 /* CCB int source, 0=DAC1, 1=DAC2, 2=ADC, 3=undef */
117 #define STAT_ADC 0x00000001 /* ADC int pending */
193 AUD_log("es1370", "ctl - PCLKDIV %d(DAC2 freq %d), freq %d,%s\n", in print_ctl()
[all …]
/openbmc/linux/sound/pci/trident/
H A Dtrident.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
29 #define SNDRV_TRIDENT_PAGE_MASK ((1<<SNDRV_TRIDENT_PAGE_SHIFT)-1)
36 #define TRID_REG(trident, x) ((trident)->port + (x))
81 #define LEGACY_DMAR6 0x06 // CNT0 - High bits
107 /* MPU-401 UART */
120 /* Joystick */
146 /* AC-97 Registers */
166 /* ACR1-3 */
229 #define T4D_DEFAULT_PCM_VOL 10 /* 0 - 255 */
230 #define T4D_DEFAULT_PCM_PAN 0 /* 0 - 127 */
[all …]
/openbmc/linux/sound/pci/emu10k1/
H A Demu10k1_main.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * James Courtier-Dutton <James@superbug.co.uk>
85 if (emu->audigy) { in snd_emu10k1_voice_init()
128 { 0x0e, 0xcf }, /* Attenuation Left 0x01 = -103dB, 0xff = 24dB */
135 { 0x15, ADC_MUX_2 }, /* ADC Mixer control. Mic for A2ZS Notebook */
146 HCFG_MUTEBUTTONENABLE, emu->port + HCFG); in snd_emu10k1_init()
148 outl(0, emu->port + INTE); in snd_emu10k1_init()
169 if (emu->audigy) { in snd_emu10k1_init()
182 SPCS0, emu->spdif_bits[0], in snd_emu10k1_init()
183 SPCS1, emu->spdif_bits[1], in snd_emu10k1_init()
[all …]

12