Home
last modified time | relevance | path

Searched refs:battery (Results 1 – 174 of 174) sorted by relevance

/linux-4.4.14/drivers/acpi/
Dbattery.c152 static inline int acpi_battery_present(struct acpi_battery *battery) in acpi_battery_present() argument
154 return battery->device->status.battery_present; in acpi_battery_present()
157 static int acpi_battery_technology(struct acpi_battery *battery) in acpi_battery_technology() argument
159 if (!strcasecmp("NiCd", battery->type)) in acpi_battery_technology()
161 if (!strcasecmp("NiMH", battery->type)) in acpi_battery_technology()
163 if (!strcasecmp("LION", battery->type)) in acpi_battery_technology()
165 if (!strncasecmp("LI-ION", battery->type, 6)) in acpi_battery_technology()
167 if (!strcasecmp("LiP", battery->type)) in acpi_battery_technology()
172 static int acpi_battery_get_state(struct acpi_battery *battery);
174 static int acpi_battery_is_charged(struct acpi_battery *battery) in acpi_battery_is_charged() argument
[all …]
Dsbs.c108 struct acpi_battery battery[MAX_SBS_BAT]; member
118 static int acpi_battery_get_state(struct acpi_battery *battery);
128 static inline int acpi_battery_vscale(struct acpi_battery *battery) in acpi_battery_vscale() argument
130 return battery_scale((battery->spec & 0x0f00) >> 8); in acpi_battery_vscale()
133 static inline int acpi_battery_ipscale(struct acpi_battery *battery) in acpi_battery_ipscale() argument
135 return battery_scale((battery->spec & 0xf000) >> 12); in acpi_battery_ipscale()
138 static inline int acpi_battery_mode(struct acpi_battery *battery) in acpi_battery_mode() argument
140 return (battery->mode & 0x8000); in acpi_battery_mode()
143 static inline int acpi_battery_scale(struct acpi_battery *battery) in acpi_battery_scale() argument
145 return (acpi_battery_mode(battery) ? 10 : 1) * in acpi_battery_scale()
[all …]
DKconfig83 /proc/acpi/battery/* (/sys/class/power_supply/*)
120 have to power off your system, and remove the laptop battery for
123 sensor values like battery state and temperature.
138 switch between A/C and battery, say Y.
149 This driver adds support for battery information through
150 /proc/acpi/battery. If you have a mobile system with a battery,
154 the module will be called battery.
391 type of access to battery information, found on some laptops.
DMakefile74 obj-$(CONFIG_ACPI_BATTERY) += battery.o
/linux-4.4.14/drivers/power/
Drt5033_battery.c20 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_capacity() local
23 regmap_read(battery->regmap, RT5033_FUEL_REG_SOC_H, &msb); in rt5033_battery_get_capacity()
30 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_present() local
33 regmap_read(battery->regmap, RT5033_FUEL_REG_CONFIG_L, &val); in rt5033_battery_get_present()
41 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_watt_prop() local
63 regmap_read(battery->regmap, regh, &msb); in rt5033_battery_get_watt_prop()
64 regmap_read(battery->regmap, regl, &lsb); in rt5033_battery_get_watt_prop()
75 struct rt5033_battery *battery = power_supply_get_drvdata(psy); in rt5033_battery_get_property() local
81 val->intval = rt5033_battery_get_watt_prop(battery->client, in rt5033_battery_get_property()
85 val->intval = rt5033_battery_get_present(battery->client); in rt5033_battery_get_property()
[all …]
DKconfig30 battery class devices.
33 tristate "Generic battery support using IIO"
36 Say Y here to enable support for the generic battery driver
40 tristate "MAX8925 battery charger support"
43 Say Y here to enable support for the battery charger in the Maxim
47 tristate "WM831X backup battery charger support"
50 Say Y here to enable support for the backup battery charger
73 tristate "Marvell 88PM860x battery driver"
76 Say Y here to enable battery monitor for Marvell 88PM860x chip.
79 tristate "DS2760 battery driver (HP iPAQ & others)"
[all …]
Djz4740-battery.c49 struct power_supply *battery; member
63 struct jz_battery *battery = devid; in jz_battery_irq_handler() local
65 complete(&battery->read_completion); in jz_battery_irq_handler()
69 static long jz_battery_read_voltage(struct jz_battery *battery) in jz_battery_read_voltage() argument
75 mutex_lock(&battery->lock); in jz_battery_read_voltage()
77 reinit_completion(&battery->read_completion); in jz_battery_read_voltage()
79 enable_irq(battery->irq); in jz_battery_read_voltage()
80 battery->cell->enable(battery->pdev); in jz_battery_read_voltage()
82 t = wait_for_completion_interruptible_timeout(&battery->read_completion, in jz_battery_read_voltage()
86 val = readw(battery->base) & 0xfff; in jz_battery_read_voltage()
[all …]
Dds2782_battery.c60 struct power_supply *battery; member
289 power_supply_changed(info->battery); in ds278x_bat_update()
310 static void ds278x_power_supply_init(struct power_supply_desc *battery) in ds278x_power_supply_init() argument
312 battery->type = POWER_SUPPLY_TYPE_BATTERY; in ds278x_power_supply_init()
313 battery->properties = ds278x_battery_props; in ds278x_power_supply_init()
314 battery->num_properties = ARRAY_SIZE(ds278x_battery_props); in ds278x_power_supply_init()
315 battery->get_property = ds278x_battery_get_property; in ds278x_power_supply_init()
316 battery->external_power_changed = NULL; in ds278x_power_supply_init()
323 power_supply_unregister(info->battery); in ds278x_battery_remove()
431 info->battery = power_supply_register(&client->dev, in ds278x_battery_probe()
[all …]
Dgoldfish_battery.c33 struct power_supply *battery; member
140 power_supply_changed(data->battery); in goldfish_battery_interrupt()
206 data->battery = power_supply_register(&pdev->dev, &battery_desc, in goldfish_battery_probe()
208 if (IS_ERR(data->battery)) { in goldfish_battery_probe()
210 return PTR_ERR(data->battery); in goldfish_battery_probe()
224 power_supply_unregister(data->battery); in goldfish_battery_remove()
Dmax8997_charger.c33 struct power_supply *battery; member
164 charger->battery = power_supply_register(&pdev->dev, in max8997_battery_probe()
167 if (IS_ERR(charger->battery)) { in max8997_battery_probe()
169 return PTR_ERR(charger->battery); in max8997_battery_probe()
179 power_supply_unregister(charger->battery); in max8997_battery_remove()
DMakefile8 obj-$(CONFIG_GENERIC_ADC_BATTERY) += generic-adc-battery.o
24 obj-$(CONFIG_BATTERY_GAUGE_LTC2941) += ltc2941-battery-gauge.o
32 obj-$(CONFIG_BATTERY_SBS) += sbs-battery.o
35 obj-$(CONFIG_BATTERY_DA9052) += da9052-battery.o
47 obj-$(CONFIG_BATTERY_JZ4740) += jz4740-battery.o
Dda9150-charger.c34 struct power_supply *battery; member
372 power_supply_changed(charger->battery); in da9150_charger_chg_irq()
395 power_supply_changed(charger->battery); in da9150_charger_vfault_irq()
411 charger->supply_online = charger->battery; in da9150_charger_vbus_irq()
424 power_supply_changed(charger->battery); in da9150_charger_vbus_irq()
443 power_supply_changed(charger->battery); in da9150_charger_otg_work()
566 charger->battery = power_supply_register(dev, &battery_desc, NULL); in da9150_charger_probe()
567 if (IS_ERR(charger->battery)) { in da9150_charger_probe()
568 ret = PTR_ERR(charger->battery); in da9150_charger_probe()
578 charger->supply_online = charger->battery; in da9150_charger_probe()
[all …]
Dmax8998_charger.c33 struct power_supply *battery; member
171 max8998->battery = devm_power_supply_register(max8998->dev, in max8998_battery_probe()
174 if (IS_ERR(max8998->battery)) { in max8998_battery_probe()
175 ret = PTR_ERR(max8998->battery); in max8998_battery_probe()
Dwm831x_power.c26 struct power_supply *battery; member
225 if (!wm831x_pdata || !wm831x_pdata->battery) { in wm831x_config_battery()
231 pdata = wm831x_pdata->battery; in wm831x_config_battery()
457 power_supply_changed(wm831x_power->battery); in wm831x_bat_irq()
488 power_supply_changed(wm831x_power->battery); in wm831x_pwr_src_irq()
565 power->battery = power_supply_register(&pdev->dev, in wm831x_power_probe()
568 if (IS_ERR(power->battery)) { in wm831x_power_probe()
569 ret = PTR_ERR(power->battery); in wm831x_power_probe()
625 power_supply_unregister(power->battery); in wm831x_power_probe()
654 power_supply_unregister(wm831x_power->battery); in wm831x_power_remove()
Dwm8350_power.c199 power_supply_changed(power->battery); in wm8350_charger_handler()
206 power_supply_changed(power->battery); in wm8350_charger_handler()
234 power_supply_changed(power->battery); in wm8350_charger_handler()
480 power->battery = power_supply_register(&pdev->dev, &wm8350_battery_desc, in wm8350_power_probe()
482 if (IS_ERR(power->battery)) { in wm8350_power_probe()
483 ret = PTR_ERR(power->battery); in wm8350_power_probe()
508 power_supply_unregister(power->battery); in wm8350_power_probe()
522 power_supply_unregister(power->battery); in wm8350_power_remove()
Dmax17040_battery.c43 struct power_supply *battery; member
229 chip->battery = power_supply_register(&client->dev, in max17040_probe()
231 if (IS_ERR(chip->battery)) { in max17040_probe()
233 return PTR_ERR(chip->battery); in max17040_probe()
250 power_supply_unregister(chip->battery); in max17040_remove()
Dmax8925_power.c73 struct power_supply *battery; member
547 info->battery = power_supply_register(&pdev->dev, &battery_desc, NULL); in max8925_power_probe()
548 if (IS_ERR(info->battery)) { in max8925_power_probe()
549 ret = PTR_ERR(info->battery); in max8925_power_probe()
552 info->battery->dev.parent = &pdev->dev; in max8925_power_probe()
564 power_supply_unregister(info->battery); in max8925_power_probe()
578 power_supply_unregister(info->battery); in max8925_power_remove()
Dsmb347-charger.c144 struct power_supply *battery; member
744 power_supply_changed(smb->battery); in smb347_interrupt()
755 power_supply_changed(smb->battery); in smb347_interrupt()
769 power_supply_changed(smb->battery); in smb347_interrupt()
1216 static char *battery[] = { "smb347-battery" }; in smb347_probe() local
1248 mains_usb_cfg.supplied_to = battery; in smb347_probe()
1249 mains_usb_cfg.num_supplicants = ARRAY_SIZE(battery); in smb347_probe()
1269 smb->battery = power_supply_register(dev, &smb347_battery_desc, in smb347_probe()
1271 if (IS_ERR(smb->battery)) { in smb347_probe()
1276 return PTR_ERR(smb->battery); in smb347_probe()
[all …]
Dda9150-fg.c82 struct power_supply *battery; member
364 power_supply_changed(fg->battery); in da9150_fg_work()
471 fg->battery = devm_power_supply_register(dev, &fg_desc, NULL); in da9150_fg_probe()
472 if (IS_ERR(fg->battery)) { in da9150_fg_probe()
473 ret = PTR_ERR(fg->battery); in da9150_fg_probe()
Dlp8788-charger.c109 struct power_supply *battery; member
430 pchg->battery = power_supply_register(&pdev->dev, in lp8788_psy_register()
432 if (IS_ERR(pchg->battery)) { in lp8788_psy_register()
442 power_supply_unregister(pchg->battery); in lp8788_psy_unregister()
488 power_supply_changed(pchg->battery); in lp8788_charger_irq_thread()
Dbq24190_charger.c156 struct power_supply *battery; member
1264 power_supply_changed(bdi->battery); in bq24190_irq_handler_thread()
1425 bdi->battery = power_supply_register(dev, &bq24190_battery_desc, in bq24190_probe()
1427 if (IS_ERR(bdi->battery)) { in bq24190_probe()
1429 ret = PTR_ERR(bdi->battery); in bq24190_probe()
1442 power_supply_unregister(bdi->battery); in bq24190_probe()
1463 power_supply_unregister(bdi->battery); in bq24190_remove()
1501 power_supply_changed(bdi->battery); in bq24190_pm_resume()
Dmax17042_battery.c71 struct power_supply *battery; member
768 power_supply_changed(chip->battery); in max17042_thread_handler()
912 chip->battery = devm_power_supply_register(&client->dev, max17042_desc, in max17042_probe()
914 if (IS_ERR(chip->battery)) { in max17042_probe()
916 return PTR_ERR(chip->battery); in max17042_probe()
925 chip->battery->desc->name, in max17042_probe()
D88pm860x_battery.c101 struct power_supply *battery; member
957 info->battery = devm_power_supply_register(&pdev->dev, in pm860x_battery_probe()
960 if (IS_ERR(info->battery)) in pm860x_battery_probe()
961 return PTR_ERR(info->battery); in pm860x_battery_probe()
962 info->battery->dev.parent = &pdev->dev; in pm860x_battery_probe()
Dsbs-battery.c666 struct power_supply *battery = devid; in sbs_irq() local
668 power_supply_changed(battery); in sbs_irq()
Dpm2301_charger.c1024 if (!pl_data->battery) { in pm2xxx_wall_charger_probe()
1030 pm2->bat = pl_data->battery; in pm2xxx_wall_charger_probe()
/linux-4.4.14/Documentation/devicetree/bindings/power_supply/ab8500/
Dfg.txt10 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 …]
Dchargalg.txt7 - battery = Shall be battery specific information
12 battery = <&ab8500_battery>;
15 For information on battery specific node, Ref:
Dbtemp.txt7 - battery = Shall be battery specific information
12 battery = <&ab8500_battery>;
15 For information on battery specific node, Ref:
Dcharger.txt5 - battery = Shall be battery specific information
9 battery = <&ab8500_battery>;
24 For information on battery specific node, Ref:
/linux-4.4.14/Documentation/devicetree/bindings/rtc/
Drtc-palmas.txt11 - ti,backup-battery-chargeable: The Palmas series device like TPS65913 or
12 TPS80036 supports the backup battery for powering the RTC when main
13 battery is removed or in very low power state. The backup battery
15 battery is chargeable or not. If charging battery then driver can
17 - ti,backup-battery-charge-high-current: Enable high current charging in
18 backup battery. Device supports the < 100mA and > 100mA charging.
20 charge battery to lower current i.e. < 100mA.
29 ti,backup-battery-chargeable;
30 ti,backup-battery-charge-high-current;
Dabracon,abx80x.txt25 connected battery or supercap. Both the following properties have to be defined
/linux-4.4.14/Documentation/devicetree/bindings/power_supply/
Dcharger-manager.txt9 - cm-fuel-gauge : name of battery fuel gauge
19 - cm-name : charger manager's name (default : "battery")
22 - cm-battery-stat : battery status (enum data_source)
23 - cm-fullbatt-* : data for full battery checking
25 - cm-battery-* : threshold battery temperature for charging
26 -cold : critical cold temperature of battery for charging
28 -hot : critical hot temperature of battery for charging
37 cm-name = "battery";
46 cm-battery-stat = <3>;
55 cm-battery-cold = <50>;
[all …]
Dsbs_sbs-battery.txt1 SBS sbs-battery
5 - compatible : "sbs,sbs-battery"
12 - sbs,battery-detect-gpios : The gpio which signals battery detection and
18 compatible = "sbs,sbs-battery";
22 sbs,battery-detect-gpios = <&gpio-controller 122 1>;
Dmax17042_battery.txt14 - maxim,cold-temp : Temperature threshold to report battery
16 - maxim,over-heat-temp : Temperature threshold to report battery
18 - maxim,dead-volt : Voltage threshold to report battery
20 - maxim,over-volt : Voltage threshold to report battery
25 battery-charger@36 {
Dolpc_battery.txt1 OLPC battery
5 - compatible : "olpc,xo1-battery"
Dmax8925_batter.txt1 max8925-battery bindings
5 - batt-detect: whether support battery detect
Dpower_supply.txt19 battery@b {
20 compatible = "some,battery";
Dqcom_smbb.txt24 - battery temperature ok
25 - battery present
59 The fast charger will attempt to charge the battery to this
65 Description: Maximum safe battery voltage; May be pre-set by bootloader, in
72 Description: Maximum safe battery charge current; May pre-set by bootloader,
103 temperature range. It only allows charging when the battery
Dgpio-charger.txt9 battery
25 battery {
/linux-4.4.14/Documentation/hwmon/
Dda905219 Channel 1: ICH - internal battery charger current measurement
20 Channel 2: TBAT - output from the battery NTC
21 Channel 3: VBAT - measurement of the battery voltage
28 Channel 9: VBBAT - measurement of the backup battery voltage
30 By using sysfs attributes we can measure the system voltage VDDOUT, the battery
31 charging current ICH, battery temperature TBAT, battery junction temperature
32 TJUNC, battery voltage VBAT and the back up battery voltage VBBAT.
39 The battery voltage is calculated as:
42 The backup battery voltage is calculated as:
51 Temperatures are sampled by a 10 bit ADC. Junction and battery temperatures
[all …]
Dwm831x31 Temperatures are sampled by a 12 bit ADC. Chip and battery temperatures
36 while the battery temperature calculation will depend on the NTC
Dtwl4030-madc-hwmon36 12 BCI: Main battery voltage (VBAT)
45 battery charging current in mA.
Dab850020 Currently only the AB8500 internal sensor and one external sensor for battery
Dit8789 each read. Default is 0. On some boards the battery voltage is provided
90 by either the battery or the onboard power supply. Only the first reading
91 at power on will be the actual battery voltage (which the chip does
92 automatically). On other boards the battery voltage is always fed to
94 battery life but no information is given in the datasheet.
187 2.8 volts with a resolution of 0.0109 volt. The battery voltage in8 does not
Dmenf21bmc41 in4_input VBAT (on board battery)
Dacpi_power_meter26 The power[1-*]_is_battery knob indicates if the power supply is a battery.
Df71805f42 additional internal voltages monitored (VSB and battery). It also features
59 factor 2. For the F71872F/FG, in9 (VSB) and in10 (battery) are also
Dpc87360172 channel measures the battery voltage (Vbat). It is a known fact that
173 repeatedly sampling the battery voltage reduces its lifetime. National
Dadm102661 higher voltages directly. 3.3V, 5V, 12V, -12V and battery voltage all have
/linux-4.4.14/Documentation/devicetree/bindings/power/
Drx51-battery.txt1 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";
Dbq2415x.txt20 - 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>;
Drt9455_charger.txt1 Binding for Richtek rt9455 battery charger
12 battery, in uA.
17 - richtek,battery-regulation-voltage: integer, maximum battery voltage in uV.
43 richtek,battery-regulation-voltage = <4200000>;
Dltc2941.txt1 binding for LTC2941 and LTC2943 battery gauges
3 Both the LTC2941 and LTC2943 measure battery capacity.
13 negative value when the battery has been connected to the wrong end of the
18 lost when the battery is disconnected.
Dtwl-charger.txt3 The battery charger needs to interact with the USB phy in order
20 - ti,bb-uvolt: microvolts for charging the backup battery.
21 - ti,bb-uamp: microamps for charging the backup battery.
Dbq25890.txt7 - ti,battery-regulation-voltage: integer, maximum charging voltage (in uV);
13 - ti,minimum-sys-voltage: integer, when battery is charging and it is below
36 ti,battery-regulation-voltage = <4200000>;
Dbq24257.txt13 - ti,battery-regulation-voltage: integer, maximum charging voltage in uV.
45 ti,battery-regulation-voltage = <4200000>;
58 ti,battery-regulation-voltage = <4200000>;
Dda9150-fg.txt7 - dlg,update-interval: Interval time (milliseconds) between battery level checks.
/linux-4.4.14/Documentation/power/
Dcharger-manager.txt4 Charger Manager provides in-kernel battery charger management that
6 and where each battery may have multiple chargers attached and the userland
11 represents an independent battery with chargers. If there are multiple
24 different information about the battery status. This framework
29 While the battery is being charged and the system is in suspend-to-RAM,
30 we may need to monitor the battery health by looking at the ambient or
31 battery temperature. We can accomplish this by waking up the system
33 monitoring the battery health and tasks, and user processes that are
38 only affects the charging time, but the lifespan of the battery.
47 * Support for premature full-battery event handling
[all …]
Dpower_supply_class.txt6 Power supply class used to represent battery, UPS, AC or DC power supply
24 typically expected feedback of battery charging/fully charged status and
62 ~ of battery, this class distinguish these terms. Don't mix them! ~
77 BATTERY_STATUS_* values, as defined in battery.h.
84 AUTHENTIC - indicates the power supply (battery or charger) connected
87 HEALTH - represents health of the battery, values corresponds to
88 POWER_SUPPLY_HEALTH_*, defined in battery.h.
90 VOLTAGE_OCV - open circuit voltage of the battery.
94 when battery considered "full"/"empty" at normal conditions. Yes, there is
95 no direct relation between voltage and battery capacity, but some dumb
[all …]
D00-INDEX26 - Tells userspace about battery, UPS, AC or DC power supply properties
Duserland-swsusp.txt96 to resume the system from RAM if there's enough battery power or restore
/linux-4.4.14/drivers/block/
Dumem.c133 } battery[2]; member
659 if (card->battery[0].good && card->battery[1].good) in set_fault_to_battery_status()
661 else if (card->battery[0].warned || card->battery[1].warned) in set_fault_to_battery_status()
663 else if (!card->battery[0].good && !card->battery[1].good) in set_fault_to_battery_status()
671 static int check_battery(struct cardinfo *card, int battery, int status) in check_battery() argument
673 if (status != card->battery[battery].good) { in check_battery()
674 card->battery[battery].good = !card->battery[battery].good; in check_battery()
675 card->battery[battery].last_change = jiffies; in check_battery()
677 if (card->battery[battery].good) { in check_battery()
679 "Battery %d now good\n", battery + 1); in check_battery()
[all …]
DKconfig166 battery backed (Non-volatile) RAM cards.
/linux-4.4.14/arch/sh/boards/mach-hp6xx/
Dhp6xx_apm.c34 int battery, backup, charging, percentage; in hp6x0_apm_get_power_status() local
37 battery = adc_single(ADC_CHANNEL_BATTERY); in hp6x0_apm_get_power_status()
41 percentage = 100 * (battery - HP680_BATTERY_MIN) / in hp6x0_apm_get_power_status()
51 info->time = (2 * battery); in hp6x0_apm_get_power_status()
53 info->ac_line_status = (battery > HP680_BATTERY_AC_ON) ? in hp6x0_apm_get_power_status()
/linux-4.4.14/drivers/w1/slaves/
DKconfig82 tristate "Dallas 2760 battery monitor chip (HP iPAQ & others)"
84 If you enable this you will have the DS2760 battery monitor
87 The battery monitor chip is used in many batteries/devices
94 tristate "Dallas 2780 battery monitor chip"
96 If you enable this you will have the DS2780 battery monitor
99 The battery monitor chip is used in many batteries/devices
106 tristate "Dallas 2781 battery monitor chip"
108 If you enable this you will have the DS2781 battery monitor
111 The battery monitor chip is used in many batteries/devices
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-driver-samsung-laptop25 Description: Max battery charge level can be modified, battery cycle
26 life can be extended by reducing the max battery charge
28 0 means normal battery mode (100% charge)
29 1 means battery life extender mode (80% charge)
Dsysfs-class-power1 What: /sys/class/power/ds2760-battery.*/charge_now
7 coloumb counter value inside the battery monitor chip. This
9 A userspace daemon can monitor the battery charging logic
13 What: /sys/class/power/ds2760-battery.*/charge_full
19 battery 'full level'. As batteries age, this value has to be
127 devices. If enabled and the input is removed, the internal battery FET
129 than 1uA. Note that on some devices/systems this disconnects the battery
Dsysfs-class-power-twl403025 power source and battery status.
35 be taken that battery is not over-charged.
44 power source and battery status.
Dsysfs-driver-intel-rapid-start7 2: Wake to enter hibernation when the battery reaches a
12 either the wakeup timer expires or the battery reaches a
Dsysfs-bus-iio-meas-spec6 battery level supplied to sensor is below 2.25V.
Dsysfs-driver-toshiba_acpi85 you want to use it under battery, see the entry named
93 Description: This file controls the USB Sleep Functions under battery, and
100 current battery level set.
124 you want to use it under battery, see the entry named
Dsysfs-platform-msi-laptop61 powersaving actions. ECO mode is available only on battery
Dsysfs-firmware-acpi79 such as a battery, or a processor.
Dsysfs-devices-system-cpu135 CPUs on the fly. This is a nice method to save battery
/linux-4.4.14/Documentation/devicetree/bindings/i2c/
Di2c-cros-ec-tunnel.txt5 the EC (like a battery and PMIC). To get access to those devices we need
33 battery: sbs-battery@b {
34 compatible = "sbs,sbs-battery";
/linux-4.4.14/Documentation/devicetree/bindings/sound/
Dcs35l32.txt39 - cirrus,battery-recovery : Low battery nominal recovery threshold, rising VP.
45 - cirrus,battery-threshold : Low battery nominal threshold, falling VP.
Dtas2552.txt10 "vbat" battery voltage
/linux-4.4.14/Documentation/laptops/
Dlaptop-mode.txt1 How to conserve battery power using laptop-mode
12 to conserve battery power on laptops. It has been reported to cause significant
33 laptop mode will automatically be started when you're on battery. For
54 scripts automatically turn off laptop mode when the battery almost runs out,
55 so that you won't lose any data at the end of your battery life.
106 needs to spin up, and to increase battery life even more. The output of
125 amount of work if your battery fails while you're in laptop mode.
130 battery power is less than this value. Default is 10 minutes.
191 When on battery, what is the maximum CPU speed that the system should use? Legal
199 * Bartek Kania reports getting up to 50 minutes of extra battery life (on top
[all …]
D00-INDEX12 - how to conserve battery power using laptop-mode.
Dthinkpad-acpi.txt387 0x1002 0x01 FN+F2 IBM: battery (rare)
396 Lenovo: battery
526 the battery is nearly empty
528 the battery is nearly empty
537 0x6011 ALARM: battery is too hot
538 0x6012 ALARM: battery is extremely hot
550 should suspend or hibernate the laptop (and in the case of battery
736 empty battery, or a broken battery), access to most LEDs is
760 1 - battery (orange)
761 2 - battery (green)
[all …]
/linux-4.4.14/arch/arm/boot/dts/
Dcros-ec-sbs.dtsi2 * Smart battery dts fragment for devices that use cros-ec-sbs
46 battery: sbs-battery@b { label
47 compatible = "sbs,sbs-battery";
Domap3-n900.dts140 battery: n900-battery { label
141 compatible = "nokia,n900-battery";
331 regulator-always-on; /* due to battery cover sensor */
615 ti,weak-battery-voltage = <3400>;
616 ti,battery-regulation-voltage = <4200>;
Dtegra124-nyan.dtsi330 battery: sbs-battery@b { label
331 compatible = "sbs,sbs-battery";
Dexynos5250-snow-common.dtsi81 battery: sbs-battery@b { label
82 compatible = "sbs,sbs-battery";
Dste-dbx5x0.dtsi644 stericsson,battery-type = "LIPO";
650 battery = <&ab8500_battery>;
655 battery = <&ab8500_battery>;
660 battery = <&ab8500_battery>;
666 battery = <&ab8500_battery>;
Dtegra114-dalmore.dts765 battery: smart-battery@b { label
766 compatible = "ti,bq20z45", "sbs,sbs-battery";
768 battery-name = "battery";
Dsun4i-a10-gemei-g9.dts69 * AXP battery management
Dkirkwood-dir665.dts274 /* There is no battery on the boards, so the RTC does not keep time
Domap5-board-common.dtsi390 ti,backup-battery-chargeable;
391 ti,backup-battery-charge-high-current;
Dexynos5420-peach-pit.dts955 battery: sbs-battery@b { label
956 compatible = "sbs,sbs-battery";
Dexynos5800-peach-pi.dts918 battery: sbs-battery@b { label
919 compatible = "sbs,sbs-battery";
Drk3288-veyron-minnie.dts112 battery: bq27500@55 { label
Dexynos3250-monk.dts150 thermistor-battery {
407 compatible = "maxim,max77836-battery";
Dtegra124-venice2.dts863 battery: sbs-battery@b { label
864 compatible = "sbs,sbs-battery";
Drk3288-veyron-chromebook.dtsi65 /* A non-regulated voltage from power supply or battery */
Dexynos3250-rinato.dts141 thermistor-battery {
576 compatible = "maxim,max77836-battery";
Dtegra20-seaboard.dts391 smart-battery@b {
392 compatible = "ti,bq20z75", "smart-battery-1.1";
Dexynos4412-trats2.dts174 maxim,battery-overcurrent-microamp = <3500000>;
262 thermistor-battery@1 {
Domap3-pandora-common.dtsi427 /* backup battery charger */
/linux-4.4.14/drivers/staging/iio/
DTODO20 - battery voltage monitor (power subsystem related device)
23 At least the battery voltage and die temperature feature is required in-kernel
24 by a driver of the SoC's battery charging unit to avoid any damage to the
25 silicon and the battery.
/linux-4.4.14/Documentation/devicetree/bindings/mfd/
Dab8500.txt27 : LOW_BAT_F : : LOW threshold battery voltage
32 …: BTEMP_LOW : : Btemp < BtempLow, if battery temperature is lower than -10…
33 …: BTEMP_LOW_MEDIUM : : BtempLow < Btemp < BtempMedium,if battery temperature is b…
34 …: BTEMP_MEDIUM_HIGH : : BtempMedium < Btemp < BtempHigh,if battery temperature is betwee…
35 …: BTEMP_HIGH : : Btemp > BtempHigh, if battery temperature is higher than “…
Datmel-gpbr.txt3 The GPBR are a set of battery-backed registers.
Dmax77693.txt50 will operate in fast charge constant current mode till battery voltage
67 - maxim,battery-overcurrent-microamp : Overcurrent protection threshold
68 in uA (current from battery to system).
171 maxim,battery-overcurrent-microamp = <3000000>;
Dtps65910.txt31 If some of input supply is powered through battery or always-on supply then
54 - ti,vmbch-threshold: (tps65911) main battery charged threshold
56 - ti,vmbch2-threshold: (tps65911) main battery discharged threshold
Drn5t618.txt4 DCDC converters, 7 low-dropout regulators, a Li-ion battery charger,
Dmax8998.txt4 regulators, real time clock, battery charging controller and several
13 In addition, it includes a real time clock and battery charging controller
Dtps6507x.txt19 If some of input supply is powered through battery or always-on
Dcros-ec.txt4 implements various function such as keyboard and battery charging.
Das3711.txt2 supplies, a battery charger and an RTC. So far only bindings for the two stepup
Daxp20x.txt39 applications that aren't battery constrained.
/linux-4.4.14/drivers/staging/nvec/
DKconfig34 tristate "NVEC charger and battery"
37 Say Y to enable support for battery and charger interface for
/linux-4.4.14/include/linux/
Dpm2301_charger.h58 struct pm2xxx_bm_data *battery; member
Dhid.h522 struct power_supply *battery; member
/linux-4.4.14/drivers/hid/
Dhid-input.c408 if (dev->battery != NULL) in hidinput_setup_battery()
448 dev->battery = power_supply_register(&dev->dev, psy_desc, &psy_cfg); in hidinput_setup_battery()
449 if (IS_ERR(dev->battery)) { in hidinput_setup_battery()
451 PTR_ERR(dev->battery)); in hidinput_setup_battery()
454 dev->battery = NULL; in hidinput_setup_battery()
456 power_supply_powers(dev->battery, &dev->dev); in hidinput_setup_battery()
467 if (!dev->battery) in hidinput_cleanup_battery()
470 psy_desc = dev->battery->desc; in hidinput_cleanup_battery()
471 power_supply_unregister(dev->battery); in hidinput_cleanup_battery()
474 dev->battery = NULL; in hidinput_cleanup_battery()
Dwacom.h122 struct power_supply *battery; member
Dwacom_sys.c1065 wacom->battery = power_supply_register(&wacom->hdev->dev, in wacom_initialize_battery()
1067 if (IS_ERR(wacom->battery)) in wacom_initialize_battery()
1068 return PTR_ERR(wacom->battery); in wacom_initialize_battery()
1070 power_supply_powers(wacom->battery, &wacom->hdev->dev); in wacom_initialize_battery()
1076 power_supply_unregister(wacom->battery); in wacom_initialize_battery()
1088 if (wacom->battery) { in wacom_destroy_battery()
1089 power_supply_unregister(wacom->battery); in wacom_destroy_battery()
1090 wacom->battery = NULL; in wacom_destroy_battery()
1620 !wacom->battery) { in wacom_battery_work()
1624 wacom->battery) { in wacom_battery_work()
Dhid-sony.c1031 struct power_supply *battery; member
2041 sc->battery = power_supply_register(&hdev->dev, &sc->battery_desc, in sony_battery_probe()
2043 if (IS_ERR(sc->battery)) { in sony_battery_probe()
2044 ret = PTR_ERR(sc->battery); in sony_battery_probe()
2049 power_supply_powers(sc->battery, &hdev->dev); in sony_battery_probe()
2063 power_supply_unregister(sc->battery); in sony_battery_remove()
Dwacom_wac.c64 if (wacom->battery) in wacom_notify_battery()
65 power_supply_changed(wacom->battery); in wacom_notify_battery()
697 if (!wacom->battery && in wacom_remote_irq()
2202 int pid, battery, charging; in wacom_wireless_irq() local
2214 battery = (data[5] & 0x3f) * 100 / 31; in wacom_wireless_irq()
2222 wacom_notify_battery(wacom, battery, charging, 1, 0); in wacom_wireless_irq()
2253 int battery = (data[8] & 0x3f) * 100 / 31; in wacom_status_irq() local
2256 wacom_notify_battery(wacom_wac, battery, charging, in wacom_status_irq()
2257 battery || charging, 1); in wacom_status_irq()
2259 if (!wacom->battery && in wacom_status_irq()
[all …]
Dhid-wiimote.h150 struct power_supply *battery; member
Dhid-wiimote-modules.c253 wdata->battery = power_supply_register(&wdata->hdev->dev, in wiimod_battery_probe()
256 if (IS_ERR(wdata->battery)) { in wiimod_battery_probe()
258 ret = PTR_ERR(wdata->battery); in wiimod_battery_probe()
262 power_supply_powers(wdata->battery, &wdata->hdev->dev); in wiimod_battery_probe()
277 power_supply_unregister(wdata->battery); in wiimod_battery_remove()
DKconfig34 This option adds support of reporting battery strength (for HID devices
/linux-4.4.14/include/linux/mfd/wm8350/
Dsupply.h126 struct power_supply *battery; member
/linux-4.4.14/include/linux/mfd/wm831x/
Dpdata.h134 struct wm831x_battery_pdata *battery; member
/linux-4.4.14/drivers/mtd/lpddr/
DKconfig10 DDR memories, intended for battery-operated systems.
/linux-4.4.14/Documentation/cpuidle/
Ddriver.txt21 It can also support the dynamic changes (like battery <-> AC), by using
/linux-4.4.14/Documentation/cpu-freq/
Dindex.txt14 fly. This is a nice method to save battery power, because the lower
Dcore.txt15 fly. This is a nice method to save battery power, because the lower
Dgovernors.txt17 fly. This is a nice method to save battery power, because the lower
199 CPU. This behaviour more suitable in a battery powered environment.
Duser-guide.txt14 fly. This is a nice method to save battery power, because the lower
Dcpu-drivers.txt16 fly. This is a nice method to save battery power, because the lower
/linux-4.4.14/Documentation/devicetree/bindings/regulator/
Dmax8997-regulator.txt83 - CHARGER_CV: main battery charger voltage control
84 - CHARGER: main battery charger current control
/linux-4.4.14/kernel/power/
DKconfig241 techniques. This is mostly useful for battery powered laptops with
244 battery status information, and user-space programs will receive
245 notification of APM "events" (e.g. battery status change).
256 Generally, if you don't have a battery in your machine, there isn't
/linux-4.4.14/sound/soc/
DKconfig17 ASoC provides power efficient ALSA support for embedded battery powered
/linux-4.4.14/drivers/mfd/
DKconfig39 controllers, 11 LDOs, RTC, automatic battery, temperature and
114 Controller (EC) providing keyboard, battery and power services.
155 LEDs and battery-charger under the corresponding menus.
385 Passage) chip. This chip embeds audio, battery, GPIO, etc.
415 This driver is necessary for jz4740-battery and jz4740-hwmon driver.
456 battery-charger under the corresponding menus.
479 battery-charger under the corresponding menus.
490 MAX77836 Micro-USB ICs with battery charger.
893 of the AB3100 such as battery-backed RTC, charging control,
932 AB8500 GPADC driver used to convert Acc and battery/ac/usb voltage
[all …]
/linux-4.4.14/Documentation/power/regulator/
Doverview.txt11 in order to save power and prolong battery life. This applies to both voltage
119 battery power, USB power)
/linux-4.4.14/kernel/time/
DKconfig169 numbers of CPUs, and (3) are suffering from battery-lifetime
175 battery-powered systems.
/linux-4.4.14/Documentation/w1/masters/
Domap-hdq20 A typical application of the HDQ/1-Wire module is the communication with battery
/linux-4.4.14/Documentation/timers/
DNO_HZ.txt51 excessive power consumption. This is especially bad on battery-powered
52 devices, where it results in extremely short battery lifetimes. If you
71 both to battery-powered devices and to highly virtualized mainframes.
72 A battery-powered device running a CONFIG_HZ_PERIODIC=y kernel would
73 drain its battery very quickly, easily 2-3 times as fast as would the
/linux-4.4.14/Documentation/
Drtc.txt6 something that tracks wall clock time and is battery backed so that it
113 than expecting a single battery-backed MC146818 clone on every system.
134 example, maybe the low-power battery-backed RTC is a discrete I2C chip, but
Ddevices.txt2001 116 block MicroMemory battery backed RAM adapter (NVRAM)
/linux-4.4.14/include/linux/mfd/
Dmax8997-private.h391 struct platform_device *battery; /* battery control (not fuel gauge) */ member
/linux-4.4.14/Documentation/spi/
Dbutterfly7 battery powered card with an AVR microcontroller and lots of goodies:
/linux-4.4.14/net/irda/
DKconfig67 necessary, thus reduce your battery life (but not that much).
/linux-4.4.14/Documentation/acpi/
Dvideo_extension.txt56 The first two levels are for when laptop are on AC or on battery and are
/linux-4.4.14/Documentation/usb/
Drio.txt37 changing them. It appears RIO 500 firmware does not handle low battery
/linux-4.4.14/arch/arm/mach-sa1100/
DKconfig105 keyboard, touchscreen, backlight and battery. This driver also activates
/linux-4.4.14/Documentation/i2c/busses/
Di2c-parport172 jumper in the battery compartment. More details can be found at:
/linux-4.4.14/drivers/iio/adc/
DKconfig364 Purpose A/D Converter. This will add support for battery type
365 detection, battery voltage and temperature measurement, die
/linux-4.4.14/drivers/net/ethernet/amd/
DKconfig90 on the AMD LANCE chipset: RieblCard (with or without battery), or
/linux-4.4.14/drivers/rtc/
DKconfig42 This clock should be battery-backed, so that it reads the correct
46 If the clock you specify here is not battery backed, it may still
181 families of ultra-low-power battery- and capacitor-backed real-time
201 chips (often with battery backup) connected with I2C. This driver
1099 support. This chip contains a battery- and capacitor-backed RTC.
1108 support. This chip contains a battery- and capacitor-backed RTC.
1281 small coin cell battery) which keeps this block and the GPBR
Drtc-ds1685.c1120 static DEVICE_ATTR(battery, S_IRUGO, ds1685_rtc_sysfs_battery_show, NULL);
/linux-4.4.14/drivers/parisc/
DKconfig167 This includes NVRAM battery level, overtemp or failures such as
/linux-4.4.14/Documentation/hid/
Dhid-transport.txt114 data may include button events, axis events, battery status or more. This
126 data like battery-state or device-settings.
/linux-4.4.14/Documentation/leds/
Dledtrig-transient.txt23 permanently causing the battery to drain.
/linux-4.4.14/drivers/cpufreq/
DKconfig169 its optimisation for better suitability in a battery powered
/linux-4.4.14/drivers/platform/x86/
DKconfig313 and battery charging level control.
432 firmware alerts (like critical battery condition), or misled
907 timeout or when the system battery reaches a critical state,
/linux-4.4.14/Documentation/filesystems/
Dbtrfs.txt154 (non-battery-backed) write-back cache, nobarrier option will lead to
Dext4.txt193 your disks are battery-backed in one way or another,
/linux-4.4.14/arch/arm/mach-pxa/
Dem-x270.c1206 DA9030_SUBDEV(battery, BAT, &em_x270_batterty_info),
/linux-4.4.14/drivers/mtd/devices/
DKconfig43 This is an MTD driver for the DEC's MS02-NV (54-20948-01) battery
/linux-4.4.14/drivers/input/serio/
DKconfig141 The SDC may also be connected to a battery-backed real-time
/linux-4.4.14/drivers/macintosh/
DKconfig83 control system power, and battery charging on the portable models.
/linux-4.4.14/drivers/regulator/
DKconfig13 output in order to save power and prolong battery life. This applies
665 for battery-powered portable applications.
/linux-4.4.14/scripts/
Dspelling.txt166 batery||battery
/linux-4.4.14/arch/x86/
DKconfig2184 techniques. This is mostly useful for battery powered laptops with
2187 battery status information, and user-space programs will receive
2188 notification of APM "events" (e.g. battery status change).
2210 Generally, if you don't have a battery in your machine, there isn't
2256 should always save battery power, but more complicated APM features
/linux-4.4.14/drivers/scsi/aacraid/
Daacraid.h979 __le32 battery; member
/linux-4.4.14/drivers/misc/
DKconfig280 charge a coincell battery or backup capacitor which is used
/linux-4.4.14/drivers/spi/
DKconfig170 inexpensive battery powered microcontroller evaluation board.
/linux-4.4.14/Documentation/arm64/
Dacpi_object_usage.txt556 -- Section 9.3: battery devices
/linux-4.4.14/Documentation/scsi/
DChangeLog.megaraid_sas502 mode only when the controller has battery backup. At this time
/linux-4.4.14/Documentation/virtual/kvm/
Dtimekeeping.txt197 The RTC will update the current time fields by battery power even while the
/linux-4.4.14/init/
DKconfig706 callback invocation to energy-efficient CPUs in battery-powered
/linux-4.4.14/
DCREDITS1966 D: Various ACPI fixes, keeping correct battery state through suspend
DMAINTAINERS3446 F: drivers/power/da9052-battery.c
8455 T: git git://git.infradead.org/battery-2.6.git