/linux/drivers/acpi/ |
A D | battery.c | 172 if (battery->design_capacity <= battery->capacity_now) in acpi_battery_is_charged() 289 (battery->capacity_now <= battery->alarm)) in acpi_battery_get_property() 492 battery->power_unit && battery->design_voltage) { in extract_battery_info() 594 battery->rate_now = abs((s16)battery->rate_now); in acpi_battery_get_state() 600 battery->capacity_now = (battery->capacity_now * in acpi_battery_get_state() 603 battery->power_unit && battery->design_voltage) { in acpi_battery_get_state() 604 battery->capacity_now = battery->capacity_now * in acpi_battery_get_state() 645 battery->alarm = battery->design_capacity_warning; in acpi_battery_init_alarm() 918 battery->capacity_now = (battery->capacity_now * in acpi_battery_quirks() 943 battery->capacity_now = battery->capacity_now * in acpi_battery_quirks() [all …]
|
A D | sbs.c | 348 (u8 *) battery + in acpi_battery_get_info() 369 (u8 *)battery + in acpi_battery_get_state() 460 if (battery->present) in acpi_battery_alarm_store() 483 battery->present = state & (1 << battery->id); in acpi_battery_read() 511 struct acpi_battery *battery = &sbs->battery[id]; in acpi_battery_add() local 515 battery->id = id; in acpi_battery_add() 516 battery->sbs = sbs; in acpi_battery_add() 522 battery->bat_desc.name = battery->name; in acpi_battery_add() 549 battery->name, battery->present ? "present" : "absent"); in acpi_battery_add() 555 struct acpi_battery *battery = &sbs->battery[id]; in acpi_battery_remove() local [all …]
|
/linux/drivers/power/supply/ |
A D | rt5033_battery.c | 60 regmap_read(battery->regmap, regh, &msb); in rt5033_battery_get_watt_prop() 120 struct rt5033_battery *battery; in rt5033_battery_probe() local 126 battery = devm_kzalloc(&client->dev, sizeof(*battery), GFP_KERNEL); in rt5033_battery_probe() 127 if (!battery) in rt5033_battery_probe() 130 battery->client = client; in rt5033_battery_probe() 133 if (IS_ERR(battery->regmap)) { in rt5033_battery_probe() 138 i2c_set_clientdata(client, battery); in rt5033_battery_probe() 139 psy_cfg.drv_data = battery; in rt5033_battery_probe() 143 if (IS_ERR(battery->psy)) { in rt5033_battery_probe() 145 ret = PTR_ERR(battery->psy); in rt5033_battery_probe() [all …]
|
A D | Kconfig | 45 battery class devices. 137 tristate "DS2780 battery driver" 145 tristate "DS2781 battery driver" 172 tristate "Apple PMU battery" 176 through the generic battery class. 207 called ingenic-battery. 251 tristate "BQ27xxx battery driver" 285 tristate "DA9030 battery driver" 405 battery. MAX17215 designed for muticell battery. Both them have 409 battery gas-gauge. [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
A D | 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: 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 125 of the battery and corresponding battery capacity percent, which is used 143 battery: battery { 144 compatible = "simple-battery"; 172 monitored-battery = <&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 | charger-manager.yaml | 34 default: battery 50 cm-battery-stat: 51 description: battery status 53 - 0 # battery always present 54 - 1 # no battery 89 cm-battery-cold: 93 cm-battery-cold-in-minus: 97 cm-battery-hot: 101 cm-battery-temp-diff: 174 cm-name = "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 | stericsson,ab8500-battery.txt | 2 information about the battery connected to the PMIC. 8 A boolean value indicating thermistor interface to battery 11 'btemp' and 'batctrl' are the pins interfaced for battery temperature 13 coefficient) resister is interfaced external to battery whereas 14 'batctrl' pin is used when NTC resister is internal to battery. 20 indicates: NTC resister is internal to battery, 'batctrl' is used 24 NTC resister is external to battery and 'btemp' signal is used 27 battery-type: 28 This shall be the battery manufacturing technology type, 33 stericsson,battery-type = "LIPO";
|
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 | x-powers,axp20x-battery-power-supply.yaml | 4 $id: "http://devicetree.org/schemas/power/supply/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 27 - const: x-powers,axp803-battery-power-supply 28 - const: x-powers,axp813-battery-power-supply 29 - const: x-powers,axp813-battery-power-supply
|
A D | bq24190.yaml | 38 when power is connected and the battery is below minimum system voltage, 41 omit-battery-class: 45 battery device. 47 monitored-battery: 50 phandle to a "simple-battery" compatible node. 53 in battery.yaml, with the following properties being required: 55 (typically 20% of battery capacity). 58 setting (typically 10% of battery capacity). 72 bat: battery { 73 compatible = "simple-battery"; [all …]
|
A D | sbs,sbs-manager.yaml | 62 batman: battery-manager@a { 76 battery@b { 77 compatible = "ti,bq20z65", "sbs,sbs-battery"; 79 sbs,battery-detect-gpios = <&batman 1 1>; 88 battery@b { 89 compatible = "ti,bq20z65", "sbs,sbs-battery"; 91 sbs,battery-detect-gpios = <&batman 2 1>; 100 battery@b { 101 compatible = "ti,bq20z65", "sbs,sbs-battery"; 103 sbs,battery-detect-gpios = <&batman 3 1>;
|
A D | rohm,bd99954.yaml | 16 secondary battery intended to be used in space-constraint equipment such 26 # The battery charging profile of BD99954. 29 # Curve (2) represents battery voltage. 68 # The charger uses the following battery properties 91 # when battery voltage exceeds this limit voltage (3 in above chart) 100 # to the point where the battery voltage drops below this limit 102 # battery is expected to be faulty if battery voltage exceeds this limit. 103 # Charger will then enter to a "battery faulty" -state 121 monitored-battery: 123 phandle of battery characteristics devicetree node [all …]
|
A D | sc2731-charger.yaml | 7 title: Spreadtrum SC2731 PMICs battery charger binding 26 monitored-battery: 28 The charger uses the following battery properties 31 See Documentation/devicetree/bindings/power/supply/battery.yaml 37 bat: battery { 38 compatible = "simple-battery"; 47 battery@a00 { 51 monitored-battery = <&bat>;
|
A D | sc27xx-fg.yaml | 27 battery-detect-gpios: 50 monitored-battery: true 55 - battery-detect-gpios 61 - monitored-battery 68 bat: battery { 69 compatible = "simple-battery"; 87 battery@a00 { 90 battery-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>; 95 monitored-battery = <&bat>;
|
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 | cw2015_battery.yaml | 13 The driver can utilize information from a simple-battery linked via a 14 phandle in monitored-battery. If specified the driver uses the 15 charge-full-design-microamp-hours property of the battery. 24 cellwise,battery-profile: 26 This property specifies characteristics of the battery used. The format 41 Specifies supplies used for charging the battery connected to this gauge 46 monitored-battery: 48 Specifies the phandle of a simple-battery connected to this gauge 66 cellwise,battery-profile = /bits/ 8 < 77 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/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/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/drivers/hid/ |
A D | hid-logitech-hidpp.c | 660 hidpp->battery.level = in hidpp10_query_battery_status() 757 if (hidpp->battery.ps) in hidpp10_battery_event() 1245 if (hidpp->battery.ps) in hidpp20_battery_event_1000() 1418 if (voltage != hidpp->battery.voltage || status != hidpp->battery.status) { in hidpp20_battery_voltage_event() 1425 if (hidpp->battery.ps) in hidpp20_battery_voltage_event() 1638 if (hidpp->battery.ps) in hidpp20_battery_event_1004() 1910 if (hidpp->battery.ps) in hidpp_solar_battery_event() 3713 if (hidpp->battery.ps) in hidpp_initialize_battery() 3773 battery = &hidpp->battery; in hidpp_initialize_battery() 3785 &battery->desc, in hidpp_initialize_battery() [all …]
|