Home
last modified time | relevance | path

Searched +full:usb +full:- +full:charge +full:- +full:current +full:- +full:limit (Results 1 – 25 of 64) sorted by relevance

123

/openbmc/linux/Documentation/devicetree/bindings/power/supply/
H A 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 …]
H A Dqcom,pm8941-charger.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/qcom,pm8941-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm Switch-Mode Battery Charger and Boost
10 - Sebastian Reichel <sre@kernel.org>
15 - qcom,pm8226-charger
16 - qcom,pm8941-charger
23 - description: charge done
24 - description: charge fast mode
[all …]
H A Dsummit,smb347-charger.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/power/supply/summit,smb347-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - David Heidelberg <david@ixit.cz>
11 - Dmitry Osipenko <digetx@gmail.com>
16 - summit,smb345
17 - summit,smb347
18 - summit,smb358
26 monitored-battery:
[all …]
H A Dbq2415x.yaml1 # SPDX-License-Identifier: GPL-2.0
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: TI bq2415x Li-Ion Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
19 - ti,bq24150
20 - ti,bq24150a
21 - ti,bq24151
22 - ti,bq24151a
[all …]
H A Drichtek,rt5033-charger.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/power/supply/richtek,rt5033-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jakob Hauser <jahau@rocketmail.com>
14 under sub-node named "charger" using the following format.
18 const: richtek,rt5033-charger
20 monitored-battery:
26 precharge-current-microamp:
27 Current of pre-charge mode. The pre-charge current levels are 350 mA
[all …]
H A Dbq24257.yaml1 # SPDX-License-Identifier: GPL-2.0
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Bq24250, bq24251 and bq24257 Li-Ion Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
19 - ti,bq24250
20 - ti,bq24251
21 - ti,bq24257
29 ti,battery-regulation-voltage:
[all …]
H A Dmaxim,max8903.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
13 - $ref: power-supply.yaml#
19 dok-gpios:
23 uok-gpios:
25 description: Valid USB power has been detected (active low, input)
27 cen-gpios:
29 description: Charge enable pin (active low, output)
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A 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
47 Reports an average IBAT current reading for the battery, over
52 USB:
54 Reports an average IBUS current reading over a fixed period.
[all …]
/openbmc/linux/drivers/power/supply/
H A Dsmb347-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
23 #include <dt-bindings/power/summit,smb347-charger.h>
26 #define SMB3XX_SOFT_TEMP_COMPENSATE_DEFAULT -1
28 /* Use default factory programmed value for hard/soft temperature limit */
29 #define SMB3XX_TEMP_USE_DEFAULT -273
34 * reloaded from non-volatile registers after POR.
136 * struct smb347_charger - smb347 charger instance
140 * @usb: power_supply instance for USB power
141 * @usb_rdev: USB VBUS regulator device
144 * @usb_online: is USB input connected
[all …]
H A 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()
72 * If a valid charge current limit isn't found, default to smallest in set_charge_current_limit()
[all …]
H A Dsc2731_charger.c1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/usb/phy.h>
46 /* Default current definition (unit is mA) */
64 u32 limit; member
69 regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_stop_charge()
72 regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_stop_charge()
80 /* Enable charger constant current mode */ in sc2731_charger_start_charge()
81 ret = regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_start_charge()
87 return regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_start_charge()
92 u32 limit) in sc2731_charger_set_current_limit() argument
[all …]
H A Drk817_charger.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/devm-helpers.h>
33 * Max charging current read to/written from hardware register.
35 * current, this is per the datasheet.
68 * soc - state of charge - like the BSP this is stored as a percentage,
69 * to the thousandth. BSP has a display state of charge (dsoc) and a
70 * remaining state of charge (rsoc). This value will be used for both
72 * charge and just report it as it is. Note for example an soc of 100
115 #define CURRENT_TO_ADC(current, samp_res) \ argument
116 (current * samp_res / 172)
[all …]
H A Dab8500_chargalg.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2012
34 #include "ab8500-bm.h"
35 #include "ab8500-chargalg.h"
40 /* End-of-charge criteria counter */
50 * This is the battery capacity limit that will trigger a new
169 * struct ab8500_charge_curr_maximization - Charger maximization parameters
170 * @original_iset_ua: the non optimized/maximised charger current
171 * @current_iset_ua: the charging current used at this moment
172 * @condition_cnt: number of iterations needed before a new charger current
[all …]
H A Dab8500-bm.h1 /* SPDX-License-Identifier: GPL-2.0-only */
16 * USB/ULPI register offsets
61 * Charger / USB control register offsets
124 /* Main charge i/p current */
233 /* BatCtrl Current Source Constants */
253 /* USB Power Path constants for ab8540 */
267 * struct ab8500_fg_parameters - Fuel gauge algorithm parameters, in seconds
274 * @high_curr_time: Time current has to be high to go to recovery
276 * @accu_high_curr_ua: FG accumulation time in high current mode
277 * @high_curr_threshold_ua: High current threshold, in uA
[all …]
H A 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>
134 /* SDP/CDP/DCP USB charging cable notifications */
160 else if (cc > info->max_cc) in axp288_charger_set_cc()
161 cc = info->max_cc; in axp288_charger_set_cc()
163 reg_val = (cc - CHRG_CCCV_CC_OFFSET) / CHRG_CCCV_CC_LSB_RES; in axp288_charger_set_cc()
167 ret = regmap_update_bits(info->regmap, in axp288_charger_set_cc()
171 info->cc = cc; in axp288_charger_set_cc()
[all …]
H A Dwm831x_power.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/usb/phy.h>
23 struct power_supply *usb; member
46 val->intval = 1; in wm831x_power_check_online()
48 val->intval = 0; in wm831x_power_check_online()
61 val->intval = ret; in wm831x_power_read_voltage()
73 struct wm831x_power *wm831x_power = dev_get_drvdata(psy->dev.parent); in wm831x_wall_get_prop()
74 struct wm831x *wm831x = wm831x_power->wm831x; in wm831x_wall_get_prop()
85 ret = -EINVAL; in wm831x_wall_get_prop()
98 * USB Power
[all …]
H A Ducs1002_power.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Driver for UCS1002 Programmable USB Port Power Controller
27 * The Total Accumulated Charge registers store the total accumulated
28 * charge delivered from the VS source to a portable device. The total
88 /* Current Limit Register */
129 ret = regmap_read(info->regmap, UCS1002_REG_OTHER_STATUS, &reg); in ucs1002_get_online()
133 val->intval = !!(reg & F_CHG_ACT); in ucs1002_get_online()
144 * For Total Accumulated Charge Middle Low Byte register, addr in ucs1002_get_charge()
153 * For Total Accumulated Charge Low Byte register, addr 04h, in ucs1002_get_charge()
186 ret = regmap_bulk_read(info->regmap, UCS1002_REG_TOTAL_ACC_CHARGE, in ucs1002_get_charge()
[all …]
H A Dqcom_smbb.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * This driver is for the multi-block Switch-Mode Battery Charger and Boost
6 * integrated, single-cell lithium-ion battery charger.
8 * Sub-components:
9 * - Charger core
10 * - Buck
11 * - DC charge-path
12 * - USB charge-path
13 * - Battery interface
14 * - Boost (not implemented)
[all …]
/openbmc/linux/include/linux/mfd/wm8350/
H A Dsupply.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * supply.h -- Power Supply Driver for Wolfson WM8350 PMIC
22 * R168 (0xA8) - Battery Charger Control 1
39 * R169 (0xA9) - Battery Charger Control 2
54 * R170 (0xAA) - Battery Charger Control 3
84 #define WM8350_CHG_EOC_mA(x) (((x - 10) & 0x7) << 10)
108 /* charger state machine policy - set in machine driver */
109 int eoc_mA; /* end of charge current (mA) */
110 int charge_mV; /* charge voltage */
111 int fast_limit_mA; /* fast charge current limit */
[all …]
/openbmc/linux/Documentation/power/
H A Dpower_supply_class.rst8 properties to user-space.
26 AC/USB power supply online status. (Note that specific details of the
60 +--------------------------------------------------------------------------+
61 | **Charge/Energy/Capacity - how to not confuse** |
62 +--------------------------------------------------------------------------+
63 | **Because both "charge" (µAh) and "energy" (µWh) represents "capacity" |
66 | - `CHARGE_*` |
68 | - `ENERGY_*` |
70 | - `CAPACITY` |
72 +--------------------------------------------------------------------------+
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Drichtek,rt5033.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jakob Hauser <jahau@rocketmail.com>
14 flash LED current source, LDO and synchronous Buck converter for portable
30 The regulators of RT5033 have to be instantiated under a sub-node named
44 $ref: /schemas/power/supply/richtek,rt5033-charger.yaml#
47 - compatible
48 - reg
49 - interrupts
[all …]
/openbmc/linux/include/linux/power/
H A Dbq2415x_charger.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Copyright (C) 2011-2013 Pali Rohár <pali@kernel.org>
14 * value is -1 then default chip value (specified in datasheet) will be
17 * Value resistor_sense is needed for configuring charge and
18 * termination current. If it is less or equal to zero, configuring charge
19 * and termination current will not be possible.
23 * POWER_SUPPLY_PROP_CURRENT_MAX when current changed.
26 /* Supported modes with maximal current limit */
30 BQ2415X_MODE_HOST_CHARGER, /* usb host/hub charger (500mA) */
/openbmc/linux/include/linux/usb/
H A Dtcpm.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright 2015-2017 Google, Inc
10 #include <linux/usb/typec.h>
54 #define TCPC_MUX_USB_ENABLED BIT(0) /* USB enabled */
59 * struct tcpc_dev - Port configuration and callback functions
61 * @get_vbus: Called to read current VBUS state
64 * and cc=Rp-def. This allows the tcpm to provide a fallback
65 * current-limit detection method for the cc=Rp-def case.
71 * @get_cc: Called to read current CC pin values
77 * Optional; called to set current limit as negotiated
[all …]
/openbmc/linux/arch/arm/boot/dts/qcom/
H A Dqcom-msm8974pro-fairphone-fp2.dts1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974pro.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
12 chassis-type = "handset";
21 stdout-path = "serial0:115200n8";
24 gpio-keys {
25 compatible = "gpio-keys";
27 pinctrl-names = "default";
[all …]
/openbmc/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6dl-b1x5pv2.dtsi1 // SPDX-License-Identifier: GPL-2.0 OR MIT
6 // Copyright 2018-2021 General Electric Company
7 // Copyright 2018-2021 Collabora
9 #include <dt-bindings/input/input.h>
10 #include "imx6dl-qmx6.dtsi"
14 stdout-path = &uart3;
20 operating-points = <
25 fsl,soc-operating-points = <
26 /* ARM kHz SOC-PU uV */
33 operating-points = <
[all …]

123