| /Linux-v6.1/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-v6.1/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 …]
|
| D | ds2782_battery.c | 56 struct power_supply *battery; member 285 power_supply_changed(info->battery); in ds278x_bat_update() 306 static void ds278x_power_supply_init(struct power_supply_desc *battery) in ds278x_power_supply_init() argument 308 battery->type = POWER_SUPPLY_TYPE_BATTERY; in ds278x_power_supply_init() 309 battery->properties = ds278x_battery_props; in ds278x_power_supply_init() 310 battery->num_properties = ARRAY_SIZE(ds278x_battery_props); in ds278x_power_supply_init() 311 battery->get_property = ds278x_battery_get_property; in ds278x_power_supply_init() 312 battery->external_power_changed = NULL; in ds278x_power_supply_init() 320 power_supply_unregister(info->battery); in ds278x_battery_remove() 425 info->battery = power_supply_register(&client->dev, in ds278x_battery_probe() [all …]
|
| D | Makefile | 10 obj-$(CONFIG_GENERIC_ADC_BATTERY) += generic-adc-battery.o 27 obj-$(CONFIG_BATTERY_CPCAP) += cpcap-battery.o 33 obj-$(CONFIG_BATTERY_GAUGE_LTC2941) += ltc2941-battery-gauge.o 38 obj-$(CONFIG_BATTERY_SAMSUNG_SDI) += samsung-sdi-battery.o 41 obj-$(CONFIG_BATTERY_INGENIC) += ingenic-battery.o 44 obj-$(CONFIG_BATTERY_SBS) += sbs-battery.o 51 obj-$(CONFIG_BATTERY_DA9052) += da9052-battery.o
|
| D | da9150-charger.c | 30 struct power_supply *battery; member 368 power_supply_changed(charger->battery); in da9150_charger_chg_irq() 391 power_supply_changed(charger->battery); in da9150_charger_vfault_irq() 407 charger->supply_online = charger->battery; in da9150_charger_vbus_irq() 420 power_supply_changed(charger->battery); in da9150_charger_vbus_irq() 439 power_supply_changed(charger->battery); in da9150_charger_otg_work() 562 charger->battery = power_supply_register(dev, &battery_desc, NULL); in da9150_charger_probe() 563 if (IS_ERR(charger->battery)) { in da9150_charger_probe() 564 ret = PTR_ERR(charger->battery); in da9150_charger_probe() 574 charger->supply_online = charger->battery; in da9150_charger_probe() [all …]
|
| /Linux-v6.1/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-v6.1/Documentation/devicetree/bindings/power/supply/ |
| 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";
|
| /Linux-v6.1/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-v6.1/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-v6.1/drivers/hid/ |
| D | hid-logitech-hidpp.c | 206 struct hidpp_battery battery; member 663 hidpp->battery.level = in hidpp10_query_battery_status() 666 hidpp->battery.status = status; in hidpp10_query_battery_status() 668 hidpp->battery.online = status == POWER_SUPPLY_STATUS_DISCHARGING || in hidpp10_query_battery_status() 715 hidpp->battery.capacity = response.rap.params[0]; in hidpp10_query_battery_mileage() 717 hidpp->battery.status = status; in hidpp10_query_battery_mileage() 719 hidpp->battery.online = status == POWER_SUPPLY_STATUS_DISCHARGING || in hidpp10_query_battery_mileage() 736 capacity = hidpp->battery.capacity; in hidpp10_battery_event() 742 level = hidpp->battery.level; in hidpp10_battery_event() 749 changed = capacity != hidpp->battery.capacity || in hidpp10_battery_event() [all …]
|
| D | hid-steam.c | 124 struct power_supply __rcu *battery; member 358 struct power_supply *battery; in steam_battery_register() local 379 battery = power_supply_register(&steam->hdev->dev, in steam_battery_register() 381 if (IS_ERR(battery)) { in steam_battery_register() 382 ret = PTR_ERR(battery); in steam_battery_register() 388 rcu_assign_pointer(steam->battery, battery); in steam_battery_register() 389 power_supply_powers(battery, &steam->hdev->dev); in steam_battery_register() 496 struct power_supply *battery; in steam_battery_unregister() local 499 battery = rcu_dereference(steam->battery); in steam_battery_unregister() 502 if (!battery) in steam_battery_unregister() [all …]
|
| /Linux-v6.1/arch/arm64/boot/dts/qcom/ |
| D | sdm845-oneplus-enchilada.dts | 17 battery: battery { label 18 compatible = "simple-battery"; 33 monitored-battery = <&battery>;
|
| D | sdm845-oneplus-fajita.dts | 17 battery: battery { label 18 compatible = "simple-battery"; 33 monitored-battery = <&battery>;
|
| /Linux-v6.1/arch/sh/boards/mach-hp6xx/ |
| D | hp6xx_apm.c | 32 int battery, backup, charging, percentage; in hp6x0_apm_get_power_status() local 35 battery = adc_single(ADC_CHANNEL_BATTERY); in hp6x0_apm_get_power_status() 39 percentage = 100 * (battery - HP680_BATTERY_MIN) / in hp6x0_apm_get_power_status() 49 info->time = (2 * battery); in hp6x0_apm_get_power_status() 51 info->ac_line_status = (battery > HP680_BATTERY_AC_ON) ? in hp6x0_apm_get_power_status()
|
| /Linux-v6.1/Documentation/ABI/testing/ |
| D | sysfs-class-power | 47 Reports an average IBAT current reading for the battery, over 70 Reports the maximum IBAT current allowed into the battery. 87 battery. This value is not averaged/smoothed. 110 Reports the current TBAT battery temperature reading. 177 Reports the maximum allowed TBAT battery temperature for 194 Reports the minimum allowed TBAT battery temperature for 212 battery, during charging. 229 battery, during discharging. 246 battery. This value is not averaged/smoothed. 267 Fine grain representation of battery capacity. [all …]
|
| D | sysfs-class-power-ltc4162l | 23 means that the battery is discharging. 53 To save battery current, the measurement system is disabled if 54 the battery is the only source of power. This affects all 57 seconds, even when running on battery (as reported by the online 59 when the system runs on battery). 69 The charger will normally drain the battery while inactive,
|
| D | sysfs-driver-samsung-laptop | 27 Description: Max battery charge level can be modified, battery cycle 28 life can be extended by reducing the max battery charge 31 - 0 means normal battery mode (100% charge) 32 - 1 means battery life extender mode (80% charge)
|
| D | sysfs-class-power-wilco | 8 Fully charges battery at a standard rate. 11 typical battery usage pattern. 15 Extends battery lifespan, intended for users who 23 Customized charge rate for last longer battery life.
|
| /Linux-v6.1/arch/arm/boot/dts/ |
| D | ste-ab8505.dtsi | 13 <&gpadc 0x08>, /* Main battery voltage */ 16 <&gpadc 0x0c>, /* Backup battery voltage */ 115 monitored-battery = <&battery>; 132 monitored-battery = <&battery>; 169 monitored-battery = <&battery>; 179 monitored-battery = <&battery>;
|
| D | ste-ab8500.dtsi | 14 <&gpadc 0x08>, /* Main battery voltage */ 18 <&gpadc 0x0c>, /* Backup battery voltage */ 143 monitored-battery = <&battery>; 160 monitored-battery = <&battery>; 197 monitored-battery = <&battery>; 211 monitored-battery = <&battery>;
|
| /Linux-v6.1/drivers/usb/misc/ |
| D | apple-mfi-fastcharge.c | 46 struct power_supply *battery; member 193 mfi->battery = power_supply_register(&udev->dev, in mfi_fc_probe() 196 if (IS_ERR(mfi->battery)) { in mfi_fc_probe() 198 err = PTR_ERR(mfi->battery); in mfi_fc_probe() 214 if (mfi->battery) in mfi_fc_disconnect() 215 power_supply_unregister(mfi->battery); in mfi_fc_disconnect()
|
| /Linux-v6.1/Documentation/devicetree/bindings/goldfish/ |
| D | battery.txt | 3 Android goldfish battery device generated by android emulator. 7 - compatible : should contain "google,goldfish-battery" to match emulator 14 compatible = "google,goldfish-battery";
|