Home
last modified time | relevance | path

Searched full:battery (Results 1 – 25 of 809) sorted by relevance

12345678910>>...33

/linux/drivers/power/supply/
H A DKconfig36 battery class devices.
39 tristate "Generic battery support using IIO"
42 Say Y here to enable support for the generic battery driver
51 which include a battery charger and a boost converter.
54 tristate "MAX8925 battery charger support"
57 Say Y here to enable support for the battery charger in the Maxim
61 tristate "WM831X backup battery charger support"
64 Say Y here to enable support for the backup battery charger
87 tristate "Marvell 88PM860x battery driver"
90 Say Y here to enable battery monitor for Marvell 88PM860x chip.
[all …]
H A Drt5033_battery.c24 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_status() local
28 ret = power_supply_get_property_from_supplier(battery->psy, in rt5033_battery_get_status()
39 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_capacity() local
42 regmap_read(battery->regmap, RT5033_FUEL_REG_SOC_H, &msb); in rt5033_battery_get_capacity()
49 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_present() local
52 regmap_read(battery->regmap, RT5033_FUEL_REG_CONFIG_L, &val); in rt5033_battery_get_present()
60 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_watt_prop() local
82 regmap_read(battery->regmap, regh, &msb); in rt5033_battery_get_watt_prop()
83 regmap_read(battery->regmap, regl, &lsb); in rt5033_battery_get_watt_prop()
94 struct rt5033_battery *battery = power_supply_get_drvdata(psy); in rt5033_battery_get_property() local
[all …]
H A Dingenic-battery.c3 * Battery driver for the Ingenic JZ47xx SoCs
6 * based on drivers/power/supply/jz4740-battery.c
20 struct power_supply *battery; member
61 * based on the battery's max voltage.
138 bat->channel = devm_iio_channel_get(dev, "battery"); in ingenic_battery_probe()
143 desc->name = "jz-battery"; in ingenic_battery_probe()
151 bat->battery = devm_power_supply_register(dev, desc, &psy_cfg); in ingenic_battery_probe()
152 if (IS_ERR(bat->battery)) in ingenic_battery_probe()
153 return dev_err_probe(dev, PTR_ERR(bat->battery), in ingenic_battery_probe()
154 "Unable to register battery\n"); in ingenic_battery_probe()
[all …]
/linux/drivers/acpi/
H A Dsbs.c3 * sbs.c - ACPI Smart Battery System Driver ($Revision: 2.0 $)
24 #include <acpi/battery.h>
30 #define ACPI_SBS_DEVICE_NAME "Smart Battery System"
38 MODULE_DESCRIPTION("Smart Battery System ACPI interface driver");
89 struct acpi_battery battery[MAX_SBS_BAT]; member
99 static int acpi_battery_get_state(struct acpi_battery *battery);
109 static inline int acpi_battery_vscale(struct acpi_battery *battery) in acpi_battery_vscale() argument
111 return battery_scale((battery->spec & 0x0f00) >> 8); in acpi_battery_vscale()
114 static inline int acpi_battery_ipscale(struct acpi_battery *battery) in acpi_battery_ipscale() argument
116 return battery_scale((battery->spec & 0xf000) >> 12); in acpi_battery_ipscale()
[all …]
/linux/Documentation/devicetree/bindings/power/supply/
H A Dbattery.yaml4 $id: http://devicetree.org/schemas/power/supply/battery.yaml#
7 title: Battery Characteristics
13 The devicetree battery node provides static battery characteristics.
15 on a fuel gauge chip. The battery node should be used where there is
18 Upstream dts files should not include battery nodes, unless the battery
21 behavior should a replacement that changes the battery type occur
24 Battery properties are named, where possible, for the corresponding elements
28 The phandle's property should be named "monitored-battery".
32 const: simple-battery
35 description: This describes the chemical technology of the battery.
[all …]
H A Dingenic,battery.yaml5 $id: http://devicetree.org/schemas/power/supply/ingenic,battery.yaml#
8 title: Ingenic JZ47xx battery
18 - const: ingenic,jz4740-battery
21 - ingenic,jz4725b-battery
22 - ingenic,jz4770-battery
23 - const: ingenic,jz4740-battery
29 const: battery
31 monitored-battery:
34 in battery.yaml, with the following properties being required:
35 - voltage-min-design-microvolt: drained battery voltage,
[all …]
H A Dadc-battery.yaml4 $id: http://devicetree.org/schemas/power/supply/adc-battery.yaml#
7 title: ADC battery
13 Basic battery capacity meter, which only reports basic battery data
14 via ADC channels and optionally indicate that the battery is full by
17 The voltage is expected to be measured between the battery terminals
19 monitor the current/power flowing out of the battery. Last but not
20 least the temperature channel is supposed to measure the battery
28 const: adc-battery
32 GPIO which signals that the battery is fully charged. The GPIO is
48 monitored-battery: true
[all …]
H A Dx-powers,axp20x-battery-power-supply.yaml4 $id: http://devicetree.org/schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#
7 title: AXP20x Battery power-supply
10 The supported devices can read the battery voltage, charge and discharge
11 currents of the battery by reading ADC channels from the ADC.
23 - const: x-powers,axp202-battery-power-supply
24 - const: x-powers,axp209-battery-power-supply
25 - const: x-powers,axp221-battery-power-supply
26 - const: x-powers,axp717-battery-power-supply
28 - const: x-powers,axp803-battery-power-supply
29 - const: x-powers,axp813-battery-power-supply
[all …]
H A Dcharger-manager.yaml29 description: name of battery fuel gauge
34 default: battery
51 cm-battery-stat:
52 description: battery status
55 - 0 # battery always present
56 - 1 # no battery
68 description: voltage of full battery in uV
72 description: state of charge to consider as full battery in %
76 description: capcity to consider as full battery in uAh
91 cm-battery-cold:
[all …]
H A Dcpcap-battery.yaml5 $id: http://devicetree.org/schemas/power/supply/cpcap-battery.yaml#
8 title: Motorola CPCAP PMIC battery
16 the Droid 4. This binding describes its battery fuel gauge
24 const: motorola,cpcap-battery
29 - description: low battery percentage interrupt
30 - description: critical battery percentage interrupt
32 - description: battery detect interrupt
46 - description: battery temperature
47 - description: battery voltage
48 - description: battery charge current
[all …]
H A Dsbs,sbs-battery.yaml4 $id: http://devicetree.org/schemas/power/supply/sbs,sbs-battery.yaml#
7 title: SBS compliant battery
13 Battery compatible with the smart battery system specifications
27 - sbs,sbs-battery
29 - const: sbs,sbs-battery
47 sbs,battery-detect-gpios:
49 GPIO which signals battery detection. If this is not supplied, the bus
50 needs to be polled to detect the battery.
58 the bus. Also some SBS battery fuel gauges are known to have a buggy multi-
76 battery@b {
[all …]
H A Dsamsung,battery.yaml4 $id: http://devicetree.org/schemas/power/supply/samsung,battery.yaml#
16 the physical restrictions make it impossible to use another battery with the
25 description: 3.8V 1500 mAh battery used in Samsung GT-I8190
27 description: 3.8V 1500 mAh battery used in Samsung SGH-T599 and SGH-I407
29 description: 3.8V 1500 mAh battery used in Samsung GT-I8160
31 description: 3.8V 1700 mAh battery used in Samsung GT-S7710
33 description: 3.8V 1500 mAh battery used in Samsung GT-I9070
35 description: 3.8V 2000 mAh battery used in Samsung GT-I8530
48 battery: battery {
54 monitored-battery = <&battery>;
H A Dlego,ev3-battery.yaml4 $id: http://devicetree.org/schemas/power/supply/lego,ev3-battery.yaml#
7 title: LEGO MINDSTORMS EV3 Battery
14 LEGO MINDSTORMS EV3 has some built-in capability for monitoring the battery.
15 It uses 6 AA batteries or a special Li-ion rechargeable battery pack that is
16 detected by a key switch in the battery compartment.
23 const: lego,ev3-battery
27 - description: ADC channel for battery voltage
28 - description: ADC channel for battery current
37 description: Rechargeable battery indication gpio
50 battery {
[all …]
H A Dbq24190.yaml8 title: TI BQ2419x Li-Ion Battery Charger
39 when power is connected and the battery is below minimum system voltage,
42 omit-battery-class:
46 battery device.
48 monitored-battery:
51 phandle to a "simple-battery" compatible node.
54 in battery.yaml, with the following properties being required:
56 (typically 20% of battery capacity).
57 - charge-term-current-microamp: a charge cycle terminates when the battery voltage is
59 setting (typically 10% of battery capacity).
[all …]
H A Drohm,bd99954.yaml7 title: ROHM BD99954 Battery charger
15 The ROHM BD99954 is a Battery Management LSI for 1-4 cell Lithium-Ion
16 secondary battery intended to be used in space-constraint equipment such
18 provides a Dual-source Battery Charger, two port BC1.2 detection and a
19 Battery Monitor.
27 # The battery charging profile of BD99954.
30 # Curve (2) represents battery voltage.
37 # Then constant voltage (CV) phase (after the battery voltage has reached
69 # The charger uses the following battery properties
92 # when battery voltage exceeds this limit voltage (3 in above chart)
[all …]
H A Drichtek,rt5033-charger.yaml7 title: Richtek RT5033 PMIC Battery Charger
13 The battery charger of the multifunction device RT5033 has to be instantiated
20 monitored-battery:
23 Phandle to the monitored battery according to battery.yaml. The battery
40 Voltage of pre-charge mode. If the battery voltage is below the pre-charge
45 Battery regulation voltage of constant voltage mode. This voltage levels
55 - monitored-battery
63 monitored-battery = <&battery>;
H A Dsc27xx-fg.yaml27 battery-detect-gpios:
35 - description: Battery Temperature ADC
36 - description: Battery Charge Voltage ADC
53 monitored-battery: true
58 - battery-detect-gpios
65 - monitored-battery
72 bat: battery {
73 compatible = "simple-battery";
91 battery@a00 {
94 battery-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>;
[all …]
H A Dsbs,sbs-manager.yaml66 batman: battery-manager@a {
80 battery@b {
81 compatible = "ti,bq20z65", "sbs,sbs-battery";
83 sbs,battery-detect-gpios = <&batman 1 1>;
92 battery@b {
93 compatible = "ti,bq20z65", "sbs,sbs-battery";
95 sbs,battery-detect-gpios = <&batman 2 1>;
104 battery@b {
105 compatible = "ti,bq20z65", "sbs,sbs-battery";
107 sbs,battery-detect-gpios = <&batman 3 1>;
H A Dqcom,pm8916-lbc.yaml7 title: Qualcomm Linear Battery Charger
13 Linear Battery Charger hardware block, found in some Qualcomm PMICs
26 - description: Battery
39 - description: Battery detection
43 - description: Battery present
44 - description: Battery temperature OK
68 Maximum safe battery voltage in uV; May be pre-set by bootloader,
76 Maximum safe battery charge current in uA; May be pre-set by
79 monitored-battery: true
123 monitored-battery = <&battery>;
/linux/Documentation/power/
H A Dcharger-manager.rst7 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 …]
H A Dpower_supply_class.rst7 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/Documentation/ABI/testing/
H A Dsysfs-class-power37 Valid values: "Battery", "UPS", "Mains", "USB", "Wireless"
39 **Battery and USB properties**
45 Battery:
47 Reports an average IBAT current reading for the battery, over
68 Battery:
70 Reports the maximum IBAT current allowed into the battery.
84 Battery:
87 battery. This value is not averaged/smoothed.
108 Battery:
110 Reports the current TBAT battery temperature reading.
[all …]
/linux/Documentation/devicetree/bindings/rtc/
H A Drtc-palmas.txt10 - 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/include/linux/
H A Dpower_supply.h29 * For systems where the charger determines the maximum battery capacity
349 int vbat_uv; /* Battery voltage in microvolt */
356 * the charge of the battery full as current is consumed after full charging.
371 * for the battery.
378 * charger: instead they will at all times dissipate the battery a little, like
390 * battery and this causes degeneration of the battery anode and cathode.
391 * To prolong the life of the battery, maintenance charging is applied after
392 * reaching charge_term_current_ua to hold up the charge in the battery while
393 * consuming power, thus lowering the wear on the battery:
411 * As an example, a Samsung EB425161LA Lithium-Ion battery is CC/CV charged
[all …]
/linux/Documentation/hwmon/
H A Dda9052.rst27 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 …]

12345678910>>...33