| /linux/drivers/phy/ti/ |
| H A D | phy-omap-usb2.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * omap-usb2.c - USB PHY, talking to USB controller on TI SoCs. 5 * Copyright (C) 2012-2020 Texas Instruments Incorporated - http://www.ti.com 26 #include <linux/usb/phy_companion.h> 56 struct phy_companion *comparator; member 93 * omap_usb2_set_comparator() - links the comparator present in the system with this phy 95 * @comparator: the companion phy(comparator) for this phy 98 * filled with set_vbus and start_srp to be used by usb phy. 102 int omap_usb2_set_comparator(struct phy_companion *comparator) in omap_usb2_set_comparator() argument 108 return -ENODEV; in omap_usb2_set_comparator() [all …]
|
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 tristate "TI DA8xx USB PHY Driver" 11 Enable this to support the USB PHY on DA8xx SoCs. 13 This driver controls both the USB 1.1 PHY and the USB 2.0 PHY. 16 tristate "TI dm816x USB PHY driver" 22 Enable this for dm816x USB to work. 72 driver takes care of all the PHY functionality apart from comparator. 73 The USB OTG controller communicates with the comparator using this 83 driver takes care of all the PHY functionality apart from comparator. 92 Support for TI TUSB1210 USB ULPI PHY. [all …]
|
| /linux/include/linux/mfd/wm8350/ |
| H A D | comparator.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * comparator.h -- Comparator Aux ADC for Wolfson WM8350 PMIC 29 * R144 (0x90) - Digitiser Control (1) 44 * R145 (0x91) - Digitiser Control (2) 53 * R152 (0x98) - AUX1 Readback 60 * R153 (0x99) - AUX2 Readback 67 * R154 (0x9A) - AUX3 Readback 74 * R155 (0x9B) - AUX4 Readback 81 * R156 (0x9C) - USB Voltage Readback 86 * R157 (0x9D) - LINE Voltage Readback [all …]
|
| /linux/Documentation/devicetree/bindings/extcon/ |
| H A D | extcon-palmas.txt | 3 PALMAS USB COMPARATOR 5 - compatible: should contain one of: 6 * "ti,palmas-usb-vid". 7 * "ti,twl6035-usb-vid". 8 * "ti,palmas-usb" (DEPRECATED - use "ti,palmas-usb-vid"). 9 * "ti,twl6035-usb" (DEPRECATED - use "ti,twl6035-usb-vid"). 12 - ti,wakeup : To enable the wakeup comparator in probe 13 - ti,enable-id-detection: Perform ID detection. If id-gpio is specified 14 it performs id-detection using GPIO else using OTG core. 15 - ti,enable-vbus-detection: Perform VBUS detection. [all …]
|
| /linux/drivers/power/supply/ |
| H A D | cpcap-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * Copyright (C) 2009-2010 Motorola, Inc. 27 #include <linux/usb/phy_companion.h> 29 #include <linux/usb/otg.h> 31 #include <linux/mfd/motorola-cpcap.h> 38 * similar. Also see the Motorola Linux kernel cpcap-regbits.h. CPCAP_REG_CHRGR_1 44 #define CPCAP_REG_CRM_RVRSMODE BIT(12) /* USB VBUS output enable */ 90 * values in "Table 8-3. Charge Path Regulator Current Limit 135 struct power_supply *usb; member 137 struct phy_companion comparator; /* For USB VBUS */ member [all …]
|
| H A D | wm8350_power.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #include <linux/mfd/wm8350/comparator.h> 44 if (!wm8350->power.rev_g_coeff) in wm8350_charge_time_min() 45 return (((min - 30) / 15) & 0xf) << 8; in wm8350_charge_time_min() 47 return (((min - 30) / 30) & 0xf) << 8; in wm8350_charge_time_min() 66 /* If the USB state machine is active then we're using that with or in wm8350_get_supplies() 92 dev_warn(wm8350->dev, in wm8350_charger_config() 94 return -EINVAL; in wm8350_charger_config() 97 /* make sure USB fast charge current is not > 500mA */ in wm8350_charger_config() 98 if (policy->fast_limit_USB_mA > 500) { in wm8350_charger_config() [all …]
|
| /linux/include/linux/phy/ |
| H A D | omap_usb.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * omap_usb.h -- omap usb2 phy header file 5 * Copyright (C) 2012-2020 Texas Instruments Incorporated - http://www.ti.com 12 #include <linux/usb/phy_companion.h> 17 extern int omap_usb2_set_comparator(struct phy_companion *comparator); 19 static inline int omap_usb2_set_comparator(struct phy_companion *comparator) in omap_usb2_set_comparator() argument 21 return -ENODEV; in omap_usb2_set_comparator()
|
| /linux/include/linux/usb/ |
| H A D | phy_companion.h | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * phy-companion.h -- phy companion to indicate the comparator part of PHY 5 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com 13 #include <linux/usb/otg.h> 18 /* effective for A-peripheral, ignored for B devices */ 21 /* for B devices only: start session with A-Host */
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | twl6030.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/ 12 interrupt-controller; 13 #interrupt-cells = <1>; 16 compatible = "ti,twl4030-rtc"; 20 vaux1: regulator-vaux1 { 21 compatible = "ti,twl6030-vaux1"; 22 regulator-min-microvolt = <1000000>; 23 regulator-max-microvolt = <3000000>; 26 vaux2: regulator-vaux2 { [all …]
|
| /linux/drivers/mfd/ |
| H A D | wm8350-regmap.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8350-regmap.c -- Wolfson Microelectronics WM8350 register map 23 { 0xFFFF, 0xFFFF, 0x0000 }, /* R0 - Reset/ID */ 24 { 0x7CFF, 0x0C00, 0x0000 }, /* R1 - ID */ 25 { 0x007F, 0x0000, 0x0000 }, /* R2 - ROM Mask ID */ 26 { 0xBE3B, 0xBE3B, 0x8000 }, /* R3 - System Control 1 */ 27 { 0xFEF7, 0xFEF7, 0xF800 }, /* R4 - System Control 2 */ 28 { 0x80FF, 0x80FF, 0x8000 }, /* R5 - System Hibernate */ 29 { 0xFB0E, 0xFB0E, 0x0000 }, /* R6 - Interface Control */ 31 { 0xE537, 0xE537, 0xFFFF }, /* R8 - Power mgmt (1) */ [all …]
|
| /linux/drivers/hwmon/ |
| H A D | wm8350-hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/hwmon/wm8350-hwmon.c - Wolfson Microelectronics WM8350 PMIC 14 #include <linux/hwmon-sysfs.h> 17 #include <linux/mfd/wm8350/comparator.h> 20 [WM8350_AUXADC_USB] = "USB", 29 int channel = to_sensor_dev_attr(attr)->index; in show_voltage() 41 int channel = to_sensor_dev_attr(attr)->index; in show_label() 74 hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, "wm8350", in wm8350_hwmon_probe() 83 .name = "wm8350-hwmon", 92 MODULE_ALIAS("platform:wm8350-hwmon");
|
| /linux/drivers/usb/chipidea/ |
| H A D | usbmisc_imx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 #include <linux/usb/otg.h> 88 /* For imx6dql, it is host-only controller, for later imx6, it is otg's */ 106 /* The default DM/DP value is pull-down */ 172 /* It's called once when probe a usb device */ 174 /* It's called once after adding a usb device */ 176 /* It's called when we need to enable/disable usb wakeup */ 182 /* usb charger detection */ 184 /* It's called when system resume from usb power lost */ 203 struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev); in usbmisc_imx25_init() [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 20 system, battery and USB Vbus. 23 called 88pm886-gpadc. 26 bool "ST-Ericsson AB8500 GPADC driver" 33 and USB voltages integral to the U8500 platform. 98 high speed, low noise, low distortion, 20-bit, Easy Drive, 99 successive approximation register (SAR) analog-to-digital 114 Say yes here to build support for Analog Devices AD4130-8 SPI analog 133 tristate "Analog Device AD4170-4 ADC Driver" 141 Say yes here to build support for Analog Devices AD4170-4 SPI analog [all …]
|
| /linux/drivers/phy/samsung/ |
| H A D | phy-exynos5-usbdrd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Samsung Exynos5 SoC series USB DRD PHY driver 5 * Phy provider for USB 3.0 DRD controller on Exynos5 SoC series 25 #include <linux/soc/samsung/exynos-regs-pmu.h> 26 #include <linux/usb/typec.h> 27 #include <linux/usb/typec_mux.h> 29 /* Exynos USB PHY registers */ 39 /* USB 3.2 DRD 4nm PHY link controller registers */ 61 /* Exynos5: USB 3.0 DRD PHY registers */ 164 /* USB 3.0 DRD PHY SS Function Control Reg; accessed by CR_PORT */ [all …]
|
| /linux/drivers/usb/musb/ |
| H A D | tusb6010.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * TUSB6010 USB 2.0 OTG Dual Role controller 9 * - Driver assumes that interface to external host (main CPU) is 21 #include <linux/usb.h> 27 #include <linux/dma-mapping.h> 28 #include <linux/usb/usb_phy_generic.h> 51 void __iomem *tbase = musb->ctrl_base; in tusb_get_revision() 68 void __iomem *tbase = musb->ctrl_base; in tusb_print_revision() 71 rev = musb->tusb_revision; in tusb_print_revision() 96 * Workaround for spontaneous WBUS wake-up issue #2 for tusb3.0. [all …]
|
| /linux/drivers/media/usb/dvb-usb/ |
| H A D | dib0700_devices.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Linux driver for devices based on the DiBcom DiB0700 USB bridge 4 * Copyright (C) 2005-9 DiBcom, SA et al 29 MODULE_PARM_DESC(force_lna_activation, "force the activation of Low-Noise-Amplifier(s) (LNA), if ap… 38 /* Hauppauge Nova-T 500 (aka Bristol) 87 struct dib0700_state *st = adap->dev->priv; in bristol_frontend_attach() 88 if (adap->id == 0) { in bristol_frontend_attach() 89 dib0700_set_gpio(adap->dev, GPIO6, GPIO_OUT, 0); msleep(10); in bristol_frontend_attach() 90 dib0700_set_gpio(adap->dev, GPIO6, GPIO_OUT, 1); msleep(10); in bristol_frontend_attach() 91 dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 0); msleep(10); in bristol_frontend_attach() [all …]
|
| /linux/include/linux/mfd/ |
| H A D | palmas.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright 2011-2013 Texas Instruments Inc. 14 #include <linux/usb/otg.h> 18 #include <linux/extcon-provider.h> 19 #include <linux/usb/phy_companion.h> 28 #define TPS65917_RESERVED -1 37 * PALMAS_PMIC_FEATURE_SMPS10_BOOST - used when the PMIC provides SMPS10_BOOST 40 * PALMAS_PMIC_HAS(b, f) - macro to check if a bandgap device is capable of a 41 * specific feature (above) or not. Return non-zero, if yes. 45 ((b)->features & PALMAS_PMIC_FEATURE_ ## f) [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | wcd939x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved. 25 #include <sound/soc-dapm.h> 27 #include <linux/usb/typec_mux.h> 28 #include <linux/usb/typec_altmode.h> 30 #include "wcd-clsh-v2.h" 31 #include "wcd-common.h" 32 #include "wcd-mbhc-v2.h" 215 "vdd-rxtx", "vdd-io", "vdd-buck", "vdd-mic-bias", "vdd-px", [all …]
|