/Linux-v5.10/drivers/acpi/ |
D | battery.c | 3 * battery.c - ACPI Battery Driver (Revision: 2.0) 30 #include <acpi/battery.h> 38 #define ACPI_BATTERY_DEVICE_NAME "Battery" 40 /* Battery power unit: 0 means mW, 1 means mA */ 49 ACPI_MODULE_NAME("battery"); 53 MODULE_DESCRIPTION("ACPI Battery Driver"); 73 /* Lists of PMIC ACPI HIDs with an (often better) native battery driver */ 84 is running on battery or not. When mAh is the unit, most 139 static inline int acpi_battery_present(struct acpi_battery *battery) in acpi_battery_present() argument 141 return battery->device->status.battery_present; in acpi_battery_present() [all …]
|
D | sbs.c | 3 * sbs.c - ACPI Smart Battery System Driver ($Revision: 2.0 $) 22 #include <acpi/battery.h> 30 #define ACPI_SBS_DEVICE_NAME "Smart Battery System" 38 MODULE_DESCRIPTION("Smart Battery System ACPI interface driver"); 90 struct acpi_battery battery[MAX_SBS_BAT]; member 100 static int acpi_battery_get_state(struct acpi_battery *battery); 110 static inline int acpi_battery_vscale(struct acpi_battery *battery) in acpi_battery_vscale() argument 112 return battery_scale((battery->spec & 0x0f00) >> 8); in acpi_battery_vscale() 115 static inline int acpi_battery_ipscale(struct acpi_battery *battery) in acpi_battery_ipscale() argument 117 return battery_scale((battery->spec & 0xf000) >> 12); in acpi_battery_ipscale() [all …]
|
/Linux-v5.10/drivers/power/supply/ |
D | Kconfig | 45 battery class devices. 48 tristate "Generic battery support using IIO" 51 Say Y here to enable support for the generic battery driver 55 tristate "MAX8925 battery charger support" 58 Say Y here to enable support for the battery charger in the Maxim 62 tristate "WM831X backup battery charger support" 65 Say Y here to enable support for the backup battery charger 88 tristate "Marvell 88PM860x battery driver" 91 Say Y here to enable battery monitor for Marvell 88PM860x chip. 94 tristate "ADP5061 battery charger driver" [all …]
|
D | rt5033_battery.c | 17 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_capacity() local 20 regmap_read(battery->regmap, RT5033_FUEL_REG_SOC_H, &msb); in rt5033_battery_get_capacity() 27 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_present() local 30 regmap_read(battery->regmap, RT5033_FUEL_REG_CONFIG_L, &val); in rt5033_battery_get_present() 38 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_watt_prop() local 60 regmap_read(battery->regmap, regh, &msb); in rt5033_battery_get_watt_prop() 61 regmap_read(battery->regmap, regl, &lsb); in rt5033_battery_get_watt_prop() 72 struct rt5033_battery *battery = power_supply_get_drvdata(psy); in rt5033_battery_get_property() local 78 val->intval = rt5033_battery_get_watt_prop(battery->client, in rt5033_battery_get_property() 82 val->intval = rt5033_battery_get_present(battery->client); in rt5033_battery_get_property() [all …]
|
D | ingenic-battery.c | 3 * Battery driver for the Ingenic JZ47xx SoCs 6 * based on drivers/power/supply/jz4740-battery.c 20 struct power_supply *battery; member 59 * based on the battery's max voltage. 136 bat->channel = devm_iio_channel_get(dev, "battery"); in ingenic_battery_probe() 141 desc->name = "jz-battery"; in ingenic_battery_probe() 149 bat->battery = devm_power_supply_register(dev, desc, &psy_cfg); in ingenic_battery_probe() 150 if (IS_ERR(bat->battery)) in ingenic_battery_probe() 151 return dev_err_probe(dev, PTR_ERR(bat->battery), in ingenic_battery_probe() 152 "Unable to register battery\n"); in ingenic_battery_probe() [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/power/supply/ |
D | battery.yaml | 4 $id: http://devicetree.org/schemas/power/supply/battery.yaml# 7 title: Battery Characteristics 13 The devicetree battery node provides static battery characteristics. 15 on a fuel gauge chip. The battery node should be used where there is 18 Upstream dts files should not include battery nodes, unless the battery 21 behavior should a replacement that changes the battery type occur 24 Battery properties are named, where possible, for the corresponding elements 28 The phandle's property should be named "monitored-battery". 32 const: simple-battery 35 description: battery over-voltage limit [all …]
|
D | ingenic,battery.yaml | 5 $id: "http://devicetree.org/schemas/power/supply/ingenic,battery.yaml#" 8 title: Ingenic JZ47xx battery bindings 16 - const: ingenic,jz4740-battery 19 - ingenic,jz4725b-battery 20 - ingenic,jz4770-battery 21 - const: ingenic,jz4740-battery 27 const: battery 29 monitored-battery: 31 phandle to a "simple-battery" compatible node. 34 in battery.yaml, with the following properties being required: [all …]
|
D | charger-manager.txt | 8 - cm-fuel-gauge : name of battery fuel gauge 20 - cm-name : charger manager's name (default : "battery") 25 - cm-battery-stat : battery status - 0 for battery always present, 1 for no 26 battery, 2 to check presence via fuel gauge, or 3 to check presence 29 - cm-fullbatt-voltage : voltage (in uV) of full battery 30 - cm-fullbatt-soc : state of charge to consider as full battery 31 - cm-fullbatt-capacity : capcity (in uAh) to consider as full battery 33 - cm-battery-* : threshold battery temperature for charging 34 -cold : critical cold temperature of battery for charging 36 -hot : critical hot temperature of battery for charging [all …]
|
D | sbs,sbs-battery.yaml | 4 $id: http://devicetree.org/schemas/power/supply/sbs,sbs-battery.yaml# 7 title: SBS compliant battery 13 Battery compatible with the smart battery system specifications 24 - sbs,sbs-battery 26 - const: sbs,sbs-battery 44 sbs,battery-detect-gpios: 46 GPIO which signals battery detection. If this is not supplied, the bus 47 needs to be polled to detect the battery. 55 the bus. Also some SBS battery fuel gauges are known to have a buggy multi- 73 battery@b { [all …]
|
D | bq24190.txt | 1 TI BQ24190 Li-Ion Battery Charger 13 - monitored-battery: phandle of battery characteristics devicetree node 14 The charger uses the following battery properties: 16 phase (typically 20% of battery capacity). 18 battery voltage is above recharge threshold, and the current is below 19 this setting (typically 10% of battery capacity). 20 See also Documentation/devicetree/bindings/power/supply/battery.txt 21 - ti,system-minimum-microvolt: when power is connected and the battery is below 37 bat: battery { 38 compatible = "simple-battery"; [all …]
|
D | rohm,bd99954.yaml | 7 title: ROHM BD99954 Battery charger 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 18 provides a Dual-source Battery Charger, two port BC1.2 detection and a 19 Battery Monitor. 26 # The battery charging profile of BD99954. 29 # Curve (2) represents battery voltage. 36 # Then constant voltage (CV) phase (after the battery voltage has reached 68 # The charger uses the following battery properties 91 # when battery voltage exceeds this limit voltage (3 in above chart) [all …]
|
D | axp20x_battery.txt | 1 AXP20x and AXP22x battery power supply 5 "x-powers,axp209-battery-power-supply" 6 "x-powers,axp221-battery-power-supply" 7 "x-powers,axp813-battery-power-supply" 11 The supported devices can read the battery voltage, charge and discharge 12 currents of the battery by reading ADC channels from the ADC. 17 battery_power_supply: battery-power-supply { 18 compatible = "x-powers,axp209-battery-power-supply";
|
D | cw2015_battery.yaml | 7 title: Battery driver for CW2015 shuntless fuel gauge by CellWise. 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. 24 cellwise,battery-profile: 26 This property specifies characteristics of the battery used. The format 41 Specifies supplies used for charging the battery connected to this gauge 46 monitored-battery: 48 Specifies the phandle of a simple-battery connected to this gauge 66 cellwise,battery-profile = /bits/ 8 < [all …]
|
D | rx51-battery.txt | 1 Binding for Nokia N900 battery 3 The Nokia N900 battery status can be read via the TWL4030's A/D converter. 7 * "nokia,n900-battery" 12 * "bsi" - The ADC channel for battery size identification 13 * "vbat" - The ADC channel to measure the battery voltage 17 battery: n900-battery { 18 compatible = "nokia,n900-battery";
|
D | lego_ev3_battery.txt | 1 LEGO MINDSTORMS EV3 Battery 4 LEGO MINDSTORMS EV3 has some built-in capability for monitoring the battery. 5 It uses 6 AA batteries or a special Li-ion rechargeable battery pack that is 6 detected by a key switch in the battery compartment. 9 - compatible: Must be "lego,ev3-battery" 12 - rechargeable-gpios: phandle to the rechargeable battery indication gpio 16 battery { 17 compatible = "lego,ev3-battery";
|
D | sbs,sbs-manager.txt | 16 four smart battery devices at address 0xb. The driver actually implements this 36 battery@b { 37 compatible = "ti,bq2060", "sbs,sbs-battery"; 39 sbs,battery-detect-gpios = <&batman 1 1>; 48 battery@b { 49 compatible = "ti,bq2060", "sbs,sbs-battery"; 51 sbs,battery-detect-gpios = <&batman 2 1>; 60 battery@b { 61 compatible = "ti,bq2060", "sbs,sbs-battery"; 63 sbs,battery-detect-gpios = <&batman 3 1>;
|
D | sc2731_charger.txt | 1 Spreadtrum SC2731 PMIC battery charger binding 9 - monitored-battery: phandle of battery characteristics devicetree node. 10 The charger uses the following battery properties: 13 See Documentation/devicetree/bindings/power/supply/battery.txt 17 bat: battery { 18 compatible = "simple-battery"; 38 monitored-battery = <&bat>;
|
D | sc27xx-fg.txt | 11 - battery-detect-gpios: GPIO for battery detection. 18 - monitored-battery: Phandle of battery characteristics devicetree node. 19 See Documentation/devicetree/bindings/power/supply/battery.txt 23 bat: battery { 24 compatible = "simple-battery"; 51 battery-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>; 56 monitored-battery = <&bat>;
|
/Linux-v5.10/Documentation/power/ |
D | charger-manager.rst | 7 Charger Manager provides in-kernel battery charger management that 9 and where each battery may have multiple chargers attached and the userland 14 represents an independent battery with chargers. If there are multiple 27 different information about the battery status. This framework 32 While the battery is being charged and the system is in suspend-to-RAM, 33 we may need to monitor the battery health by looking at the ambient or 34 battery temperature. We can accomplish this by waking up the system 36 monitoring the battery health and tasks, and user processes that are 41 only affects the charging time, but the lifespan of the battery. 50 * Support for premature full-battery event handling [all …]
|
D | power_supply_class.rst | 7 Power supply class used to represent battery, UPS, AC or DC power supply 25 typically expected feedback of battery charging/fully charged status and 64 | of battery, this class distinguish these terms. Don't mix them!** | 85 `BATTERY_STATUS_*` values, as defined in battery.h. 94 indicates the power supply (battery or charger) connected 98 represents health of the battery, values corresponds to 99 POWER_SUPPLY_HEALTH_*, defined in battery.h. 102 open circuit voltage of the battery. 106 Maximal/minimal means values of voltages when battery considered 108 between voltage and battery capacity, but some dumb [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/power/supply/ab8500/ |
D | fg.txt | 10 main-charger, usb-combo-charger and battery-temperature-monitoring. 16 - battery = Shall be battery specific information 20 battery = <&ab8500_battery>; 27 'battery technology type' used. 31 A boolean value indicating thermistor interface to battery 34 'btemp' and 'batctrl' are the pins interfaced for battery temperature 36 coefficient) resister is interfaced external to battery whereas 37 'batctrl' pin is used when NTC resister is internal to battery. 43 indicates: NTC resister is internal to battery, 'batctrl' is used 47 NTC resister is external to battery and 'btemp' signal is used [all …]
|
/Linux-v5.10/Documentation/ABI/testing/ |
D | sysfs-class-power | 37 Valid values: "Battery", "UPS", "Mains", "USB", "Wireless" 39 **Battery and USB properties** 45 Battery: 47 Reports an average IBAT current reading for the battery, over 68 Battery: 70 Reports the maximum IBAT current allowed into the battery. 84 Battery: 87 battery. This value is not averaged/smoothed. 108 Battery: 110 Reports the current TBAT battery temperature reading. [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/rtc/ |
D | rtc-palmas.txt | 10 - ti,backup-battery-chargeable: The Palmas series device like TPS65913 or 11 TPS80036 supports the backup battery for powering the RTC when main 12 battery is removed or in very low power state. The backup battery 14 battery is chargeable or not. If charging battery then driver can 16 - ti,backup-battery-charge-high-current: Enable high current charging in 17 backup battery. Device supports the < 100uA and > 100uA charging. 19 charge battery to lower current i.e. < 100uA. 28 ti,backup-battery-chargeable; 29 ti,backup-battery-charge-high-current;
|
/Linux-v5.10/include/linux/mfd/ |
D | abx500.h | 31 /* Battery driver related data */ 33 * ADC for the battery thermistor. 34 * When using the ABx500_ADC_THERM_BATCTRL the battery ID resistor is combined 35 * with a NTC resistor to both identify the battery and to measure its 37 * identify the battery and to read its temperature. 46 * be used in battery packs that combines the identification resistor with a 48 * @temp: battery pack temperature in Celsius 81 * @lowbat_threshold: Low battery threshold, in mV 82 * @overbat_threshold: Over battery threshold, in mV 91 * battery full while in maintenance, in per cent [all …]
|
/Linux-v5.10/Documentation/hwmon/ |
D | da9052.rst | 27 Channel 1 ICH - internal battery charger current measurement 28 Channel 2 TBAT - output from the battery NTC 29 Channel 3 VBAT - measurement of the battery voltage 36 Channel 9 VBBAT - measurement of the backup battery voltage 39 By using sysfs attributes we can measure the system voltage VDDOUT, the battery 40 charging current ICH, battery temperature TBAT, battery junction temperature 41 TJUNC, battery voltage VBAT and the back up battery voltage VBBAT. 48 The battery voltage is calculated as: 52 The backup battery voltage is calculated as: 63 Temperatures are sampled by a 10 bit ADC. Junction and battery temperatures [all …]
|