| /linux/drivers/acpi/ |
| A D | battery.c | 170 if (battery->design_capacity <= battery->capacity_now) in acpi_battery_is_charged() 289 (battery->capacity_now <= battery->alarm)) in acpi_battery_get_property() 501 battery->power_unit && battery->design_voltage) { in extract_battery_info() 603 battery->rate_now = abs((s16)battery->rate_now); in acpi_battery_get_state() 609 battery->capacity_now = (battery->capacity_now * in acpi_battery_get_state() 612 battery->power_unit && battery->design_voltage) { in acpi_battery_get_state() 613 battery->capacity_now = battery->capacity_now * in acpi_battery_get_state() 654 battery->alarm = battery->design_capacity_warning; in acpi_battery_init_alarm() 959 battery->capacity_now = (battery->capacity_now * in acpi_battery_quirks() 984 battery->capacity_now = battery->capacity_now * in acpi_battery_quirks() [all …]
|
| A D | sbs.c | 347 (u8 *) battery + in acpi_battery_get_info() 368 (u8 *)battery + in acpi_battery_get_state() 459 if (battery->present) in acpi_battery_alarm_store() 490 battery->present = state & (1 << battery->id); in acpi_battery_read() 525 struct acpi_battery *battery = &sbs->battery[id]; in acpi_battery_add() local 532 battery->id = id; in acpi_battery_add() 533 battery->sbs = sbs; in acpi_battery_add() 539 battery->bat_desc.name = battery->name; in acpi_battery_add() 562 battery->name, battery->present ? "present" : "absent"); in acpi_battery_add() 568 struct acpi_battery *battery = &sbs->battery[id]; in acpi_battery_remove() local [all …]
|
| /linux/drivers/power/supply/ |
| A D | rt5033_battery.c | 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() 145 struct rt5033_battery *battery; in rt5033_battery_probe() local 150 battery = devm_kzalloc(&client->dev, sizeof(*battery), GFP_KERNEL); in rt5033_battery_probe() 151 if (!battery) in rt5033_battery_probe() 154 battery->client = client; in rt5033_battery_probe() 155 battery->regmap = devm_regmap_init_i2c(client, in rt5033_battery_probe() 157 if (IS_ERR(battery->regmap)) { in rt5033_battery_probe() 162 i2c_set_clientdata(client, battery); in rt5033_battery_probe() 164 psy_cfg.drv_data = battery; in rt5033_battery_probe() [all …]
|
| A D | Kconfig | 36 battery class devices. 136 tristate "DS2780 battery driver" 144 tristate "DS2781 battery driver" 171 tristate "Lenovo Yoga C630 battery" 180 tristate "Apple PMU battery" 184 through the generic battery class. 223 called ingenic-battery. 267 tristate "BQ27xxx battery driver" 301 tristate "DA9030 battery driver" 433 battery. MAX17215 designed for muticell battery. Both them have [all …]
|
| /linux/Documentation/devicetree/bindings/power/supply/ |
| A D | 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: 42 - monitored-battery 50 simple_battery: battery { 56 ingenic-battery { [all …]
|
| A D | battery.yaml | 13 The devicetree battery node provides static battery characteristics. 18 Upstream dts files should not include battery nodes, unless the battery 32 const: simple-battery 55 description: drained battery voltage 61 description: battery design energy 64 description: battery design capacity 130 of the battery and corresponding battery capacity percent, which is used 148 battery: battery { 149 compatible = "simple-battery"; 177 monitored-battery = <&battery>; [all …]
|
| A D | adc-battery.yaml | 4 $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 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 48 monitored-battery: true 54 - monitored-battery 63 compatible = "adc-battery"; [all …]
|
| A D | x-powers,axp20x-battery-power-supply.yaml | 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 30 - const: x-powers,axp813-battery-power-supply 32 monitored-battery: [all …]
|
| A D | cpcap-battery.yaml | 8 title: Motorola CPCAP PMIC battery 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 49 - description: battery current 73 battery { [all …]
|
| A D | samsung,battery.yaml | 4 $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>;
|
| A D | charger-manager.yaml | 34 default: battery 51 cm-battery-stat: 52 description: battery status 56 - 1 # no battery 91 cm-battery-cold: 95 cm-battery-cold-in-minus: 99 cm-battery-hot: 103 cm-battery-temp-diff: 176 cm-name = "battery"; 184 cm-battery-stat = <3>; [all …]
|
| A D | lego,ev3-battery.yaml | 4 $id: http://devicetree.org/schemas/power/supply/lego,ev3-battery.yaml# 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 { 51 compatible = "lego,ev3-battery";
|
| A D | sbs,sbs-battery.yaml | 4 $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. 76 battery@b { 77 compatible = "ti,bq20z75", "sbs,sbs-battery"; [all …]
|
| A D | bq24190.yaml | 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). 59 setting (typically 10% of battery capacity). 73 bat: battery { 74 compatible = "simple-battery"; [all …]
|
| A D | sbs,sbs-manager.yaml | 66 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>;
|
| A D | rohm,bd99954.yaml | 16 secondary battery intended to be used in space-constraint equipment such 27 # The battery charging profile of BD99954. 30 # Curve (2) represents battery voltage. 69 # The charger uses the following battery properties 92 # when battery voltage exceeds this limit voltage (3 in above chart) 101 # to the point where the battery voltage drops below this limit 103 # battery is expected to be faulty if battery voltage exceeds this limit. 104 # Charger will then enter to a "battery faulty" -state 122 monitored-battery: 124 phandle of battery characteristics devicetree node [all …]
|
| A D | nokia,n900-battery.yaml | 4 $id: http://devicetree.org/schemas/power/supply/nokia,n900-battery.yaml# 7 title: Nokia N900 battery 18 const: nokia,n900-battery 23 - description: ADC channel for battery size identification 24 - description: ADC channel to measure the battery voltage 41 battery { 42 compatible = "nokia,n900-battery";
|
| A D | sc2731-charger.yaml | 7 title: Spreadtrum SC2731 PMICs battery charger 26 monitored-battery: 28 The charger uses the following battery properties 36 bat: battery { 37 compatible = "simple-battery"; 46 battery@a00 { 50 monitored-battery = <&bat>;
|
| A D | sc27xx-fg.yaml | 27 battery-detect-gpios: 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>; 101 monitored-battery = <&bat>;
|
| /linux/Documentation/devicetree/bindings/rtc/ |
| A D | rtc-palmas.txt | 10 - ti,backup-battery-chargeable: The Palmas series device like TPS65913 or 11 TPS80036 supports the backup battery for powering the RTC when main 12 battery is removed or in very low power state. The backup battery 14 battery is chargeable or not. If charging battery then driver can 16 - ti,backup-battery-charge-high-current: Enable high current charging in 17 backup battery. Device supports the < 100uA and > 100uA charging. 19 charge battery to lower current i.e. < 100uA. 28 ti,backup-battery-chargeable; 29 ti,backup-battery-charge-high-current;
|
| /linux/Documentation/hwmon/ |
| A D | da9052.rst | 27 Channel 1 ICH - internal battery charger current measurement 28 Channel 2 TBAT - output from the battery NTC 29 Channel 3 VBAT - measurement of the battery voltage 36 Channel 9 VBBAT - measurement of the backup battery voltage 39 By using sysfs attributes we can measure the system voltage VDDOUT, the battery 40 charging current ICH, battery temperature TBAT, battery junction temperature 41 TJUNC, battery voltage VBAT and the back up battery voltage VBBAT. 48 The battery voltage is calculated as: 52 The backup battery voltage is calculated as: 63 Temperatures are sampled by a 10 bit ADC. Junction and battery temperatures [all …]
|
| /linux/Documentation/power/ |
| A D | charger-manager.rst | 50 * Support for premature full-battery event handling 124 do not poll this battery. 126 always poll this battery. 131 poll this battery if and only if the battery is being charged. 135 battery voltage drop fullbatt_vchkdrop_ms after the battery is fully 144 that the battery is full (capacity = 100) if the battery is not being 154 assume that the battery exists. 156 assume that the battery does not exists. 158 get battery presence information from fuel gauge. 160 get battery presence from chargers. [all …]
|
| A D | power_supply_class.rst | 99 POWER_SUPPLY_HEALTH_*, defined in battery.h. 102 open circuit voltage of the battery. 146 (typically 20% of battery capacity). 181 battery or coulomb counter calibration status 195 minimum battery temperature alert. 197 maximum battery temperature alert. 210 seconds left for battery to be considered empty 211 (i.e. while battery powers a load) 213 seconds left for battery to be considered full 214 (i.e. while battery is charging) [all …]
|
| /linux/drivers/hid/ |
| A D | hid-logitech-hidpp.c | 729 hidpp->battery.level = in hidpp10_query_battery_status() 826 if (hidpp->battery.ps) in hidpp10_battery_event() 1366 if (hidpp->battery.ps) in hidpp20_battery_event_1000() 1537 if (voltage != hidpp->battery.voltage || status != hidpp->battery.status) { in hidpp20_battery_voltage_event() 1544 if (hidpp->battery.ps) in hidpp20_battery_voltage_event() 1757 if (hidpp->battery.ps) in hidpp20_battery_event_1004() 1994 if (voltage != hidpp->battery.voltage || status != hidpp->battery.status) { in hidpp20_adc_measurement_event_1f20() 4041 if (hidpp->battery.ps) in hidpp_initialize_battery() 4106 battery = &hidpp->battery; in hidpp_initialize_battery() 4118 &battery->desc, in hidpp_initialize_battery() [all …]
|
| /linux/arch/arm64/boot/dts/qcom/ |
| A D | sdm845-oneplus-enchilada.dts | 17 battery: battery { label 18 compatible = "simple-battery"; 33 monitored-battery = <&battery>; 55 monitored-battery = <&battery>;
|