Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/acpi/
Dbattery.c155 static inline int acpi_battery_present(struct acpi_battery *battery) in acpi_battery_present() argument
157 return battery->device->status.battery_present; in acpi_battery_present()
160 static int acpi_battery_technology(struct acpi_battery *battery) in acpi_battery_technology() argument
162 if (!strcasecmp("NiCd", battery->type)) in acpi_battery_technology()
164 if (!strcasecmp("NiMH", battery->type)) in acpi_battery_technology()
166 if (!strcasecmp("LION", battery->type)) in acpi_battery_technology()
168 if (!strncasecmp("LI-ION", battery->type, 6)) in acpi_battery_technology()
170 if (!strcasecmp("LiP", battery->type)) in acpi_battery_technology()
175 static int acpi_battery_get_state(struct acpi_battery *battery);
177 static int acpi_battery_is_charged(struct acpi_battery *battery) in acpi_battery_is_charged() argument
[all …]
Dsbs.c112 struct acpi_battery battery[MAX_SBS_BAT]; member
122 static int acpi_battery_get_state(struct acpi_battery *battery);
132 static inline int acpi_battery_vscale(struct acpi_battery *battery) in acpi_battery_vscale() argument
134 return battery_scale((battery->spec & 0x0f00) >> 8); in acpi_battery_vscale()
137 static inline int acpi_battery_ipscale(struct acpi_battery *battery) in acpi_battery_ipscale() argument
139 return battery_scale((battery->spec & 0xf000) >> 12); in acpi_battery_ipscale()
142 static inline int acpi_battery_mode(struct acpi_battery *battery) in acpi_battery_mode() argument
144 return (battery->mode & 0x8000); in acpi_battery_mode()
147 static inline int acpi_battery_scale(struct acpi_battery *battery) in acpi_battery_scale() argument
149 return (acpi_battery_mode(battery) ? 10 : 1) * in acpi_battery_scale()
[all …]
DKconfig71 /proc/acpi/battery/* (/sys/class/power_supply/*)
88 have to power off your system, and remove the laptop battery for
91 sensor values like battery state and temperature.
106 switch between A/C and battery, say Y.
117 This driver adds support for battery information through
118 /proc/acpi/battery. If you have a mobile system with a battery,
122 the module will be called battery.
338 type of access to battery information, found on some laptops.
DMakefile76 obj-$(CONFIG_ACPI_BATTERY) += battery.o
/linux-4.1.27/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()
Dmax8998_charger.c33 struct power_supply *battery; member
174 max8998->battery = power_supply_register(max8998->dev, in max8998_battery_probe()
177 if (IS_ERR(max8998->battery)) { in max8998_battery_probe()
178 ret = PTR_ERR(max8998->battery); in max8998_battery_probe()
193 power_supply_unregister(max8998->battery); in max8998_battery_remove()
DMakefile8 obj-$(CONFIG_GENERIC_ADC_BATTERY) += generic-adc-battery.o
23 obj-$(CONFIG_BATTERY_GAUGE_LTC2941) += ltc2941-battery-gauge.o
31 obj-$(CONFIG_BATTERY_SBS) += sbs-battery.o
34 obj-$(CONFIG_BATTERY_DA9052) += da9052-battery.o
44 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 …]
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()
564 power->battery = power_supply_register(&pdev->dev, in wm831x_power_probe()
567 if (IS_ERR(power->battery)) { in wm831x_power_probe()
568 ret = PTR_ERR(power->battery); in wm831x_power_probe()
623 power_supply_unregister(power->battery); in wm831x_power_probe()
653 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 …]
Dmax17042_battery.c69 struct power_supply *battery; member
604 power_supply_changed(chip->battery); in max17042_thread_handler()
735 chip->battery = power_supply_register(&client->dev, max17042_desc, in max17042_probe()
737 if (IS_ERR(chip->battery)) { in max17042_probe()
739 return PTR_ERR(chip->battery); in max17042_probe()
746 chip->battery->desc->name, chip); in max17042_probe()
776 power_supply_unregister(chip->battery); in max17042_remove()
D88pm860x_battery.c101 struct power_supply *battery; member
957 info->battery = power_supply_register(&pdev->dev, &pm860x_battery_desc, in pm860x_battery_probe()
959 if (IS_ERR(info->battery)) in pm860x_battery_probe()
960 return PTR_ERR(info->battery); in pm860x_battery_probe()
961 info->battery->dev.parent = &pdev->dev; in pm860x_battery_probe()
986 power_supply_unregister(info->battery); in pm860x_battery_probe()
996 power_supply_unregister(info->battery); in pm860x_battery_remove()
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
1263 power_supply_changed(bdi->battery); in bq24190_irq_handler_thread()
1422 bdi->battery = power_supply_register(dev, &bq24190_battery_desc, in bq24190_probe()
1424 if (IS_ERR(bdi->battery)) { in bq24190_probe()
1426 ret = PTR_ERR(bdi->battery); in bq24190_probe()
1439 power_supply_unregister(bdi->battery); in bq24190_probe()
1460 power_supply_unregister(bdi->battery); in bq24190_remove()
1498 power_supply_changed(bdi->battery); in bq24190_pm_resume()
Dsbs-battery.c664 struct power_supply *battery = devid; in sbs_irq() local
666 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.1.27/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.1.27/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.1.27/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>;
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";
Dgpio-charger.txt9 battery
25 battery {
Dmax17042_battery.txt14 battery-charger@36 {
/linux-4.1.27/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>;
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.txt10 - ti,bb-uvolt: microvolts for charging the backup battery.
11 - ti,bb-uamp: microamps for charging the backup battery.
/linux-4.1.27/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
Dit8785 each read. Default is 0. On some boards the battery voltage is provided
86 by either the battery or the onboard power supply. Only the first reading
87 at power on will be the actual battery voltage (which the chip does
88 automatically). On other boards the battery voltage is always fed to
90 battery life but no information is given in the datasheet.
179 battery voltage in8 does not have limit registers.
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.1.27/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.1.27/drivers/block/
Dumem.c133 } battery[2]; member
657 if (card->battery[0].good && card->battery[1].good) in set_fault_to_battery_status()
659 else if (card->battery[0].warned || card->battery[1].warned) in set_fault_to_battery_status()
661 else if (!card->battery[0].good && !card->battery[1].good) in set_fault_to_battery_status()
669 static int check_battery(struct cardinfo *card, int battery, int status) in check_battery() argument
671 if (status != card->battery[battery].good) { in check_battery()
672 card->battery[battery].good = !card->battery[battery].good; in check_battery()
673 card->battery[battery].last_change = jiffies; in check_battery()
675 if (card->battery[battery].good) { in check_battery()
677 "Battery %d now good\n", battery + 1); in check_battery()
[all …]
DKconfig166 battery backed (Non-volatile) RAM cards.
/linux-4.1.27/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.1.27/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.1.27/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
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-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.1.27/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.1.27/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.1.27/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-INDEX14 - 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.1.27/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.1.27/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 “…
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).
118 maxim,battery-overcurrent-microamp = <3000000>;
Datmel-gpbr.txt3 The GPBR are a set of battery-backed registers.
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
Dcros-ec.txt4 implements various function such as keyboard and battery charging.
Dtps6507x.txt19 If some of input supply is powered through battery or always-on
Daxp20x.txt36 applications that aren't battery constrained.
Das3711.txt2 supplies, a battery charger and an RTC. So far only bindings for the two stepup
/linux-4.1.27/drivers/staging/nvec/
DKconfig34 tristate "NVEC charger and battery"
37 Say Y to enable support for battery and charger interface for
/linux-4.1.27/include/linux/
Dpm2301_charger.h58 struct pm2xxx_bm_data *battery; member
Dhid.h522 struct power_supply *battery; member
/linux-4.1.27/drivers/hid/
Dwacom_sys.c1047 wacom->battery = power_supply_register(&wacom->hdev->dev, in wacom_initialize_battery()
1049 if (IS_ERR(wacom->battery)) in wacom_initialize_battery()
1050 return PTR_ERR(wacom->battery); in wacom_initialize_battery()
1052 power_supply_powers(wacom->battery, &wacom->hdev->dev); in wacom_initialize_battery()
1058 power_supply_unregister(wacom->battery); in wacom_initialize_battery()
1070 if (wacom->battery) { in wacom_destroy_battery()
1071 power_supply_unregister(wacom->battery); in wacom_destroy_battery()
1072 wacom->battery = NULL; in wacom_destroy_battery()
1346 !wacom->battery) { in wacom_battery_work()
1350 wacom->battery) { in wacom_battery_work()
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
Dhid-sony.c819 struct power_supply *battery; member
1745 sc->battery = power_supply_register(&hdev->dev, &sc->battery_desc, in sony_battery_probe()
1747 if (IS_ERR(sc->battery)) { in sony_battery_probe()
1748 ret = PTR_ERR(sc->battery); in sony_battery_probe()
1753 power_supply_powers(sc->battery, &hdev->dev); in sony_battery_probe()
1767 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()
1942 int pid, battery, charging; in wacom_wireless_irq() local
1953 battery = (data[5] & 0x3f) * 100 / 31; in wacom_wireless_irq()
1961 wacom_notify_battery(wacom, battery, charging, 1, 0); in wacom_wireless_irq()
1991 int battery = (data[8] & 0x3f) * 100 / 31; in wacom_status_irq() local
1994 wacom_notify_battery(wacom_wac, battery, charging, in wacom_status_irq()
1995 battery || charging, 1); in wacom_status_irq()
1997 if (!wacom->battery && in wacom_status_irq()
2005 wacom->battery) { in wacom_status_irq()
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.1.27/include/linux/mfd/wm8350/
Dsupply.h126 struct power_supply *battery; member
/linux-4.1.27/include/linux/mfd/wm831x/
Dpdata.h134 struct wm831x_battery_pdata *battery; member
/linux-4.1.27/drivers/mtd/lpddr/
DKconfig10 DDR memories, intended for battery-operated systems.
/linux-4.1.27/Documentation/cpuidle/
Ddriver.txt21 It can also support the dynamic changes (like battery <-> AC), by using
/linux-4.1.27/kernel/power/
DKconfig231 techniques. This is mostly useful for battery powered laptops with
234 battery status information, and user-space programs will receive
235 notification of APM "events" (e.g. battery status change).
246 Generally, if you don't have a battery in your machine, there isn't
/linux-4.1.27/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.1.27/arch/arm/boot/dts/
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>;
Dste-dbx5x0.dtsi458 stericsson,battery-type = "LIPO";
464 battery = <&ab8500_battery>;
469 battery = <&ab8500_battery>;
474 battery = <&ab8500_battery>;
480 battery = <&ab8500_battery>;
Dtegra124-nyan.dtsi330 battery: sbs-battery@b { label
331 compatible = "sbs,sbs-battery";
Dexynos5250-snow.dts85 battery: sbs-battery@b { label
86 compatible = "sbs,sbs-battery";
Dtegra114-dalmore.dts765 battery: smart-battery@b { label
766 compatible = "ti,bq20z45", "sbs,sbs-battery";
768 battery-name = "battery";
Dkirkwood-dir665.dts274 /* There is no battery on the boards, so the RTC does not keep time
Dexynos5420-peach-pit.dts954 battery: sbs-battery@b { label
955 compatible = "sbs,sbs-battery";
Dexynos5800-peach-pi.dts917 battery: sbs-battery@b { label
918 compatible = "sbs,sbs-battery";
Dexynos3250-monk.dts134 thermistor-battery {
386 compatible = "maxim,max77836-battery";
Dtegra124-venice2.dts855 battery: sbs-battery@b { label
856 compatible = "sbs,sbs-battery";
Dexynos3250-rinato.dts125 thermistor-battery {
555 compatible = "maxim,max77836-battery";
Dtegra20-seaboard.dts390 smart-battery@b {
391 compatible = "ti,bq20z75", "smart-battery-1.1";
Domap3-pandora-common.dtsi395 /* backup battery charger */
Dexynos4412-trats2.dts578 maxim,battery-overcurrent-microamp = <3500000>;
923 thermistor-battery@1 {
/linux-4.1.27/Documentation/devicetree/bindings/regulator/
Dmax8997-regulator.txt83 - CHARGER_CV: main battery charger voltage control
84 - CHARGER: main battery charger current control
/linux-4.1.27/sound/soc/
DKconfig18 ASoC provides power efficient ALSA support for embedded battery powered
/linux-4.1.27/drivers/mfd/
DKconfig39 controllers, 11 LDOs, RTC, automatic battery, temperature and
99 Controller (EC) providing keyboard, battery and power services.
140 LEDs and battery-charger under the corresponding menus.
334 Passage) chip. This chip embeds audio, battery, GPIO, etc.
364 This driver is necessary for jz4740-battery and jz4740-hwmon driver.
403 battery-charger under the corresponding menus.
426 battery-charger under the corresponding menus.
437 MAX77836 Micro-USB ICs with battery charger.
839 of the AB3100 such as battery-backed RTC, charging control,
878 AB8500 GPADC driver used to convert Acc and battery/ac/usb voltage
[all …]
/linux-4.1.27/Documentation/w1/masters/
Domap-hdq20 A typical application of the HDQ/1-Wire module is the communication with battery
/linux-4.1.27/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.1.27/kernel/time/
DKconfig171 numbers of CPUs, and (3) are suffering from battery-lifetime
177 battery-powered systems.
/linux-4.1.27/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.1.27/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.1.27/include/linux/mfd/
Dmax8997-private.h391 struct platform_device *battery; /* battery control (not fuel gauge) */ member
/linux-4.1.27/Documentation/spi/
Dbutterfly7 battery powered card with an AVR microcontroller and lots of goodies:
/linux-4.1.27/net/irda/
DKconfig67 necessary, thus reduce your battery life (but not that much).
/linux-4.1.27/Documentation/acpi/
Dvideo_extension.txt56 The first two levels are for when laptop are on AC or on battery and are
/linux-4.1.27/Documentation/usb/
Drio.txt37 changing them. It appears RIO 500 firmware does not handle low battery
/linux-4.1.27/arch/arm/mach-sa1100/
DKconfig105 keyboard, touchscreen, backlight and battery. This driver also activates
/linux-4.1.27/drivers/iio/adc/
DKconfig321 Purpose A/D Converter. This will add support for battery type
322 detection, battery voltage and temperature measurement, die
/linux-4.1.27/Documentation/i2c/busses/
Di2c-parport171 jumper in the battery compartment. More details can be found at:
/linux-4.1.27/drivers/rtc/
DKconfig50 This clock should be battery-backed, so that it reads the correct
54 If the clock you specify here is not battery backed, it may still
171 families of ultra-low-power battery- and capacitor-backed real-time
191 chips (often with battery backup) connected with I2C. This driver
1083 support. This chip contains a battery- and capacitor-backed RTC.
1092 support. This chip contains a battery- and capacitor-backed RTC.
1258 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.1.27/drivers/parisc/
DKconfig167 This includes NVRAM battery level, overtemp or failures such as
/linux-4.1.27/drivers/net/ethernet/amd/
DKconfig94 on the AMD LANCE chipset: RieblCard (with or without battery), or
/linux-4.1.27/drivers/staging/i2o/
Di2o.h557 unsigned int battery:1; /* Has a battery backup */ member
/linux-4.1.27/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.1.27/Documentation/leds/
Dledtrig-transient.txt23 permanently causing the battery to drain.
/linux-4.1.27/drivers/cpufreq/
DKconfig169 its optimisation for better suitability in a battery powered
/linux-4.1.27/drivers/mtd/devices/
DKconfig43 This is an MTD driver for the DEC's MS02-NV (54-20948-01) battery
/linux-4.1.27/Documentation/filesystems/
Dext3.txt71 your disks are battery-backed in one way or another,
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.1.27/drivers/input/serio/
DKconfig141 The SDC may also be connected to a battery-backed real-time
/linux-4.1.27/arch/arm/mach-pxa/
Dem-x270.c1206 DA9030_SUBDEV(battery, BAT, &em_x270_batterty_info),
/linux-4.1.27/drivers/macintosh/
DKconfig83 control system power, and battery charging on the portable models.
/linux-4.1.27/drivers/regulator/
DKconfig13 output in order to save power and prolong battery life. This applies
630 for battery-powered portable applications.
/linux-4.1.27/drivers/platform/x86/
DKconfig407 firmware alerts (like critical battery condition), or misled
861 timeout or when the system battery reaches a critical state,
/linux-4.1.27/scripts/
Dspelling.txt160 batery||battery
/linux-4.1.27/arch/x86/
DKconfig2094 techniques. This is mostly useful for battery powered laptops with
2097 battery status information, and user-space programs will receive
2098 notification of APM "events" (e.g. battery status change).
2120 Generally, if you don't have a battery in your machine, there isn't
2166 should always save battery power, but more complicated APM features
/linux-4.1.27/drivers/scsi/aacraid/
Daacraid.h974 __le32 battery; member
/linux-4.1.27/drivers/spi/
DKconfig158 inexpensive battery powered microcontroller evaluation board.
/linux-4.1.27/Documentation/arm64/
Dacpi_object_usage.txt556 -- Section 9.3: battery devices
/linux-4.1.27/Documentation/scsi/
DChangeLog.megaraid_sas502 mode only when the controller has battery backup. At this time
/linux-4.1.27/Documentation/virtual/kvm/
Dtimekeeping.txt197 The RTC will update the current time fields by battery power even while the
/linux-4.1.27/init/
DKconfig727 callback invocation to energy-efficient CPUs in battery-powered
/linux-4.1.27/
DCREDITS1962 D: Various ACPI fixes, keeping correct battery state through suspend
DMAINTAINERS3176 F: drivers/power/da9052-battery.c
7789 T: git git://git.infradead.org/battery-2.6.git