Home
last modified time | relevance | path

Searched +full:usb +full:- +full:sdp (Results 1 – 25 of 55) sorted by relevance

123

/kernel/linux/linux-4.19/Documentation/devicetree/bindings/power/supply/
Dgpio-charger.txt1 gpio-charger
4 - compatible : "gpio-charger"
5 - gpios : GPIO indicating the charger presence.
7 - charger-type : power supply type, one of
12 usb-sdp (USB standard downstream port)
13 usb-dcp (USB dedicated charging port)
14 usb-cdp (USB charging downstream port)
15 usb-aca (USB accessory charger adapter)
20 compatible = "gpio-charger";
21 charger-type = "usb-sdp";
[all …]
Dbq24190.txt1 TI BQ24190 Li-Ion Battery Charger
4 - compatible: contains one of the following:
7 - reg: integer, I2C address of the charger.
8 - interrupts[-extended]: configuration for charger INT pin.
11 - monitored-battery: phandle of battery characteristics devicetree node
13 + precharge-current-microamp: maximum charge current during precharge
15 + charge-term-current-microamp: a charge cycle terminates when the
19 - ti,system-minimum-microvolt: when power is connected and the battery is below
23 - Some circuit boards wire the chip's "OTG" pin high (enabling 500mA default
24 charge current on USB SDP ports, among other features). To simulate this on
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dgpio-charger.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/gpio-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
19 const: gpio-charger
21 charger-type:
23 - unknown
24 - battery
25 - ups
[all …]
Dcharger-manager.txt1 charger-manager bindings
5 - compatible : "charger-manager"
6 - <>-supply : for regulator consumer, named according to cm-regulator-name
7 - cm-chargers : name of chargers
8 - cm-fuel-gauge : name of battery fuel gauge
9 - subnode <regulator> :
10 - cm-regulator-name : name of charger regulator
11 - subnode <cable> :
12 - cm-cable-name : name of charger cable - one of USB, USB-HOST,
13 SDP, DCP, CDP, ACA, FAST-CHARGER, SLOW-CHARGER, WPT,
[all …]
Dbq24190.txt1 TI BQ24190 Li-Ion Battery Charger
4 - compatible: contains one of the following:
9 - reg: integer, I2C address of the charger.
10 - interrupts[-extended]: configuration for charger INT pin.
13 - monitored-battery: phandle of battery characteristics devicetree node
15 + precharge-current-microamp: maximum charge current during precharge
17 + charge-term-current-microamp: a charge cycle terminates when the
21 - ti,system-minimum-microvolt: when power is connected and the battery is below
25 - usb-otg-vbus:
28 either USB host mode or for charging on the OTG port.
[all …]
/kernel/linux/linux-4.19/drivers/usb/phy/
Dphy.c1 // SPDX-License-Identifier: GPL-2.0+
3 * phy.c -- USB phy handling
5 * Copyright (C) 2004-2013 Texas Instruments
15 #include <linux/usb/phy.h>
43 if (phy->type != type) in __usb_find_phy()
49 return ERR_PTR(-ENODEV); in __usb_find_phy()
57 return ERR_PTR(-ENODEV); in __of_usb_find_phy()
60 if (node != phy->dev->of_node) in __of_usb_find_phy()
66 return ERR_PTR(-EPROBE_DEFER); in __of_usb_find_phy()
71 usb_phy->chg_cur.sdp_min = DEFAULT_SDP_CUR_MIN; in usb_phy_set_default_current()
[all …]
/kernel/linux/linux-5.10/drivers/usb/phy/
Dphy.c1 // SPDX-License-Identifier: GPL-2.0+
3 * phy.c -- USB phy handling
5 * Copyright (C) 2004-2013 Texas Instruments
15 #include <linux/usb/phy.h>
51 if (phy->type != type) in __usb_find_phy()
57 return ERR_PTR(-ENODEV); in __usb_find_phy()
65 return ERR_PTR(-ENODEV); in __of_usb_find_phy()
68 if (node != phy->dev->of_node) in __of_usb_find_phy()
74 return ERR_PTR(-EPROBE_DEFER); in __of_usb_find_phy()
79 usb_phy->chg_cur.sdp_min = DEFAULT_SDP_CUR_MIN; in usb_phy_set_default_current()
[all …]
/kernel/linux/linux-4.19/drivers/scsi/
Dsd.c9 * - Drew Eckhardt <drew@colorado.edu> original
10 * - Eric Youngdale <eric@andante.org> add scatter-gather, multiple
12 * Support loadable low-level scsi drivers.
13 * - Jirka Hanika <geo@ff.cuni.cz> support more scsi disks using
15 * - Richard Gooch <rgooch@atnf.csiro.au> support devfs.
16 * - Torben Mathiasen <tmm@image.dk> Resource allocation fixes in
18 * - Alex Davis <letmein@erols.com> Fix problem where partition info
21 * - Douglas Gilbert <dgilbert@interlog.com> cleanup for lk 2.5.x
22 * - Badari Pulavarty <pbadari@us.ibm.com>, Matthew Wilcox
27 * - setting up transfer: SCSI_LOG_HLQUEUE levels 1 and 2
[all …]
/kernel/linux/linux-5.10/drivers/scsi/
Dsd.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * - Drew Eckhardt <drew@colorado.edu> original
11 * - Eric Youngdale <eric@andante.org> add scatter-gather, multiple
13 * Support loadable low-level scsi drivers.
14 * - Jirka Hanika <geo@ff.cuni.cz> support more scsi disks using
16 * - Richard Gooch <rgooch@atnf.csiro.au> support devfs.
17 * - Torben Mathiasen <tmm@image.dk> Resource allocation fixes in
19 * - Alex Davis <letmein@erols.com> Fix problem where partition info
22 * - Douglas Gilbert <dgilbert@interlog.com> cleanup for lk 2.5.x
23 * - Badari Pulavarty <pbadari@us.ibm.com>, Matthew Wilcox
[all …]
/kernel/linux/linux-5.10/drivers/extcon/
Dextcon-intel-cht-wc.c1 // SPDX-License-Identifier: GPL-2.0
7 * Copyright (C) 2013-2015 Intel Corporation. All rights reserved.
10 #include <linux/extcon-provider.h>
20 #include "extcon-intel.h"
63 /* 0 - open drain, 1 - regular push-pull output */
65 /* 0 - pin is controlled by SW, 1 - by HW */
135 ret = regmap_read(ext->regmap, CHT_WC_USBSRC, &usbsrc); in cht_wc_extcon_get_charger()
137 dev_err(ext->dev, "Error reading usbsrc: %d\n", ret); in cht_wc_extcon_get_charger()
154 dev_warn(ext->dev, "Could not detect charger type\n"); in cht_wc_extcon_get_charger()
156 dev_warn(ext->dev, "Timeout detecting charger type\n"); in cht_wc_extcon_get_charger()
[all …]
Dextcon-axp288.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * extcon-axp288.c - X-Power AXP288 PMIC extcon cable detection driver
5 * Copyright (c) 2017-2018 Hans de Goede <hdegoede@redhat.com>
19 #include <linux/extcon-provider.h>
22 #include <linux/usb/role.h>
26 #include <asm/intel-family.h>
52 /* BC USB status register */
136 ret = regmap_read(info->regmap, AXP288_PS_BOOT_REASON_REG, &val); in axp288_extcon_log_rsi()
138 dev_err(info->dev, "failed to read reset source indicator\n"); in axp288_extcon_log_rsi()
142 bits = val & GENMASK(ARRAY_SIZE(axp288_pwr_up_down_info) - 1, 0); in axp288_extcon_log_rsi()
[all …]
/kernel/linux/linux-4.19/Documentation/scsi/
Dscsi_mid_low_api.txt2 SCSI mid_level - lower_level driver interface
12 (SCSI terminology, see SAM-3 at http://www.t10.org) sends SCSI commands
18 its own subsystem in Linux (e.g. USB and ieee1394). In such cases the
20 Examples are the usb-storage driver (found in the drivers/usb/storage
28 HBAs. These HBAs might be either on PCI daughter-boards or built into
31 has its own PCI device address. [The one-to-one correspondence between
47 Many LLDs are documented there (e.g. aic7xxx.txt). The SCSI mid-level is
51 scsi-generic.txt (for the sg driver).
55 about the USB mass storage driver see the
56 /usr/src/linux/drivers/usb/storage directory.
[all …]
/kernel/linux/linux-5.10/Documentation/scsi/
Dscsi_mid_low_api.rst1 .. SPDX-License-Identifier: GPL-2.0
4 SCSI mid_level - lower_level driver interface
14 (SCSI terminology, see SAM-3 at http://www.t10.org) sends SCSI commands
20 its own subsystem in Linux (e.g. USB and ieee1394). In such cases the
22 Examples are the usb-storage driver (found in the drivers/usb/storage
30 HBAs. These HBAs might be either on PCI daughter-boards or built into
33 has its own PCI device address. [The one-to-one correspondence between
49 Many LLDs are documented there (e.g. aic7xxx.txt). The SCSI mid-level is
53 scsi-generic.txt (for the sg driver).
57 about the USB mass storage driver see the
[all …]
/kernel/linux/linux-4.19/drivers/extcon/
Dextcon-intel-cht-wc.c6 * Copyright (C) 2013-2015 Intel Corporation. All rights reserved.
18 #include <linux/extcon-provider.h>
128 ret = regmap_read(ext->regmap, CHT_WC_USBSRC, &usbsrc); in cht_wc_extcon_get_charger()
130 dev_err(ext->dev, "Error reading usbsrc: %d\n", ret); in cht_wc_extcon_get_charger()
147 dev_warn(ext->dev, "Could not detect charger type\n"); in cht_wc_extcon_get_charger()
149 dev_warn(ext->dev, "Timeout detecting charger type\n"); in cht_wc_extcon_get_charger()
156 dev_warn(ext->dev, in cht_wc_extcon_get_charger()
157 "Unhandled charger type %d, defaulting to SDP\n", in cht_wc_extcon_get_charger()
179 ret = regmap_write(ext->regmap, CHT_WC_PHYCTRL, state); in cht_wc_extcon_set_phymux()
181 dev_err(ext->dev, "Error writing phyctrl: %d\n", ret); in cht_wc_extcon_set_phymux()
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-power5 Contact: linux-pm@vger.kernel.org
14 Contact: linux-pm@vger.kernel.org
23 Contact: linux-pm@vger.kernel.org
32 Contact: linux-pm@vger.kernel.org
37 Valid values: "Battery", "UPS", "Mains", "USB", "Wireless"
39 **Battery and USB properties**
43 Contact: linux-pm@vger.kernel.org
52 USB:
62 batteries and for USB IBUS current.
66 Contact: linux-pm@vger.kernel.org
[all …]
/kernel/linux/linux-4.19/Documentation/ioctl/
Dioctl-number.txt27 patch to Linus Torvalds. Or you can e-mail me at <mec@shout.net> and
61 no attempt to list non-X86 architectures or ioctls from drivers/staging/.
65 0x00 00-1F linux/fs.h conflict!
66 0x00 00-1F scsi/scsi_ioctl.h conflict!
67 0x00 00-1F linux/fb.h conflict!
68 0x00 00-1F linux/wavefront.h conflict!
71 0x04 D2-DC linux/umsdos_fs.h Dead since 2.6.11, but don't reuse these.
74 0x10 00-0F drivers/char/s390/vmcp.h
75 0x10 10-1F arch/s390/include/uapi/sclp_ctl.h
76 0x10 20-2F arch/s390/include/uapi/asm/hypfs.h
[all …]
/kernel/linux/linux-4.19/drivers/power/supply/
Dgpio-charger.c2 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
28 #include <linux/power/gpio-charger.h>
60 val->intval = gpiod_get_value_cansleep(gpio_charger->gpiod); in gpio_charger_get_property()
63 return -EINVAL; in gpio_charger_get_property()
73 if (!device_property_read_string(dev, "charger-type", &chargetype)) { in gpio_charger_get_type()
82 if (!strcmp("usb-sdp", chargetype)) in gpio_charger_get_type()
84 if (!strcmp("usb-dcp", chargetype)) in gpio_charger_get_type()
86 if (!strcmp("usb-cdp", chargetype)) in gpio_charger_get_type()
88 if (!strcmp("usb-aca", chargetype)) in gpio_charger_get_type()
102 struct device *dev = &pdev->dev; in gpio_charger_probe()
[all …]
Daxp288_charger.c2 * axp288_charger.c - X-power AXP288 PMIC Charger driver
4 * Copyright (C) 2016-2017 Hans de Goede <hdegoede@redhat.com>
25 #include <linux/usb/otg.h>
137 /* SDP/CDP/DCP USB charging cable notifications */
157 else if (cc > info->max_cc) in axp288_charger_set_cc()
158 cc = info->max_cc; in axp288_charger_set_cc()
160 reg_val = (cc - CHRG_CCCV_CC_OFFSET) / CHRG_CCCV_CC_LSB_RES; in axp288_charger_set_cc()
164 ret = regmap_update_bits(info->regmap, in axp288_charger_set_cc()
168 info->cc = cc; in axp288_charger_set_cc()
194 ret = regmap_update_bits(info->regmap, in axp288_charger_set_cv()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dextcon.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * - linux/include/linux/extcon.h for extcon consumer device driver.
26 #define EXTCON_TYPE_USB BIT(0) /* USB connector */
37 /* USB external connector */
44 * When one SDP charger connector was reported, we should also report
45 * the USB connector, which means EXTCON_CHG_USB_SDP should always
60 #define EXTCON_CHG_USB_PD 12 /* USB Power Delivery */
73 #define EXTCON_DISP_HDMI 40 /* High-Definition Multimedia Interface */
74 #define EXTCON_DISP_MHL 41 /* Mobile High-Definition Link */
78 #define EXTCON_DISP_HMD 45 /* Head-Mounted Display */
[all …]
/kernel/linux/linux-4.19/include/linux/
Dextcon.h3 * - linux/include/linux/extcon.h for extcon consumer device driver.
34 #define EXTCON_TYPE_USB BIT(0) /* USB connector */
45 /* USB external connector */
52 * When one SDP charger connector was reported, we should also report
53 * the USB connector, which means EXTCON_CHG_USB_SDP should always
68 #define EXTCON_CHG_USB_PD 12 /* USB Power Delivery */
81 #define EXTCON_DISP_HDMI 40 /* High-Definition Multimedia Interface */
82 #define EXTCON_DISP_MHL 41 /* Mobile High-Definition Link */
86 #define EXTCON_DISP_HMD 45 /* Head-Mounted Display */
107 * EXTCON_PROP_USB_[property name] : USB property
[all …]
/kernel/linux/linux-5.10/Documentation/userspace-api/ioctl/
Dioctl-number.rst33 patch to Linus Torvalds. Or you can e-mail me at <mec@shout.net> and
67 no attempt to list non-X86 architectures or ioctls from drivers/staging/.
73 0x00 00-1F linux/fs.h conflict!
74 0x00 00-1F scsi/scsi_ioctl.h conflict!
75 0x00 00-1F linux/fb.h conflict!
76 0x00 00-1F linux/wavefront.h conflict!
79 0x04 D2-DC linux/umsdos_fs.h Dead since 2.6.11, but don't r…
82 0x10 00-0F drivers/char/s390/vmcp.h
83 0x10 10-1F arch/s390/include/uapi/sclp_ctl.h
84 0x10 20-2F arch/s390/include/uapi/asm/hypfs.h
[all …]
/kernel/linux/linux-4.19/Documentation/ABI/testing/
Dsysfs-class-power5 Contact: linux-pm@vger.kernel.org
14 Contact: linux-pm@vger.kernel.org
23 Contact: linux-pm@vger.kernel.org
32 Contact: linux-pm@vger.kernel.org
37 Valid values: "Battery", "UPS", "Mains", "USB"
43 Contact: linux-pm@vger.kernel.org
47 Valid values: 0 - 100 (percent)
51 Contact: linux-pm@vger.kernel.org
53 Maximum battery capacity trip-wire value where the supply will
54 notify user-space of the event. This is normally used for the
[all …]
/kernel/linux/linux-5.10/drivers/power/supply/
Daxp288_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * axp288_charger.c - X-power AXP288 PMIC Charger driver
5 * Copyright (C) 2016-2017 Hans de Goede <hdegoede@redhat.com>
18 #include <linux/usb/otg.h>
130 /* SDP/CDP/DCP USB charging cable notifications */
150 else if (cc > info->max_cc) in axp288_charger_set_cc()
151 cc = info->max_cc; in axp288_charger_set_cc()
153 reg_val = (cc - CHRG_CCCV_CC_OFFSET) / CHRG_CCCV_CC_LSB_RES; in axp288_charger_set_cc()
157 ret = regmap_update_bits(info->regmap, in axp288_charger_set_cc()
161 info->cc = cc; in axp288_charger_set_cc()
[all …]
Dgpio-charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
18 #include <linux/power/gpio-charger.h>
59 int ndescs = gpio_charger->current_limit_gpios->ndescs; in set_charge_current_limit()
60 struct gpio_desc **gpios = gpio_charger->current_limit_gpios->desc; in set_charge_current_limit()
63 if (!gpio_charger->current_limit_map_size) in set_charge_current_limit()
64 return -EINVAL; in set_charge_current_limit()
66 for (i = 0; i < gpio_charger->current_limit_map_size; i++) { in set_charge_current_limit()
67 if (gpio_charger->current_limit_map[i].limit_ua <= val) in set_charge_current_limit()
70 mapping = gpio_charger->current_limit_map[i]; in set_charge_current_limit()
[all …]
/kernel/linux/linux-5.10/drivers/usb/typec/ucsi/
Dpsy.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/usb/pd.h>
35 val->intval = UCSI_PSY_OFFLINE; in ucsi_psy_get_online()
36 if (con->status.flags & UCSI_CONSTAT_CONNECTED && in ucsi_psy_get_online()
37 (con->status.flags & UCSI_CONSTAT_PWR_DIR) == TYPEC_SINK) in ucsi_psy_get_online()
38 val->intval = UCSI_PSY_FIXED_ONLINE; in ucsi_psy_get_online()
47 switch (UCSI_CONSTAT_PWR_OPMODE(con->status.flags)) { in ucsi_psy_get_voltage_min()
49 pdo = con->src_pdos[0]; in ucsi_psy_get_voltage_min()
50 val->intval = pdo_fixed_voltage(pdo) * 1000; in ucsi_psy_get_voltage_min()
56 val->intval = UCSI_TYPEC_VSAFE5V * 1000; in ucsi_psy_get_voltage_min()
[all …]

123