| /Linux-v5.10/drivers/acpi/ |
| D | battery.c | 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() 144 static int acpi_battery_technology(struct acpi_battery *battery) in acpi_battery_technology() argument 146 if (!strcasecmp("NiCd", battery->type)) in acpi_battery_technology() 148 if (!strcasecmp("NiMH", battery->type)) in acpi_battery_technology() 150 if (!strcasecmp("LION", battery->type)) in acpi_battery_technology() 152 if (!strncasecmp("LI-ION", battery->type, 6)) in acpi_battery_technology() 154 if (!strcasecmp("LiP", battery->type)) in acpi_battery_technology() 159 static int acpi_battery_get_state(struct acpi_battery *battery); 161 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-v5.10/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 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 | 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() 427 info->battery = power_supply_register(&client->dev, in ds278x_battery_probe() [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 …]
|
| D | btemp.txt | 7 - battery = Shall be battery specific information 12 battery = <&ab8500_battery>; 15 For information on battery specific node, Ref:
|
| D | chargalg.txt | 7 - battery = Shall be battery specific information 12 battery = <&ab8500_battery>; 15 For information on battery specific node, Ref:
|
| /Linux-v5.10/Documentation/devicetree/bindings/power/supply/ |
| 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 | 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 | 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 | bq24190.txt | 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"; 48 monitored-battery = <&bat>;
|
| 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 | 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 | lego_ev3_battery.txt | 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 | 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>;
|
| D | bq2415x.txt | 20 - ti,weak-battery-voltage: integer, weak battery voltage threshold in mV. 21 The chip will use slow precharge if battery voltage 23 - ti,battery-regulation-voltage: integer, maximum charging voltage in mV. 40 ti,weak-battery-voltage = <3400>; 41 ti,battery-regulation-voltage = <4200>;
|
| D | max17042_battery.txt | 18 - maxim,cold-temp : Temperature threshold to report battery 20 - maxim,over-heat-temp : Temperature threshold to report battery 22 - maxim,dead-volt : Voltage threshold to report battery 24 - maxim,over-volt : Voltage threshold to report battery 29 battery-charger@36 {
|
| /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/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-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/drivers/block/ |
| D | umem.c | 130 } battery[2]; member 655 if (card->battery[0].good && card->battery[1].good) in set_fault_to_battery_status() 657 else if (card->battery[0].warned || card->battery[1].warned) in set_fault_to_battery_status() 659 else if (!card->battery[0].good && !card->battery[1].good) in set_fault_to_battery_status() 667 static int check_battery(struct cardinfo *card, int battery, int status) in check_battery() argument 669 if (status != card->battery[battery].good) { in check_battery() 670 card->battery[battery].good = !card->battery[battery].good; in check_battery() 671 card->battery[battery].last_change = jiffies; in check_battery() 673 if (card->battery[battery].good) { in check_battery() 675 "Battery %d now good\n", battery + 1); in check_battery() [all …]
|
| /Linux-v5.10/drivers/hid/ |
| D | hid-logitech-hidpp.c | 198 struct hidpp_battery battery; member 654 hidpp->battery.level = in hidpp10_query_battery_status() 657 hidpp->battery.status = status; in hidpp10_query_battery_status() 659 hidpp->battery.online = status == POWER_SUPPLY_STATUS_DISCHARGING || in hidpp10_query_battery_status() 706 hidpp->battery.capacity = response.rap.params[0]; in hidpp10_query_battery_mileage() 708 hidpp->battery.status = status; in hidpp10_query_battery_mileage() 710 hidpp->battery.online = status == POWER_SUPPLY_STATUS_DISCHARGING || in hidpp10_query_battery_mileage() 727 capacity = hidpp->battery.capacity; in hidpp10_battery_event() 733 level = hidpp->battery.level; in hidpp10_battery_event() 740 changed = capacity != hidpp->battery.capacity || in hidpp10_battery_event() [all …]
|
| /Linux-v5.10/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()
|