Home
last modified time | relevance | path

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

12345678910>>...57

/kernel/linux/linux-6.6/drivers/acpi/
Dbattery.c3 * battery.c - ACPI Battery Driver (Revision: 2.0)
11 #define pr_fmt(fmt) "ACPI: battery: " fmt
30 #include <acpi/battery.h>
36 #define ACPI_BATTERY_DEVICE_NAME "Battery"
38 /* Battery power unit: 0 means mW, 1 means mA */
49 MODULE_DESCRIPTION("ACPI Battery Driver");
78 * is running on battery or not. When mAh is the unit, most
134 static inline int acpi_battery_present(struct acpi_battery *battery) in acpi_battery_present() argument
136 return battery->device->status.battery_present; in acpi_battery_present()
139 static int acpi_battery_technology(struct acpi_battery *battery) in acpi_battery_technology() argument
[all …]
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 …]
/kernel/linux/linux-5.10/drivers/acpi/
Dbattery.c3 * battery.c - ACPI Battery Driver (Revision: 2.0)
30 #include <acpi/battery.h>
38 #define ACPI_BATTERY_DEVICE_NAME "Battery"
40 /* Battery power unit: 0 means mW, 1 means mA */
49 ACPI_MODULE_NAME("battery");
53 MODULE_DESCRIPTION("ACPI Battery Driver");
78 /* Lists of PMIC ACPI HIDs with an (often better) native battery driver */
89 is running on battery or not. When mAh is the unit, most
144 static inline int acpi_battery_present(struct acpi_battery *battery) in acpi_battery_present() argument
146 return battery->device->status.battery_present; in acpi_battery_present()
[all …]
Dsbs.c3 * sbs.c - ACPI Smart Battery System Driver ($Revision: 2.0 $)
22 #include <acpi/battery.h>
30 #define ACPI_SBS_DEVICE_NAME "Smart Battery System"
38 MODULE_DESCRIPTION("Smart Battery System ACPI interface driver");
90 struct acpi_battery battery[MAX_SBS_BAT]; member
100 static int acpi_battery_get_state(struct acpi_battery *battery);
110 static inline int acpi_battery_vscale(struct acpi_battery *battery) in acpi_battery_vscale() argument
112 return battery_scale((battery->spec & 0x0f00) >> 8); in acpi_battery_vscale()
115 static inline int acpi_battery_ipscale(struct acpi_battery *battery) in acpi_battery_ipscale() argument
117 return battery_scale((battery->spec & 0xf000) >> 12); in acpi_battery_ipscale()
[all …]
/kernel/linux/linux-5.10/drivers/power/supply/
DKconfig45 battery class devices.
48 tristate "Generic battery support using IIO"
51 Say Y here to enable support for the generic battery driver
55 tristate "MAX8925 battery charger support"
58 Say Y here to enable support for the battery charger in the Maxim
62 tristate "WM831X backup battery charger support"
65 Say Y here to enable support for the backup battery charger
88 tristate "Marvell 88PM860x battery driver"
91 Say Y here to enable battery monitor for Marvell 88PM860x chip.
94 tristate "ADP5061 battery charger driver"
[all …]
Drt5033_battery.c17 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_capacity() local
20 regmap_read(battery->regmap, RT5033_FUEL_REG_SOC_H, &msb); in rt5033_battery_get_capacity()
27 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_present() local
30 regmap_read(battery->regmap, RT5033_FUEL_REG_CONFIG_L, &val); in rt5033_battery_get_present()
38 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_watt_prop() local
60 regmap_read(battery->regmap, regh, &msb); in rt5033_battery_get_watt_prop()
61 regmap_read(battery->regmap, regl, &lsb); in rt5033_battery_get_watt_prop()
72 struct rt5033_battery *battery = power_supply_get_drvdata(psy); in rt5033_battery_get_property() local
78 val->intval = rt5033_battery_get_watt_prop(battery->client, in rt5033_battery_get_property()
82 val->intval = rt5033_battery_get_present(battery->client); in rt5033_battery_get_property()
[all …]
/kernel/linux/linux-6.6/drivers/power/supply/
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 …]
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 …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/
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 …]
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 …]
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 …]
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 …]
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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
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: battery over-voltage limit
[all …]
Dingenic,battery.yaml5 $id: "http://devicetree.org/schemas/power/supply/ingenic,battery.yaml#"
8 title: Ingenic JZ47xx battery bindings
16 - const: ingenic,jz4740-battery
19 - ingenic,jz4725b-battery
20 - ingenic,jz4770-battery
21 - const: ingenic,jz4740-battery
27 const: battery
29 monitored-battery:
31 phandle to a "simple-battery" compatible node.
34 in battery.yaml, with the following properties being required:
[all …]
Dcharger-manager.txt8 - cm-fuel-gauge : name of battery fuel gauge
20 - cm-name : charger manager's name (default : "battery")
25 - cm-battery-stat : battery status - 0 for battery always present, 1 for no
26 battery, 2 to check presence via fuel gauge, or 3 to check presence
29 - cm-fullbatt-voltage : voltage (in uV) of full battery
30 - cm-fullbatt-soc : state of charge to consider as full battery
31 - cm-fullbatt-capacity : capcity (in uAh) to consider as full battery
33 - cm-battery-* : threshold battery temperature for charging
34 -cold : critical cold temperature of battery for charging
36 -hot : critical hot temperature of battery for charging
[all …]
/kernel/linux/linux-6.6/Documentation/power/
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 …]
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 …]
/kernel/linux/linux-5.10/Documentation/power/
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 …]
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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/Documentation/wmi/devices/
Ddell-wmi-ddv.rst11 retrieving various system data like battery temperature, ePPID, diagostic data
57 …[WmiMethodId(1), Implemented, read, write, Description("Return Battery Design Capacity.")] void Ba…
58 …[WmiMethodId(2), Implemented, read, write, Description("Return Battery Full Charge Capacity.")] vo…
59 …[WmiMethodId(3), Implemented, read, write, Description("Return Battery Manufacture Name.")] void B…
60 …[WmiMethodId(4), Implemented, read, write, Description("Return Battery Manufacture Date.")] void B…
61 …[WmiMethodId(5), Implemented, read, write, Description("Return Battery Serial Number.")] void Batt…
62 …[WmiMethodId(6), Implemented, read, write, Description("Return Battery Chemistry Value.")] void Ba…
63 …[WmiMethodId(7), Implemented, read, write, Description("Return Battery Temperature.")] void Batter…
64 …[WmiMethodId(8), Implemented, read, write, Description("Return Battery Current.")] void BatteryCur…
65 …[WmiMethodId(9), Implemented, read, write, Description("Return Battery Voltage.")] void BatteryVol…
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
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 …]
/kernel/linux/linux-6.6/Documentation/ABI/testing/
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 …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/rtc/
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;

12345678910>>...57