/linux-6.12.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 | 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-6.12.1/drivers/power/supply/ |
D | rt5033_battery.c | 24 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_status() local 28 ret = power_supply_get_property_from_supplier(battery->psy, in rt5033_battery_get_status() 39 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_capacity() local 42 regmap_read(battery->regmap, RT5033_FUEL_REG_SOC_H, &msb); in rt5033_battery_get_capacity() 49 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_present() local 52 regmap_read(battery->regmap, RT5033_FUEL_REG_CONFIG_L, &val); in rt5033_battery_get_present() 60 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_watt_prop() local 82 regmap_read(battery->regmap, regh, &msb); in rt5033_battery_get_watt_prop() 83 regmap_read(battery->regmap, regl, &lsb); in rt5033_battery_get_watt_prop() 94 struct rt5033_battery *battery = power_supply_get_drvdata(psy); in rt5033_battery_get_property() local [all …]
|
D | Kconfig | 36 battery class devices. 39 tristate "Generic battery support using IIO" 42 Say Y here to enable support for the generic battery driver 51 which include a battery charger and a boost converter. 54 tristate "MAX8925 battery charger support" 57 Say Y here to enable support for the battery charger in the Maxim 61 tristate "WM831X backup battery charger support" 64 Say Y here to enable support for the backup battery charger 87 tristate "Marvell 88PM860x battery driver" 90 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 …]
|
/linux-6.12.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-6.12.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-6.12.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-6.12.1/drivers/hid/ |
D | hid-logitech-hidpp.c | 203 struct hidpp_battery battery; member 519 usb_set_wireless_status(intf, hidpp->battery.online ? in hidpp_update_usb_wireless_status() 729 hidpp->battery.level = in hidpp10_query_battery_status() 732 hidpp->battery.status = status; in hidpp10_query_battery_status() 734 hidpp->battery.online = status == POWER_SUPPLY_STATUS_DISCHARGING || in hidpp10_query_battery_status() 781 hidpp->battery.capacity = response.rap.params[0]; in hidpp10_query_battery_mileage() 783 hidpp->battery.status = status; in hidpp10_query_battery_mileage() 785 hidpp->battery.online = status == POWER_SUPPLY_STATUS_DISCHARGING || in hidpp10_query_battery_mileage() 802 capacity = hidpp->battery.capacity; in hidpp10_battery_event() 808 level = hidpp->battery.level; in hidpp10_battery_event() [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/qcom/ |
D | sdm845-oneplus-fajita.dts | 17 battery: battery { label 18 compatible = "simple-battery"; 37 monitored-battery = <&battery>; 51 monitored-battery = <&battery>;
|
D | sdm845-oneplus-enchilada.dts | 17 battery: battery { label 18 compatible = "simple-battery"; 33 monitored-battery = <&battery>; 55 monitored-battery = <&battery>;
|
D | msm8916-lg-m216.dts | 25 battery: battery { label 26 compatible = "simple-battery"; 123 monitored-battery = <&battery>; 133 monitored-battery = <&battery>;
|
/linux-6.12.1/Documentation/wmi/devices/ |
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. 127 Returns the serial number of the battery as an u16. 132 Returns the chemistry of the battery as an ASCII string. [all …]
|
/linux-6.12.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-6.12.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-6.12.1/arch/arm64/boot/dts/rockchip/ |
D | rk3326-odroid-go2.dts | 40 battery: battery { label 41 compatible = "simple-battery"; 67 monitored-battery = <&battery>;
|
D | rk3566-anbernic-rg353vs.dts | 20 battery: battery { label 21 compatible = "simple-battery"; 82 monitored-battery = <&battery>;
|
/linux-6.12.1/arch/arm/boot/dts/st/ |
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-6.12.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-6.12.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";
|