/linux-6.1.9/drivers/acpi/ |
D | battery.c | 132 static inline int acpi_battery_present(struct acpi_battery *battery) in acpi_battery_present() argument 134 return battery->device->status.battery_present; in acpi_battery_present() 137 static int acpi_battery_technology(struct acpi_battery *battery) in acpi_battery_technology() argument 139 if (!strcasecmp("NiCd", battery->type)) in acpi_battery_technology() 141 if (!strcasecmp("NiMH", battery->type)) in acpi_battery_technology() 143 if (!strcasecmp("LION", battery->type)) in acpi_battery_technology() 145 if (!strncasecmp("LI-ION", battery->type, 6)) in acpi_battery_technology() 147 if (!strcasecmp("LiP", battery->type)) in acpi_battery_technology() 152 static int acpi_battery_get_state(struct acpi_battery *battery); 154 static int acpi_battery_is_charged(struct acpi_battery *battery) in acpi_battery_is_charged() argument [all …]
|
D | sbs.c | 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() 120 static inline int acpi_battery_mode(struct acpi_battery *battery) in acpi_battery_mode() argument 122 return (battery->mode & 0x8000); in acpi_battery_mode() 125 static inline int acpi_battery_scale(struct acpi_battery *battery) in acpi_battery_scale() argument 127 return (acpi_battery_mode(battery) ? 10 : 1) * in acpi_battery_scale() [all …]
|
/linux-6.1.9/drivers/power/supply/ |
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 | Kconfig | 45 battery class devices. 48 tristate "Generic battery support using IIO" 51 Say Y here to enable support for the generic battery driver 60 which include a battery charger and a boost converter. 63 tristate "MAX8925 battery charger support" 66 Say Y here to enable support for the battery charger in the Maxim 70 tristate "WM831X backup battery charger support" 73 Say Y here to enable support for the backup battery charger 96 tristate "Marvell 88PM860x battery driver" 99 Say Y here to enable battery monitor for Marvell 88PM860x chip. [all …]
|
/linux-6.1.9/Documentation/devicetree/bindings/power/supply/ |
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 | battery.yaml | 4 $id: http://devicetree.org/schemas/power/supply/battery.yaml# 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 28 The phandle's property should be named "monitored-battery". 32 const: simple-battery 35 description: This describes the chemical technology of the battery. 43 lithium ion battery is employed and this wide compatible can be used. 49 description: battery over-voltage limit [all …]
|
D | cpcap-battery.yaml | 5 $id: http://devicetree.org/schemas/power/supply/cpcap-battery.yaml# 8 title: Motorola CPCAP PMIC battery 16 the Droid 4. This binding describes its battery fuel gauge 24 const: motorola,cpcap-battery 29 - description: low battery percentage interrupt 30 - description: critical battery percentage interrupt 32 - description: battery detect interrupt 46 - description: battery temperature 47 - description: battery voltage 48 - description: battery charge current [all …]
|
D | samsung,battery.yaml | 4 $id: http://devicetree.org/schemas/power/supply/samsung,battery.yaml# 16 the physical restrictions make it impossible to use another battery with the 25 description: 3.8V 1500 mAh battery used in Samsung GT-I8190 27 description: 3.8V 1500 mAh battery used in Samsung SGH-T599 and SGH-I407 29 description: 3.8V 1500 mAh battery used in Samsung GT-I8160 31 description: 3.8V 1700 mAh battery used in Samsung GT-S7710 33 description: 3.8V 1500 mAh battery used in Samsung GT-I9070 35 description: 3.8V 2000 mAh battery used in Samsung GT-I8530 48 battery: battery { 54 monitored-battery = <&battery>;
|
D | stericsson,ab8500-battery.txt | 2 information about the battery connected to the PMIC. 8 A boolean value indicating thermistor interface to battery 11 'btemp' and 'batctrl' are the pins interfaced for battery temperature 13 coefficient) resister is interfaced external to battery whereas 14 'batctrl' pin is used when NTC resister is internal to battery. 20 indicates: NTC resister is internal to battery, 'batctrl' is used 24 NTC resister is external to battery and 'btemp' signal is used 27 battery-type: 28 This shall be the battery manufacturing technology type, 33 stericsson,battery-type = "LIPO";
|
D | charger-manager.yaml | 29 description: name of battery fuel gauge 34 default: battery 51 cm-battery-stat: 52 description: battery status 55 - 0 # battery always present 56 - 1 # no battery 68 description: voltage of full battery in uV 72 description: state of charge to consider as full battery in % 76 description: capcity to consider as full battery in uAh 91 cm-battery-cold: [all …]
|
D | lego,ev3-battery.yaml | 4 $id: http://devicetree.org/schemas/power/supply/lego,ev3-battery.yaml# 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. 23 const: lego,ev3-battery 27 - description: ADC channel for battery voltage 28 - description: ADC channel for battery current 37 description: Rechargeable battery indication gpio 50 battery { 51 compatible = "lego,ev3-battery";
|
D | x-powers,axp20x-battery-power-supply.yaml | 4 $id: http://devicetree.org/schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml# 10 The supported devices can read the battery voltage, charge and discharge 11 currents of the battery by reading ADC channels from the ADC. 23 - const: x-powers,axp202-battery-power-supply 24 - const: x-powers,axp209-battery-power-supply 25 - const: x-powers,axp221-battery-power-supply 27 - const: x-powers,axp803-battery-power-supply 28 - const: x-powers,axp813-battery-power-supply 29 - const: x-powers,axp813-battery-power-supply
|
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 27 - sbs,sbs-battery 29 - const: sbs,sbs-battery 47 sbs,battery-detect-gpios: 49 GPIO which signals battery detection. If this is not supplied, the bus 50 needs to be polled to detect the battery. 58 the bus. Also some SBS battery fuel gauges are known to have a buggy multi- 76 battery@b { [all …]
|
D | bq24190.yaml | 38 when power is connected and the battery is below minimum system voltage, 41 omit-battery-class: 45 battery device. 47 monitored-battery: 50 phandle to a "simple-battery" compatible node. 53 in battery.yaml, with the following properties being required: 55 (typically 20% of battery capacity). 56 - charge-term-current-microamp: a charge cycle terminates when the battery voltage is 58 setting (typically 10% of battery capacity). 72 bat: battery { [all …]
|
D | sbs,sbs-manager.yaml | 60 batman: battery-manager@a { 74 battery@b { 75 compatible = "ti,bq20z65", "sbs,sbs-battery"; 77 sbs,battery-detect-gpios = <&batman 1 1>; 86 battery@b { 87 compatible = "ti,bq20z65", "sbs,sbs-battery"; 89 sbs,battery-detect-gpios = <&batman 2 1>; 98 battery@b { 99 compatible = "ti,bq20z65", "sbs,sbs-battery"; 101 sbs,battery-detect-gpios = <&batman 3 1>;
|
D | rohm,bd99954.yaml | 16 secondary battery intended to be used in space-constraint equipment such 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) 100 # to the point where the battery voltage drops below this limit 102 # battery is expected to be faulty if battery voltage exceeds this limit. 103 # Charger will then enter to a "battery faulty" -state 111 # a charge cycle terminates when the battery voltage is above recharge [all …]
|
D | sc2731-charger.yaml | 7 title: Spreadtrum SC2731 PMICs battery charger binding 26 monitored-battery: 28 The charger uses the following battery properties 31 See Documentation/devicetree/bindings/power/supply/battery.yaml 37 bat: battery { 38 compatible = "simple-battery"; 47 battery@a00 { 51 monitored-battery = <&bat>;
|
D | nokia,n900-battery.yaml | 4 $id: http://devicetree.org/schemas/power/supply/nokia,n900-battery.yaml# 7 title: Nokia N900 battery 18 const: nokia,n900-battery 23 - description: ADC channel for battery size identification 24 - description: ADC channel to measure the battery voltage 41 battery { 42 compatible = "nokia,n900-battery";
|
D | sc27xx-fg.yaml | 27 battery-detect-gpios: 50 monitored-battery: true 55 - battery-detect-gpios 61 - monitored-battery 68 bat: battery { 69 compatible = "simple-battery"; 87 battery@a00 { 90 battery-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>; 95 monitored-battery = <&bat>;
|
D | richtek,rt5033-battery.yaml | 4 $id: http://devicetree.org/schemas/power/supply/richtek,rt5033-battery.yaml# 17 const: richtek,rt5033-battery 37 battery@35 { 38 compatible = "richtek,rt5033-battery"; 48 battery@35 { 49 compatible = "richtek,rt5033-battery";
|
D | stericsson,ab8500-btemp.yaml | 20 monitored-battery: 22 description: phandle to battery node 24 battery: 49 - monitored-battery 61 battery-temperature { 63 monitored-battery = <&battery>;
|
/linux-6.1.9/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-6.1.9/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 …]
|
/linux-6.1.9/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 …]
|