| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/ |
| D | gpio-charger.yaml | 1 # 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 …]
|
| D | summit,smb347-charger.yaml | 1 # 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 …]
|
| D | qcom_smbb.txt | 1 Qualcomm Switch-Mode Battery Charger and Boost 4 - compatible: 8 - "qcom,pm8941-charger" 10 - reg: 12 Value type: <prop-encoded-array> 15 - interrupts: 17 Value type: <prop-encoded-array> 21 - charge done 22 - charge fast mode 23 - charge trickle mode [all …]
|
| D | bq2415x.txt | 1 Binding for TI bq2415x Li-Ion Charger 4 - compatible: Should contain one of the following: 17 - reg: integer, i2c address of the device. 18 - ti,current-limit: integer, initial maximum current charger can pull 20 - ti,weak-battery-voltage: integer, weak battery voltage threshold in mV. 23 - ti,battery-regulation-voltage: integer, maximum charging voltage in mV. 24 - ti,charge-current: integer, maximum charging current in mA. 25 - ti,termination-current: integer, charge will be terminated when current in 26 constant-voltage phase drops below this value (in mA). 27 - ti,resistor-sense: integer, value of sensing resistor in milliohm. [all …]
|
| D | bq24257.txt | 1 Binding for TI bq24250/bq24251/bq24257 Li-Ion Charger 4 - compatible: Should contain one of the following: 8 - reg: integer, i2c address of the device. 9 - interrupts: Interrupt mapping for GPIO IRQ (configure for both edges). Use in 10 conjunction with "interrupt-parent". 11 - ti,battery-regulation-voltage: integer, maximum charging voltage in uV. 12 - ti,charge-current: integer, maximum charging current in uA. 13 - ti,termination-current: integer, charge will be terminated when current in 14 constant-voltage phase drops below this value (in uA). 17 - pg-gpios: GPIO used for connecting the bq2425x device PG (Power Good) pin. [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/ |
| D | gpio-charger.yaml | 1 # 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 …]
|
| D | summit,smb347-charger.yaml | 1 # 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 …]
|
| D | qcom,pm8941-charger.yaml | 1 # 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 …]
|
| D | bq2415x.yaml | 1 # 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 …]
|
| D | richtek,rt5033-charger.yaml | 1 # 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 …]
|
| D | bq24257.yaml | 1 # 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 …]
|
| /kernel/linux/linux-5.10/Documentation/ABI/testing/ |
| D | sysfs-class-power | 5 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 …]
|
| /kernel/linux/linux-6.6/Documentation/ABI/testing/ |
| D | sysfs-class-power | 5 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 …]
|
| /kernel/linux/linux-6.6/drivers/power/supply/ |
| D | smb347-charger.c | 1 // 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 …]
|
| D | gpio-charger.c | 1 // 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 …]
|
| D | sc2731_charger.c | 1 // 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 …]
|
| D | rk817_charger.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/include/linux/mfd/wm8350/ |
| D | supply.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/include/linux/mfd/wm8350/ |
| D | supply.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/drivers/power/supply/ |
| D | gpio-charger.c | 1 // 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 …]
|
| D | smb347-charger.c | 1 // 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. 132 * struct smb347_charger - smb347 charger instance 136 * @usb: power_supply instance for USB power 139 * @usb_online: is USB input connected 142 * @max_charge_current: maximum current (in uA) the battery can be charged [all …]
|
| D | sc2731_charger.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/include/linux/mfd/ |
| D | abx500.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2007-2009 ST-Ericsson AB 45 * struct abx500_res_to_temp - defines one point in a temp to res curve. To 57 * struct abx500_v_to_cap - Table for translating voltage to capacity 70 * struct abx500_fg_parameters - Fuel gauge algorithm parameters, in seconds 77 * @high_curr_time: Time current has to be high to go to recovery 79 * @accu_high_curr: FG accumulation time in high current mode 80 * @high_curr_threshold: High current threshold, in mA 88 * limit to be considered as sane, in percentage 122 * struct abx500_charger_maximization - struct used by the board config. [all …]
|
| /kernel/linux/linux-5.10/Documentation/power/ |
| D | power_supply_class.rst | 8 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 …]
|
| /kernel/linux/linux-6.6/Documentation/power/ |
| D | power_supply_class.rst | 8 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 …]
|