Home
last modified time | relevance | path

Searched +full:accessory +full:- +full:mode +full:- +full:debug (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/include/linux/usb/
Dtypec_altmode.h1 /* 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 …]
Dtypec.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 /* USB Type-C Specification releases */
91 * struct enter_usb_data - Enter_USB Message details
95 * @active_link_training is a flag that should be set with uni-directional SBRX
96 * communication, and left 0 with passive cables and with bi-directional SBRX
105 * struct usb_pd_identity - USB Power Delivery identity data
127 * struct typec_altmode_desc - USB Type-C Alternate Mode Descriptor
129 * @mode: Index of the Mode
131 * @roles: Only for ports. DRP if the mode is available in both roles
133 * Description of an Alternate Mode which a connector, cable plug or partner
[all …]
/linux-6.12.1/drivers/extcon/
Dextcon-usbc-tusb320.c1 // SPDX-License-Identifier: GPL-2.0
3 * drivers/extcon/extcon-tusb320.c - TUSB320 extcon driver
10 #include <linux/extcon-provider.h>
70 int (*set_mode)(struct tusb320_priv *priv, enum tusb320_mode mode);
92 [TUSB320_ATTACHED_STATE_ACC] = "accessory",
108 ret = regmap_read(priv->regmap, sizeof(sig) - 1 - i, &val); in tusb320_check_signature()
112 dev_err(priv->dev, "signature mismatch!\n"); in tusb320_check_signature()
113 return -ENODEV; in tusb320_check_signature()
120 static int tusb320_set_mode(struct tusb320_priv *priv, enum tusb320_mode mode) in tusb320_set_mode() argument
124 /* Mode cannot be changed while cable is attached */ in tusb320_set_mode()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/connector/
Dusb-connector.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/connector/usb-connector.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rob Herring <robh@kernel.org>
20 - enum:
21 - usb-a-connector
22 - usb-b-connector
23 - usb-c-connector
25 - items:
[all …]
/linux-6.12.1/drivers/usb/typec/
Dclass.c1 // SPDX-License-Identifier: GPL-2.0
3 * USB Type-C Connector Class
28 /* ------------------------------------------------------------------------- */
34 [TYPEC_ACCESSORY_DEBUG] = "debug",
65 return partner->identity; in get_pd_identity()
69 return cable->identity; in get_pd_identity()
76 struct typec_port *port = to_typec_port(dev->parent); in get_pd_product_type()
84 if (port->data_role == TYPEC_HOST) in get_pd_product_type()
85 ptype = product_type_ufp[PD_IDH_PTYPE(id->id_header)]; in get_pd_product_type()
87 ptype = product_type_dfp[PD_IDH_DFP_PTYPE(id->id_header)]; in get_pd_product_type()
[all …]
Danx7411.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Driver for Analogix ANX7411 USB Type-C and PD controller
337 int mode; in anx7411_detect_power_mode() local
339 ret = anx7411_reg_read(ctx->spi_client, REQUEST_CURRENT); in anx7411_detect_power_mode()
343 ctx->typec.request_current = ret * CURRENT_UNIT; /* 50ma per unit */ in anx7411_detect_power_mode()
345 ret = anx7411_reg_read(ctx->spi_client, REQUEST_VOLTAGE); in anx7411_detect_power_mode()
349 ctx->typec.request_voltage = ret * VOLTAGE_UNIT; /* 100mv per unit */ in anx7411_detect_power_mode()
351 if (ctx->psy_online == ANX7411_PSY_OFFLINE) { in anx7411_detect_power_mode()
352 ctx->psy_online = ANX7411_PSY_FIXED_ONLINE; in anx7411_detect_power_mode()
353 ctx->usb_type = POWER_SUPPLY_USB_TYPE_PD; in anx7411_detect_power_mode()
[all …]
/linux-6.12.1/include/linux/platform_data/
Dcros_ec_commands.h1 /* SPDX-License-Identifier: GPL-2.0-only */
7 * NOTE: This file is auto-generated from ChromeOS EC Open Source code from
52 * The actual block is 0x800-0x8ff, but some BIOSes think it's 0x880-0x8ff
68 #define EC_LPC_CMDR_ACPI_BRST BIT(4) /* Burst mode (not used) */
77 #define EC_MEMMAP_TEMP_SENSOR 0x00 /* Temp sensors 0x00 - 0x0f */
78 #define EC_MEMMAP_FAN 0x10 /* Fan speeds 0x10 - 0x17 */
79 #define EC_MEMMAP_TEMP_SENSOR_B 0x18 /* More temp sensors 0x18 - 0x1f */
81 #define EC_MEMMAP_ID_VERSION 0x22 /* Version of data in 0x20 - 0x2f */
82 #define EC_MEMMAP_THERMAL_VERSION 0x23 /* Version of data in 0x00 - 0x1f */
83 #define EC_MEMMAP_BATTERY_VERSION 0x24 /* Version of data in 0x40 - 0x7f */
[all …]
/linux-6.12.1/drivers/usb/typec/tcpm/
Dtcpm.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2015-2017 Google, Inc
210 VDM_STATE_ERR_BUSY = -3,
211 VDM_STATE_ERR_SEND = -2,
212 VDM_STATE_ERR_TMOUT = -1,
240 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0,
263 /* Alternate mode support */
289 * @active: PPS mode is active
479 /* Alternate mode data */
510 * SNK_READY for non-pd link.
[all …]
/linux-6.12.1/sound/soc/codecs/
Dwm8994.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8994.c -- WM8994 ALSA SoC Audio driver
5 * Copyright 2009-12 Wolfson Microelectronics plc
114 struct wm8994 *control = wm8994->wm8994; in wm8958_micd_set_rate()
120 idle = !wm8994->jack_mic; in wm8958_micd_set_rate()
124 sysclk = wm8994->aifclk[1]; in wm8958_micd_set_rate()
126 sysclk = wm8994->aifclk[0]; in wm8958_micd_set_rate()
128 if (control->pdata.micd_rates) { in wm8958_micd_set_rate()
129 rates = control->pdata.micd_rates; in wm8958_micd_set_rate()
130 num_rates = control->pdata.num_micd_rates; in wm8958_micd_set_rate()
[all …]