| /linux/drivers/acpi/ |
| H A D | sbs.c | 89 struct acpi_battery battery[MAX_SBS_BAT]; member 99 static int acpi_battery_get_state(struct acpi_battery *battery); 109 static inline int acpi_battery_vscale(struct acpi_battery *battery) in acpi_battery_vscale() argument 111 return battery_scale((battery->spec & 0x0f00) >> 8); in acpi_battery_vscale() 114 static inline int acpi_battery_ipscale(struct acpi_battery *battery) in acpi_battery_ipscale() argument 116 return battery_scale((battery->spec & 0xf000) >> 12); in acpi_battery_ipscale() 119 static inline int acpi_battery_mode(struct acpi_battery *battery) in acpi_battery_mode() argument 121 return (battery->mode & 0x8000); in acpi_battery_mode() 124 static inline int acpi_battery_scale(struct acpi_battery *battery) in acpi_battery_scale() argument 126 return (acpi_battery_mode(battery) ? 10 : 1) * in acpi_battery_scale() [all …]
|
| /linux/Documentation/devicetree/bindings/rtc/ |
| H A 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/Documentation/power/ |
| H A 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 …]
|
| /linux/Documentation/hwmon/ |
| H A 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/drivers/hid/ |
| H A D | hid-logitech-hidpp.c | 205 struct hidpp_battery battery; member 526 usb_set_wireless_status(intf, hidpp->battery.online ? in hidpp_update_usb_wireless_status() 736 hidpp->battery.level = in hidpp10_query_battery_status() 739 hidpp->battery.status = status; in hidpp10_query_battery_status() 741 hidpp->battery.online = status == POWER_SUPPLY_STATUS_DISCHARGING || in hidpp10_query_battery_status() 788 hidpp->battery.capacity = response.rap.params[0]; in hidpp10_query_battery_mileage() 790 hidpp->battery.status = status; in hidpp10_query_battery_mileage() 792 hidpp->battery.online = status == POWER_SUPPLY_STATUS_DISCHARGING || in hidpp10_query_battery_mileage() 809 capacity = hidpp->battery.capacity; in hidpp10_battery_event() 815 level = hidpp->battery.level; in hidpp10_battery_event() [all …]
|
| H A D | hid-corsair-void.c | 160 struct power_supply *battery; member 546 if (drvdata->battery) in corsair_void_add_battery() 566 drvdata->battery = new_supply; in corsair_void_add_battery() 583 } else if (remove_battery && !add_battery && drvdata->battery) { in corsair_void_battery_work_handler() 584 power_supply_unregister(drvdata->battery); in corsair_void_battery_work_handler() 585 drvdata->battery = NULL; in corsair_void_battery_work_handler() 588 if (update_battery && drvdata->battery) in corsair_void_battery_work_handler() 589 power_supply_changed(drvdata->battery); in corsair_void_battery_work_handler() 689 drvdata->battery = NULL; in corsair_void_probe() 728 if (drvdata->battery) in corsair_void_remove() [all …]
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | sdm845-oneplus-fajita.dts | 15 battery: battery { label 16 compatible = "simple-battery"; 43 monitored-battery = <&battery>; 57 monitored-battery = <&battery>;
|
| H A D | msm8916-lg-m216.dts | 25 battery: battery { label 26 compatible = "simple-battery"; 126 monitored-battery = <&battery>; 136 monitored-battery = <&battery>;
|
| H A D | msm8916-wingtech-wt865x8.dtsi | 39 battery: battery { label 40 compatible = "simple-battery"; 107 monitored-battery = <&battery>;
|
| /linux/Documentation/ABI/obsolete/ |
| H A D | sysfs-driver-samsung-laptop | 5 Description: Max battery charge level can be modified, battery cycle 6 life can be extended by reducing the max battery charge 9 - 0 means normal battery mode (100% charge) 10 - 1 means battery life extender mode (80% charge)
|
| /linux/Documentation/wmi/devices/ |
| H A D | dell-wmi-ddv.rst | 11 retrieving various system data like battery temperature, ePPID, diagnostic data 80 with the first 8 bit being used to specify the battery when using battery-related 92 The data format of many battery-related methods seems to be based on the 93 `Smart Battery Data Specification`, so unknown battery-related methods are 99 Returns the design capacity of the battery in mAh as an u16. 104 Returns the full charge capacity of the battery in mAh as an u16. 109 Returns the manufacture name of the battery as an ASCII string. 114 Returns the manufacture date of the battery as an u16. 124 Returns the serial number of the battery as an u16. 129 Returns the chemistry of the battery as an ASCII string. [all …]
|
| /linux/arch/sh/boards/mach-hp6xx/ |
| H A 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/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3326-odroid-go2.dts | 40 battery: battery { label 41 compatible = "simple-battery"; 67 monitored-battery = <&battery>;
|
| H A D | rk3326-odroid-go2-v11.dts | 44 battery: battery { label 45 compatible = "simple-battery"; 106 monitored-battery = <&battery>;
|
| /linux/arch/arm/boot/dts/st/ |
| H A 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>;
|
| H A 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>;
|
| H A D | ste-href.dtsi | 16 battery: battery { label 17 compatible = "simple-battery"; 18 battery-type = "lithium-ion-polymer"; 22 battery-thermal { 23 /* This zone will be polled by the battery temperature code */ 29 battery-crit-hi {
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-power-gaokun | 1 What: /sys/class/power_supply/gaokun-ec-battery/smart_charge_delay 9 for delay hours, battery charging will follow the rules of 18 What: /sys/class/power_supply/gaokun-ec-battery/battery_adaptive_charge 23 This entry allows enabling battery adaptive charging.
|
| H A 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,
|
| H A 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.
|
| H A D | sysfs-platform-dptf | 21 (RO) Maximum platform power that can be supported by the battery 45 (RO) The maximum sustained power for battery in milliwatts. 66 (RO) The maximum platform power that can be supported by the battery in milli watts. 73 (RO) The maximum sustained power for battery in milli watts. 80 (RO) The high frequency impedance value that can be obtained from battery 88 (RO) The no-load voltage that can be obtained from battery fuel gauge in 96 (RO) The battery discharge current capability obtained from battery fuel gauge in
|
| /linux/drivers/usb/misc/ |
| H A D | apple-mfi-fastcharge.c | 46 struct power_supply *battery; member 204 mfi->battery = power_supply_register(&udev->dev, in mfi_fc_probe() 207 if (IS_ERR(mfi->battery)) { in mfi_fc_probe() 209 err = PTR_ERR(mfi->battery); in mfi_fc_probe() 230 if (mfi->battery) in mfi_fc_disconnect() 231 power_supply_unregister(mfi->battery); in mfi_fc_disconnect()
|
| /linux/Documentation/devicetree/bindings/goldfish/ |
| H A 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";
|
| /linux/drivers/power/supply/ |
| H A D | da9150-charger.c | 28 struct power_supply *battery; member 366 power_supply_changed(charger->battery); in da9150_charger_chg_irq() 389 power_supply_changed(charger->battery); in da9150_charger_vfault_irq() 405 charger->supply_online = charger->battery; in da9150_charger_vbus_irq() 418 power_supply_changed(charger->battery); in da9150_charger_vbus_irq() 437 power_supply_changed(charger->battery); in da9150_charger_otg_work() 545 charger->battery = devm_power_supply_register(dev, &battery_desc, NULL); in da9150_charger_probe() 546 if (IS_ERR(charger->battery)) in da9150_charger_probe() 547 return PTR_ERR(charger->battery); in da9150_charger_probe() 555 charger->supply_online = charger->battery; in da9150_charger_probe()
|
| H A D | cros_charge-control.c | 221 static int cros_chctl_add_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in cros_chctl_add_battery() argument 228 priv->hooked_battery = battery; in cros_chctl_add_battery() 229 return power_supply_register_extension(battery, priv->psy_ext, priv->dev, priv); in cros_chctl_add_battery() 232 static int cros_chctl_remove_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in cros_chctl_remove_battery() argument 236 if (priv->hooked_battery == battery) { in cros_chctl_remove_battery() 237 power_supply_unregister_extension(battery, priv->psy_ext); in cros_chctl_remove_battery()
|