/openbmc/linux/drivers/power/supply/ |
H A 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 …]
|
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 …]
|
/openbmc/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 …]
|
/openbmc/phosphor-dbus-interfaces/yaml/org/freedesktop/UPower/ |
H A D | Device.interface.yaml | 2 "org.freedesktop.UPower.Device -- Device interface 10 - name: Refresh 12 "Refreshes the data collected from the power source. Callers need the 13 org.freedesktop.upower.refresh-power-source authorization" 15 - name: GetHistory 17 "Gets history for the power device that is persistent across 20 - name: type 24 - name: timespan 28 - name: resolution 35 - name: data [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/power/supply/ |
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 | 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 | 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 Charger 11 - Sebastian Reichel <sre@kernel.org> 14 - $ref: power-supply.yaml# 19 - ti,bq24190 20 - ti,bq24192 21 - ti,bq24192i [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 | 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 | 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 …]
|
/openbmc/u-boot/doc/ |
H A D | README.power-framework | 5 # SPDX-License-Identifier: GPL-2.0+ 9 ------------ 11 This document describes the second version of the u-boot's PMIC (Power 16 ---------- 18 Boards supported by u-boot are getting increasingly complex. Developers and 19 designers strive to cut down power consumption. Hence several different types of 20 devices are now available on the board - namely power managers (PMIC), fuel 21 gauges (FG), micro USB interface controllers (MUIC), batteries, multi-function 25 ----------------------------------- 28 The same device - e.g. MAX8997 uses two different I2C busses and addresses. [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | Battery.v1_3_0.json | 2 "$id": "http://redfish.dmtf.org/schemas/v1/Battery.v1_3_0.json", 3 "$ref": "#/definitions/Battery", 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 …"copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.or… 12 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 26 "#Battery.Calibrate": { 29 "#Battery.Reset": { 32 "#Battery.SelfTest": { 37 "description": "The available OEM-specific actions for this resource.", 38 …"longDescription": "This property shall contain the available OEM-specific actions for this resour… [all …]
|
/openbmc/linux/include/linux/ |
H A D | power_supply.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Universal power supply monitor class 29 * For systems where the charger determines the maximum battery capacity 189 POWER_SUPPLY_TYPE_USB_PD, /* Power Delivery Port */ 202 POWER_SUPPLY_USB_TYPE_PD, /* Power Delivery Port */ 204 POWER_SUPPLY_USB_TYPE_PD_PPS, /* PD Programmable Power Supply */ 226 /* Run-time specific power supply configuration */ 241 /* Description of power supply */ 251 * Functions for drivers implementing power supply class. 253 * this power supply. Instead use power_supply_*() functions (for [all …]
|
/openbmc/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-pm@vger.kernel.org [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 …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/ |
H A D | Battery_v1.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!----> 3 <!--################################################################################ --> 4 <!--# Redfish Schema: Battery v1.3.0 --> 5 <!--# --> 6 <!--# For a detailed change log, see the README file contained in the DSP8010 bundle, --> 7 <!--# available at http://www.dmtf.org/standards/redfish --> 8 <!--# Copyright 2014-2024 DMTF. --> 9 <!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright --> 10 <!--################################################################################ --> [all …]
|
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mxs/ |
H A D | spl_power_init.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <asm/arch/imx-regs.h> 24 * mxs_power_clock2xtal() - Switch CPU core clock source to 24MHz XTAL 39 &clkctrl_regs->hw_clkctrl_clkseq_set); in mxs_power_clock2xtal() 43 * mxs_power_clock2pll() - Switch CPU core clock source to PLL 46 * to PLL. This can only be called once the PLL has re-locked and once 63 setbits_le32(&clkctrl_regs->hw_clkctrl_pll0ctrl0, in mxs_power_clock2pll() 71 setbits_le32(&clkctrl_regs->hw_clkctrl_clkseq, in mxs_power_clock2pll() 76 * mxs_power_set_auto_restart() - Set the auto-restart bit 87 debug("SPL: Setting auto-restart bit\n"); in mxs_power_set_auto_restart() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|