/linux/Documentation/power/ |
H A D | power_supply_class.rst | 2 Linux power supply class 7 Power supply class used to represent battery, UPS, AC or DC power supply 8 properties to user-space. 11 every power supply out there. Attributes are available via sysfs and uevent 16 power supply, specific monitoring hardware may not be able to provide them 19 Power supply class is extensible, and allows to define drivers own attributes. 21 if it will be found that some attribute is applicable to many power supply 25 typically expected feedback of battery charging/fully charged status and 26 AC/USB power supply online status. (Note that specific details of the 34 Power supply class has predefined set of attributes, this eliminates code [all …]
|
H A D | charger-manager.rst | 7 Charger Manager provides in-kernel battery charger management that 8 requires temperature monitoring during suspend-to-RAM state 9 and where each battery may have multiple chargers attached and the userland 12 Charger Manager is a platform_driver with power-supply-class entries. 13 An instance of Charger Manager (a platform-device created with Charger-Manager) 14 represents an independent battery with chargers. If there are multiple 24 A system may have multiple chargers (or power sources) and some of 26 own power-supply-class and each power-supply-class can provide 27 different information about the battery status. This framework 28 aggregates charger-related information from multiple sources and [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | x-powers,axp20x-battery-power-supply.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: AXP20x Battery power-supply 10 The supported devices can read the battery voltage, charge and discharge 11 currents of the battery by reading ADC channels from the ADC. 14 - Chen-Yu Tsai <wens@csie.org> 15 - Sebastian Reichel <sre@kernel.org> 18 - $ref: power-supply.yaml# [all …]
|
H A D | adc-battery.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/supply/adc-battery.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ADC battery 10 - Sebastian Reichel <sre@kernel.org> 13 Basic battery capacity meter, which only reports basic battery data 14 via ADC channels and optionally indicate that the battery is full by 17 The voltage is expected to be measured between the battery terminals 18 and mandatory. The optional current/power channel is expected to [all …]
|
H A D | cpcap-battery.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 5 $id: http://devicetree.org/schemas/power/supply/cpcap-battery.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Motorola CPCAP PMIC battery 11 - Tony Lindgren <tony@atomide.com> 12 - Sebastian Reichel <sre@kernel.org> 16 the Droid 4. This binding describes its battery fuel gauge 17 sub-function. 20 - $ref: power-supply.yaml# [all …]
|
H A D | cw2015_battery.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/supply/cw2015_battery.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Battery driver for CW2015 shuntless fuel gauge by CellWise. 10 - Tobias Schramm <t.schramm@manjaro.org> 13 The driver can utilize information from a simple-battery linked via a 14 phandle in monitored-battery. If specified the driver uses the 15 charge-full-design-microamp-hours property of the battery. 18 - $ref: power-supply.yaml# [all …]
|
H A D | bq24190.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 5 $id: http://devicetree.org/schemas/power/supply/bq24190.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: TI BQ2419x Li-Ion Battery Charge [all...] |
H A D | ingenic,battery.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 # Copyright 2019-2020 Artur Rojek 4 --- 5 $id: http://devicetree.org/schemas/power/supply/ingenic,battery.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Ingenic JZ47xx battery 11 - Artur Rojek <contact@artur-rojek.eu> 13 $ref: power-supply.yaml# 18 - const: ingenic,jz4740-battery 19 - items: [all …]
|
H A D | sc27xx-fg.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/sc27xx-fg.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Spreadtrum SC27XX PMICs Fuel Gauge Unit Power Supply 10 - Sebastian Reichel <sre@kernel.org> 13 - $ref: power-supply.yaml# 18 - sprd,sc2720-fgu 19 - sprd,sc2721-fgu 20 - sprd,sc2723-fgu [all …]
|
H A D | lego,ev3-battery.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/lego,ev3-battery.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: LEGO MINDSTORMS EV3 Battery 10 - David Lechner <david@lechnology.com> 11 - Sebastian Reichel <sre@kernel.org> 14 LEGO MINDSTORMS EV3 has some built-in capability for monitoring the battery. 15 It uses 6 AA batteries or a special Li-ion rechargeable battery pack that is 16 detected by a key switch in the battery compartment. [all …]
|
H A D | qcom,pm8916-bms-vm.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/supply/qcom,pm8916-bms-vm.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Nikita Travkin <nikita@trvn.ru> 14 such as pm8916. This block performs battery voltage monitoring. 17 - $ref: power-supply.yaml# 21 const: qcom,pm8916-bms-vm 28 - description: BMS FSM left S3 mode 29 - description: BMS FSM entered S2 mode [all …]
|
H A D | samsung,battery.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/supply/samsung,battery.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 16 the physical restrictions make it impossible to use another battery with the 24 - const: samsung,eb-l1m7flu 25 description: 3.8V 1500 mAh battery used in Samsung GT-I8190 26 - const: samsung,eb425161la 27 description: 3.8V 1500 mAh battery used in Samsung SGH-T599 and SGH-I407 [all …]
|
H A D | maxim,max17040.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/maxim,max17040.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 13 - $ref: power-supply.yaml# 18 - maxim,max17040 19 - maxim,max17041 20 - maxim,max17043 21 - maxim,max17044 [all …]
|
H A D | richtek,rt9455.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/richtek,rt9455.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Richtek rt9455 battery charger 10 - Sebastian Reichel <sre@kernel.org> 13 - $ref: power-supply.yaml# 25 richtek,output-charge-current: 27 description: output current from the charger to the battery, in uA. 29 richtek,end-of-charge-percentage: [all …]
|
H A D | sbs,sbs-battery.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/sbs,sbs-battery.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: SBS compliant battery 10 - Sebastian Reichel <sre@kernel.org> 13 Battery compatible with the smart battery system specifications 16 - $ref: power-supply.yaml# 21 - items: 22 - enum: [all …]
|
H A D | bq2415x.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 5 $id: http://devicetree.org/schemas/power/supply/bq2415x.yaml# 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 [all …]
|
H A D | maxim,max17042.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/maxim,max17042.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 13 - [all...] |
H A D | rohm,bd99954.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/power/supply/rohm,bd99954.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ROHM BD99954 Battery charger 10 - Matti Vaittinen <mazziesaccount@gmail.com> 11 - Markus Laine <markus.laine@fi.rohmeurope.com> 12 - Mikko Mutanen <mikko.mutanen@fi.rohmeurope.com> 15 The ROHM BD99954 is a Battery Management LSI for 1-4 cell Lithium-Ion 16 secondary battery intended to be used in space-constraint equipment such [all …]
|
/linux/Documentation/ABI/testing/ |
H A 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 45 Battery: 47 Reports an average IBAT current reading for the battery, over 66 Contact: linux-p [all...] |
H A D | sysfs-class-power-ltc4162l | 1 What: /sys/class/power_supply/ltc4162-l/charge_status 18 What: /sys/class/power_supply/ltc4162-l/ibat 22 Battery input current as measured by the charger. Negative value 23 means that the battery is discharging. 29 What: /sys/class/power_supply/ltc4162-l/vbat 33 Battery voltage as measured by the charger. 39 What: /sys/class/power_supply/ltc4162-l/vbat_avg 43 Battery voltage, averaged over time, as measured by the charger. 49 What: /sys/class/power_supply/ltc4162-l/force_telemetry 53 To save battery current, the measurement system is disabled if [all …]
|
H A D | sysfs-platform-dptf | 4 Contact: linux-acpi@vger.kernel.org 6 (RO) The charger type - Traditional, Hybrid or NVDC. 11 Contact: linux-acpi@vger.kernel.org 13 (RO) Adapter rating in milliwatts (the maximum Adapter power). 19 Contact: linux-acpi@vger.kernel.org 21 (RO) Maximum platform power that can be supported by the battery 27 Contact: linux-acpi@vger.kernel.org 29 (RO) Display the platform power source 32 bits[3:0] Current power source 33 - 0x00 = DC [all …]
|
/linux/drivers/power/supply/ |
H A D | wm8350_power.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Battery driver for wm8350 PMIC 7 * Based on OLPC Battery Driver 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() 67 * without battery, otherwise check for wall supply */ in wm8350_get_supplies() 92 dev_warn(wm8350->dev, in wm8350_charger_config() 94 return -EINVAL; in wm8350_charger_config() 98 if (policy->fast_limit_USB_mA > 500) { in wm8350_charger_config() [all …]
|
H A D | wm831x_power.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 struct power_supply *battery; 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() 67 * WALL Power 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 …]
|
/linux/include/linux/power/ |
H A D | charger-manager.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 8 * monitor charging even in the context of suspend-to-RAM with 54 * @cm: the Charger Manager representing the battery. 62 /* The charger-manager use Extcon framework */ 72 * Set min/max current of regulator to protect over-current issue 86 * Set if the charger-manager cannot control charger, 126 * @psy_name: the name of power-supply-class for charger manager 130 * Check voltage drop after the battery is fully charged. 138 * If full capacity of battery >= fullbatt_full_capacity, 141 * charger manager will monitor battery health [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | ene-kb930.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mfd/ene-kb930.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 - Dmitry Osipenko <digetx@gmail.com> 16 $ref: /schemas/power/supply/power-supply.yaml 21 - enum: 22 - acer,a500-iconia-ec # Acer A500 Iconia tablet device 23 - const: ene,kb930 27 system-power-controller: true [all …]
|