/linux/Documentation/devicetree/bindings/usb/ |
H A D | qcom,wcd939x-usbss.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/usb/qcom,wcd939x-usbss.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Qualcomm WCD9380/WCD9385 USB SubSystem Altmode/Analog Audio Switch 10 - Neil Armstrong <neil.armstrong@linaro.org> 13 Qualcomm WCD9390/WCD9395 is a standalone Hi-Fi audio codec IC with a 14 functionally separate USB SubSystem for Altmode/Analog Audio Switch 16 The Audio Headphone and Microphone data path between the Codec and the 17 USB-C Mux subsystems are external to the IC, thus requiring DT port-endpoint [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | qcom,wcd939x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Qualcomm WCD9380/WCD9385 Audio Codec 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 13 Qualcomm WCD9390/WCD9395 Codec is a standalone Hi-Fi audio codec IC. 15 The WCD9390/WCD9395 IC has a functionally separate USB-C Mux subsystem 17 The Audio Headphone and Microphone data path between the Codec and the USB-C Mux 18 subsystems are external to the IC, thus requiring DT port-endpoint graph description 19 to handle USB-C altmode & orientation switching for Audio Accessory Mode. [all …]
|
/linux/drivers/extcon/ |
H A D | extcon-max77693.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // extcon-max77693.c - MAX77693 extcon driver to support MAX77693 MUIC 8 #include <linux/devm-helpers.h> 18 #include <linux/mfd/max77693-common.h> 19 #include <linux/mfd/max77693-private.h> 20 #include <linux/extcon-provider.h> 24 #define DEV_NAME "max77693-muic" 30 * extcon-max77693 driver use 'default_init_data' to bring up base operation 35 /* STATUS2 - [3]ChgDetRun */ 39 /* INTMASK1 - Unmask [3]ADC1KM,[0]ADCM */ [all …]
|
H A D | extcon-rt8973a.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * extcon-rt8973a.c - Richtek RT8973A extcon driver to support USB switches 19 #include <linux/extcon-provider.h> 21 #include "extcon-rt8973a.h" 106 /* Define supported accessory type */ 143 * So, Device type1 is used to separate specific accessory. 145 /* |---------|--ADC| */ 152 { RT8973A_INT1_ATTACH, "muic-attach" }, 153 { RT8973A_INT1_DETACH, "muic-detach" }, 154 { RT8973A_INT1_CHGDET, "muic-chgdet" }, [all …]
|
/linux/include/linux/usb/ |
H A D | typec_altmode.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 * struct typec_altmode - USB Type-C alternate mode device 17 * @svid: Standard or Vendor ID (SVID) of the alternate mode 18 * @mode: Index of the Mode 20 * @active: Tells has the mode been entered or not 21 * @desc: Optional human readable description of the mode 28 int mode; member 42 dev_set_drvdata(&altmode->dev, data); in typec_altmode_set_drvdata() 47 return dev_get_drvdata(&altmode->dev); in typec_altmode_get_drvdata() 51 * struct typec_altmode_ops - Alternate mode specific operations vector [all …]
|
/linux/Documentation/devicetree/bindings/extcon/ |
H A D | wlf,arizona.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs 10 - patches@opensource.cirrus.com 13 These devices are audio SoCs with extensive digital capabilities and a 20 wlf,hpdet-channel: 23 headphone detect mode to HPDETL, ARIZONA_ACCDET_MODE_HPR/2 sets it 25 then headphone detection mode is set to HPDETL. 30 wlf,use-jd2: [all …]
|
/linux/drivers/usb/typec/mux/ |
H A D | fsa4480.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2021-2022 Linaro Ltd. 4 * Copyright (C) 2018-2020 The Linux Foundation 64 unsigned long mode; member 75 /* Accesses only done under fsa4480->lock */ 81 bool reverse = (fsa->orientation == TYPEC_ORIENTATION_REVERSE); in fsa4480_set() 85 if (fsa->swap_sbu_lanes) in fsa4480_set() 88 /* USB Mode */ in fsa4480_set() 89 if (fsa->mode < TYPEC_STATE_MODAL || in fsa4480_set() 90 (!fsa->svid && (fsa->mode == TYPEC_MODE_USB2 || in fsa4480_set() [all …]
|
H A D | wcd939x-usbss.c | 1 // SPDX-License-Identifier: GPL-2.0-only 72 #define WCD_USBSS_SWITCH_SELECT0_DP_AUXP_SWITCHES BIT(7) /* 1-> MG2 */ 73 #define WCD_USBSS_SWITCH_SELECT0_DP_AUXM_SWITCHES BIT(6) /* 1-> MG2 */ 76 #define WCD_USBSS_SWITCH_SELECT0_SENSE_SWITCHES BIT(1) /* 1-> SBU2 */ 77 #define WCD_USBSS_SWITCH_SELECT0_MIC_SWITCHES BIT(0) /* 1-> MG2 */ 89 #define WCD_USBSS_SWITCH_SELECT1_AGND_SWITCHES BIT(0) /* 1-> MG2 */ 198 unsigned long mode; member 242 bool reverse = (usbss->orientation == TYPEC_ORIENTATION_REVERSE); in wcd939x_usbss_set() 248 /* USB Mode */ in wcd939x_usbss_set() 249 if (usbss->mode < TYPEC_STATE_MODAL || in wcd939x_usbss_set() [all …]
|
/linux/drivers/hid/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 22 most commonly used to refer to the USB-HID specification, but other 27 removed from the HID bus by the transport-layer drivers, such as 58 to work on raw hid events when they want to, and avoid using transport-specific 64 tristate "User-space I/O driver support for HID subsystem" 67 Say Y here if you want to provide HID I/O Drivers from user-space. 68 This allows to write I/O drivers in user-space and feed the data from 71 user-space device. 73 This driver cannot be used to parse HID-reports in user-space and write 74 special HID-drivers. You should use hidraw for that. [all …]
|
/linux/sound/soc/codecs/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 # setting - SPI can't be modular so that case doesn't need to be covered. 498 tristate "Analog Devices AU1761 CODEC - I2C" 504 tristate "Analog Devices AU1761 CODEC - SPI" 541 tristate "Analog Devices ADAU7002 Stereo PDM-to-I2S/TDM Converter" 547 tristate "Analog Devices ADAU7118 8 Channel PDM-t [all...] |
H A D | wm8996.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8996.c - WM8996 audio codec interface 5 * Copyright 2011-2 Wolfson Microelectronics PLC. 108 regcache_mark_dirty(wm8996->regmap); \ 299 static const DECLARE_TLV_DB_SCALE(sidetone_tlv, -360 [all...] |
H A D | wm5100-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm5100-tables.c -- WM5100 ALSA SoC Audio driver data 5 * Copyright 2011-2 Wolfson Microelectronics plc 815 { 0x0000, 0x0000 }, /* R0 - software reset */ 816 { 0x0001, 0x0000 }, /* R1 - Device Revision */ 817 { 0x0010, 0x0801 }, /* R16 - Ctrl IF 1 */ 818 { 0x0020, 0x0000 }, /* R32 - Tone Generator 1 */ 819 { 0x0030, 0x0000 }, /* R48 - PWM Drive 1 */ 820 { 0x0031, 0x0100 }, /* R49 - PWM Drive 2 */ 821 { 0x0032, 0x0100 }, /* R50 - PWM Drive 3 */ [all …]
|
H A D | wm5100.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm5100.c -- WM5100 ALSA SoC Audio driver 5 * Copyright 2011-2 Wolfson Microelectronics plc 130 dev_err(component->dev, "Unsupported sample rate: %dHz\n", rate); in wm5100_alloc_sr() 131 return -EINVAL; in wm5100_alloc_sr() 135 if ((wm5100->sysclk % rate) == 0) { in wm5100_alloc_sr() 137 sr_free = -1; in wm5100_alloc_sr() 139 if (!wm5100->sr_ref[i] && sr_free == -1) { in wm5100_alloc_sr() 149 wm5100->sr_ref[i]++; in wm5100_alloc_sr() 150 dev_dbg(component->dev, "SR %dHz, slot %d, ref %d\n", in wm5100_alloc_sr() [all …]
|
H A D | wm5100.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * wm5100.h -- WM5100 ALSA SoC Audio driver 891 * R0 (0x00) - software reset 893 #define WM5100_SW_RST_DEV_ID1_MASK 0xFFFF /* SW_RST_DEV_ID1 - [15:0] */ 894 #define WM5100_SW_RST_DEV_ID1_SHIFT 0 /* SW_RST_DEV_ID1 - [15:0] */ 895 #define WM5100_SW_RST_DEV_ID1_WIDTH 16 /* SW_RST_DEV_ID1 - [15:0] */ 898 * R1 (0x01) - Device Revision 900 #define WM5100_DEVICE_REVISION_MASK 0x000F /* DEVICE_REVISION - [3:0] */ 901 #define WM5100_DEVICE_REVISION_SHIFT 0 /* DEVICE_REVISION - [3:0] */ 902 #define WM5100_DEVICE_REVISION_WIDTH 4 /* DEVICE_REVISION - [3:0] */ [all …]
|
H A D | wm8996.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * wm8996.h - WM8996 audio codec interface 744 * R0 (0x00) - Software Reset 746 #define WM8996_SW_RESET_MASK 0xFFFF /* SW_RESET - [15:0] */ 747 #define WM8996_SW_RESET_SHIFT 0 /* SW_RESET - [15:0] */ 748 #define WM8996_SW_RESET_WIDTH 16 /* SW_RESET - [15:0] */ 751 * R1 (0x01) - Power Management (1) 783 * R2 (0x02) - Power Management (2) 803 * R3 (0x03) - Power Management (3) 847 * R4 (0x04) - Power Management (4) [all …]
|
/linux/sound/usb/ |
H A D | card.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * (Tentative) USB Audio Driver for ALSA 7 * Many codes borrowed from audio.c by 11 * Audio Class 3.0 support by Ruslan Bilovol <ruslan.bilovol@gmail.com> 15 * - the linked URBs would be preferred but not used so far because of 17 * - typ [all...] |
/linux/drivers/mfd/ |
H A D | twl4030-irq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * twl4030-irq.c - TWL4030/TPS659x0 irq support 5 * Copyright (C) 2005-2006 Texas Instruments, Inc. 26 #include "twl-core.h" 32 * SIH modules are more traditional IRQ components, which support per-IRQ 39 * We set up IRQs starting at a platform-specified base, always starting 70 /* SIR ignored -- set interrupt, for testing only */ 117 /* Note: *all* of these IRQs default to no-trigger */ 142 /* Note: most of these IRQs default to no-trigger */ 177 /* Note: *all* of these IRQs default to no-trigger */ [all …]
|
/linux/drivers/usb/typec/tcpm/ |
H A D | tcpm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2015-2017 Google, Inc 213 VDM_STATE_ERR_BUSY = -3, 214 VDM_STATE_ERR_SEND = -2, 215 VDM_STATE_ERR_TMOUT = -1, 244 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, 267 /* Alternate mode support */ 293 * @active: PPS mode is active 506 /* Alternate mode data */ 537 * SNK_READY for non-pd link. [all …]
|