/linux-6.14.4/drivers/power/supply/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 bool "Power supply class support" 5 Say Y here to enable power supply class support. This allows 6 power supply (batteries, AC, USB) monitoring by userspace 13 bool "Power supply debug" 15 Say Y here to enable debugging messages for power supply class 20 prompt "Expose power supply sensors as hwmon device" 25 power supply device (current, voltage, temperature) to be 28 Say 'Y' here if you want power supplies to 36 battery class devices. [all …]
|
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 …]
|
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-6.14.4/Documentation/power/ |
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 …]
|
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-6.14.4/Documentation/devicetree/bindings/power/supply/ |
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 <[email protected]> 15 - Sebastian Reichel <[email protected]> 18 - $ref: power-supply.yaml# [all …]
|
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 <[email protected]> 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 …]
|
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 <[email protected]> 12 - Sebastian Reichel <[email protected]> 16 the Droid 4. This binding describes its battery fuel gauge 17 sub-function. 20 - $ref: power-supply.yaml# [all …]
|
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 <[email protected]> 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 …]
|
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 Charger 11 - Sebastian Reichel <[email protected]> 14 - $ref: power-supply.yaml# 19 - ti,bq24190 20 - ti,bq24192 21 - ti,bq24192i [all …]
|
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 …]
|
D | st,stc3117.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/supply/st,stc3117.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectronics STC3117 Fuel Gauge Unit Power Supply 10 - Hardevsinh Palaniya <[email protected]> 11 - Bhavin Sharma <[email protected]> 15 It provides accurate battery state-of-charge (SOC) monitoring, tracks 16 battery parameter changes with operation conditions, temperature, 17 and aging, and allows the application to get a battery state-of-health [all …]
|
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 <[email protected]> 13 - $ref: power-supply.yaml# 18 - sprd,sc2720-fgu 19 - sprd,sc2721-fgu 20 - sprd,sc2723-fgu [all …]
|
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 <[email protected]> 11 - Sebastian Reichel <[email protected]> 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 …]
|
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 <[email protected]> 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 …]
|
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 <[email protected]> 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 …]
|
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 <[email protected]> 13 - $ref: power-supply.yaml# 18 - maxim,max17042 19 - maxim,max17047 20 - maxim,max17050 21 - maxim,max17055 [all …]
|
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 <[email protected]> 13 - $ref: power-supply.yaml# 18 - maxim,max17040 19 - maxim,max17041 20 - maxim,max17043 21 - maxim,max17044 [all …]
|
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 <[email protected]> 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 …]
|
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 <[email protected]> 13 Battery compatible with the smart battery system specifications 16 - $ref: power-supply.yaml# 21 - items: 22 - enum: [all …]
|
/linux-6.14.4/Documentation/ABI/testing/ |
D | sysfs-class-power | 5 Contact: linux-[email protected] 14 Contact: linux-[email protected] 23 Contact: linux-[email protected] 32 Contact: linux-[email protected] 37 Valid values: "Battery", "UPS", "Mains", "USB", "Wireless" 39 **Battery and USB properties** 43 Contact: linux-[email protected] 45 Battery: 47 Reports an average IBAT current reading for the battery, over 66 Contact: linux-[email protected] [all …]
|
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 …]
|
/linux-6.14.4/include/linux/ |
D | power_supply.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Universal power supply monitor class 31 * For systems where the charger determines the maximum battery capacity 193 POWER_SUPPLY_TYPE_USB_PD, /* Power Delivery Port */ 206 POWER_SUPPLY_USB_TYPE_PD, /* Power Delivery Port */ 208 POWER_SUPPLY_USB_TYPE_PD_PPS, /* PD Programmable Power Supply */ 230 /* Run-time specific power supply configuration */ 247 /* Description of power supply */ 258 * Functions for drivers implementing power supply class. 260 * this power supply. Instead use power_supply_*() functions (for [all …]
|
/linux-6.14.4/include/linux/power/ |
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-6.14.4/Documentation/devicetree/bindings/mfd/ |
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 <[email protected]> 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 …]
|