Home
last modified time | relevance | path

Searched +full:fuel +full:- +full:gauge (Results 1 – 25 of 89) sorted by relevance

1234

/OK3568_Linux_fs/u-boot/drivers/power/fuel_gauge/
H A DKconfig2 bool "Enable driver model fuel gauge support"
5 This adds a simple uclass for fuel gauge.
8 bool "Enable driver model fuel gauge support"
11 This adds a simple uclass for fuel gauge.
14 bool "CW201X Fuel gauge support"
17 This adds support for CW201X fuel gauge support.
20 bool "CW221X Fuel gauge support"
23 This adds support for CW221X fuel gauge support.
26 bool "CW201X Fuel gauge support"
29 This adds support for CW201X fuel gauge support.
[all …]
H A Dfg_max17042.c5 * SPDX-License-Identifier: GPL-2.0+
63 return -1; in fg_write_and_verify()
86 if (!rewrite_count--) { in por_fuelgauge_init()
112 if (!check_count--) { in por_fuelgauge_init()
141 if (!lock_count--) { in por_fuelgauge_init()
190 debug("%s: model init status: %s\n", p->name, status_msg); in por_fuelgauge_init()
196 struct power_battery *pb = bat->pbat; in power_update_battery()
201 puts("Can't find max17042 fuel gauge\n"); in power_update_battery()
202 return -ENODEV; in power_update_battery()
206 pb->bat->state_of_chrg = (val >> 8); in power_update_battery()
[all …]
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
105 tristate "Active-semi ACT8945A charger driver"
109 Active-semi ActivePath ACT8945A charger.
125 battery fuel gauge (used in the Pinebook Pro & others)
136 battery fuel gauge (used in the Pinebook Pro & others)
147 battery fuel gauge (used in the Pinebook Pro & others)
180 tristate "DS2782/DS2786 standalone gas-gauge"
184 gas-gauge.
206 tristate "Sharp SL-6000 (tosa) battery"
210 SL-6000 (tosa) models.
[all …]
H A Drn5t618_power.c1 // SPDX-License-Identifier: GPL-2.0+
86 ret = regmap_bulk_read(info->rn5t618->regmap, in rn5t618_battery_read_doublereg()
131 ret = regmap_read(info->rn5t618->regmap, RN5T618_CHGSTATE, &v); in rn5t618_battery_status()
135 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in rn5t618_battery_status()
138 val->intval = rn5t618_decode_status(v); in rn5t618_battery_status()
140 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in rn5t618_battery_status()
151 ret = regmap_read(info->rn5t618->regmap, RN5T618_CHGSTATE, &v); in rn5t618_battery_present()
157 val->intval = 0; in rn5t618_battery_present()
159 val->intval = 1; in rn5t618_battery_present()
174 val->intval = res * 2 * 2500 / 4095 * 1000; in rn5t618_battery_voltage_now()
[all …]
H A Drt5033_battery.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Fuel gauge driver for Richtek RT5033
12 #include <linux/mfd/rt5033-private.h>
20 regmap_read(battery->regmap, RT5033_FUEL_REG_SOC_H, &msb); in rt5033_battery_get_capacity()
30 regmap_read(battery->regmap, RT5033_FUEL_REG_CONFIG_L, &val); in rt5033_battery_get_present()
57 return -EINVAL; in rt5033_battery_get_watt_prop()
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()
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 …]
H A Dda9150-fg.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * DA9150 Fuel-Gauge Driver
99 da9150_read_qif(fg->da9150, read_addr, size, buf); in da9150_fg_read_attr()
121 da9150_write_qif(fg->da9150, write_addr, size, buf); in da9150_fg_write_attr()
130 mutex_lock(&fg->io_lock); in da9150_fg_read_sync_start()
150 dev_err(fg->dev, "Failed to perform QIF read sync!\n"); in da9150_fg_read_sync_start()
159 mutex_unlock(&fg->io_lock); in da9150_fg_read_sync_end()
181 mutex_lock(&fg->io_lock); in da9150_fg_write_attr_sync()
196 dev_err(fg->dev, "Timeout waiting for existing QIF sync!\n"); in da9150_fg_write_attr_sync()
197 mutex_unlock(&fg->io_lock); in da9150_fg_write_attr_sync()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/
H A Dda9150-fg.txt1 Dialog Semiconductor DA9150 Fuel-Gauge Power Supply bindings
4 - compatible: "dlg,da9150-fuel-gauge" for DA9150 Fuel-Gauge Power Supply
7 - dlg,update-interval: Interval time (milliseconds) between battery level checks.
8 - dlg,warn-soc-level: Battery discharge level (%) where warning event raised.
9 [1 - 100]
10 - dlg,crit-soc-level: Battery discharge level (%) where critical event raised.
12 [1 - 100]
17 fuel-gauge {
18 compatible = "dlg,da9150-fuel-gauge";
20 dlg,update-interval = <10000>;
[all …]
H A Dbq27xxx.yaml1 # SPDX-License-Identifier: GPL-2.0
4 ---
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
8 title: TI BQ27XXX fuel gauge family
11 - Pali Rohár <pali@kernel.org>
12 - Andrew F. Davis <afd@ti.com>
13 - Sebastian Reichel <sre@kernel.org>
16 Support various Texas Instruments fuel gauge devices that share similar
20 - $ref: power-supply.yaml#
25 - ti,bq27200
[all …]
H A Drockchip-charger-manager.txt1 rockchip-charger-manager bindings
5 - compatible : "rockchip-charger-manager"
6 - cm-chargers : name of charger
7 - cm-fuel-gauge : name of battery fuel gauge
8 - cm-charge-pump : name of battery charge pump
11 - cm-poll-mode : polling mode - 0 for disabled, 1 for always, 2 for when
14 - cm-poll-interval : polling interval (in ms)
17 charger-manager {
18 compatible = "rockchip-charger-manager";
19 cm-poll-mode = <2>;
[all …]
H A Dcharger-manager.txt1 charger-manager bindings
5 - compatible : "charger-manager"
6 - <>-supply : for regulator consumer, named according to cm-regulator-name
7 - cm-chargers : name of chargers
8 - cm-fuel-gauge : name of battery fuel gauge
9 - subnode <regulator> :
10 - cm-regulator-name : name of charger regulator
11 - subnode <cable> :
12 - cm-cable-name : name of charger cable - one of USB, USB-HOST,
13 SDP, DCP, CDP, ACA, FAST-CHARGER, SLOW-CHARGER, WPT,
[all …]
H A Dmax17040_battery.txt5 - compatible : "maxim,max17040", "maxim,max17041", "maxim,max17043",
7 "maxim,max17058", "maxim,max17059" or "maxim,max77836-battery"
8 - reg: i2c slave address
11 - maxim,alert-low-soc-level : The alert threshold that sets the state of
16 - maxim,double-soc : Certain devices return double the capacity.
20 - maxim,rcomp : A value to compensate readings for various
25 - interrupts : Interrupt line see Documentation/devicetree/
26 bindings/interrupt-controller/interrupts.txt
27 - wakeup-source : This device has wakeup capabilities. Use this
33 compatible "maxim,max77836-battery".
[all …]
H A Dsc27xx-fg.txt1 Spreadtrum SC27XX PMICs Fuel Gauge Unit Power Supply Bindings
4 - compatible: Should be one of the following:
5 "sprd,sc2720-fgu",
6 "sprd,sc2721-fgu",
7 "sprd,sc2723-fgu",
8 "sprd,sc2730-fgu",
9 "sprd,sc2731-fgu".
10 - reg: The address offset of fuel gauge unit.
11 - battery-detect-gpios: GPIO for battery detection.
12 - io-channels: Specify the IIO ADC channels to get temperature and charge voltage.
[all …]
H A Dbattery.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
14 In smart batteries, these are typically stored in non-volatile memory
15 on a fuel gauge chip. The battery node should be used where there is
16 no appropriate non-volatile memory, or it is unprogrammed/incorrect.
27 Batteries must be referenced by chargers and/or fuel-gauges using a phandle.
28 The phandle's property should be named "monitored-battery".
32 const: simple-battery
[all …]
H A Dcw2015_battery.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Battery driver for CW2015 shuntless fuel gauge by CellWise.
10 - Tobias Schramm <t.schramm@manjaro.org>
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:
30 $ref: /schemas/types.yaml#definitions/uint8-array
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/
H A Dda9150.txt1 Dialog Semiconductor DA9150 Combined Charger/Fuel-Gauge MFD bindings
3 DA9150 consists of a group of sub-devices:
6 ------ -----------
7 da9150-gpadc : General Purpose ADC
8 da9150-charger : Battery Charger
9 da9150-fg : Battery Fuel-Gauge
14 - compatible : Should be "dlg,da9150"
15 - reg: Specifies the I2C slave address
16 - interrupts: IRQ line info for da9150 chip.
17 - interrupt-controller: da9150 has internal IRQs (own IRQ domain).
[all …]
H A Dmax14577.txt1 Maxim MAX14577/77836 Multi-Function Device
3 MAX14577 is a Multi-Function Device with Micro-USB Interface Circuit, Li+
7 MAX77836 additionally contains PMIC (with two LDO regulators) and Fuel Gauge.
8 For the description of Fuel Gauge low SOC alert interrupt see:
13 - compatible : Must be "maxim,max14577" or "maxim,max77836".
14 - reg : I2C slave address for the max14577 chip (0x25 for max14577/max77836)
15 - interrupts : IRQ line for the chip.
19 - charger :
22 - compatible : "maxim,max14577-charger"
23 or "maxim,max77836-charger"
[all …]
/OK3568_Linux_fs/u-boot/drivers/power/mfd/
H A Dfg_max77693.c5 * SPDX-License-Identifier: GPL-2.0+
50 struct power_battery *pb = bat->pbat; in power_update_battery()
54 puts("Can't find max77693 fuel gauge\n"); in power_update_battery()
55 return -ENODEV; in power_update_battery()
58 ret = max77693_get_soc(&pb->bat->state_of_chrg); in power_update_battery()
62 max77693_get_vcell(&pb->bat->voltage_uV); in power_update_battery()
71 struct power_battery *pb = bat->pbat; in power_check_battery()
76 puts("Can't find max77693 fuel gauge\n"); in power_check_battery()
77 return -ENODEV; in power_check_battery()
85 ret = pmic_reg_read(p, MAX77693_VERSION, &pb->bat->version); in power_check_battery()
[all …]
/OK3568_Linux_fs/kernel/Documentation/ABI/testing/
H A Dsysfs-platform-dptf4 Contact: linux-acpi@vger.kernel.org
6 (RO) The charger type - Traditional, Hybrid or NVDC.
11 Contact: linux-acpi@vger.kernel.org
19 Contact: linux-acpi@vger.kernel.org
27 Contact: linux-acpi@vger.kernel.org
33 - 0x00 = DC
34 - 0x01 = AC
35 - 0x02 = USB
36 - 0x03 = Wireless Charger
43 Contact: linux-acpi@vger.kernel.org
[all …]
/OK3568_Linux_fs/kernel/include/linux/mfd/
H A Dmax8997.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * max8997.h - Driver for the Maxim 8997/8966
5 * Copyright (C) 2009-2010 Samsung Electrnoics
10 * MAX8997 has PMIC, MUIC, HAPTIC, RTC, FLASH, and Fuel Gauge devices.
11 * Except Fuel Gauge, every device shares the same I2C bus and included in
12 * this mfd driver. Although the fuel gauge is included in the chip, it is
123 * [0 - 3]: valid pattern number
126 * [0 - 15]: available cycles
128 * [0 - 255]: available period
157 * [0 - 31]: MAX8997_FLASH_MODE and MAX8997_FLASH_PIN_CONTROL_MODE
[all …]
/OK3568_Linux_fs/kernel/drivers/platform/x86/
H A Dintel_cht_int33fe_microb.c1 // SPDX-License-Identifier: GPL-2.0
4 * USB Micro-B connector (e.g. without of FUSB302 USB Type-C controller)
9 * (Lenovo YogaBook YB1-X91L/F tablet), have this weird INT33FE ACPI device
13 * 2. TI BQ27542 Fuel Gauge Controller
16 * instantiate i2c-client for battery fuel gauge, so that standard i2c driver
31 static const char * const bq27xxx_suppliers[] = { "bq25890-charger" };
34 PROPERTY_ENTRY_STRING_ARRAY("supplied-from", bq27xxx_suppliers),
40 struct device *dev = data->dev; in cht_int33fe_microb_probe()
47 data->battery_fg = i2c_acpi_new_device(dev, 1, &board_info); in cht_int33fe_microb_probe()
49 return PTR_ERR_OR_ZERO(data->battery_fg); in cht_int33fe_microb_probe()
[all …]
/OK3568_Linux_fs/kernel/include/linux/mfd/abx500/
H A Dab8500-bm.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright ST-Ericsson 2012.
77 * Gas Gauge register offsets
228 /* Fuel Gauge constants */
277 * struct res_to_temp - defines one point in a temp to res curve. To
289 * struct batres_vs_temp - defines one point in a temp vs battery internal
303 * struct ab8500_fg_parameters - Fuel gauge algorithm parameters, in seconds
353 * struct ab8500_charger_maximization - struct used by the board config.
367 * struct ab8500_bm_capacity_levels - ab8500 capacity level data
383 * struct ab8500_bm_charger_parameters - Charger specific parameters
[all …]
/OK3568_Linux_fs/u-boot/drivers/power/
H A Dcharge_animation.c4 * SPDX-License-Identifier: GPL-2.0+
29 #include <irq-generic.h>
37 #define IMAGE_RECALC_IDX -1
38 #define IMAGE_SOC_100_IDX(n) ((n) - 2)
39 #define IMAGE_LOWPOWER_IDX(n) ((n) - 1)
73 * 2. You must set the failed image as last one and soc = -1 !!!
82 { .name = "battery_fail.bmp", .soc = -1, .period = 1000 },
96 list1 = dev_read_prop(dev, "regulator-on-in-mem", &size1); in regulators_parse_assigned_mem_state()
97 list2 = dev_read_prop(dev, "regulator-off-in-mem", &size2); in regulators_parse_assigned_mem_state()
101 return -EINVAL; in regulators_parse_assigned_mem_state()
[all …]
/OK3568_Linux_fs/kernel/include/linux/power/
H A Dcharger-manager.h1 /* SPDX-License-Identifier: GPL-2.0-only */
8 * monitor charging even in the context of suspend-to-RAM with
62 /* The charger-manager use Extcon framework */
72 * Set min/max current of regulator to protect over-current issue
86 * Set if the charger-manager cannot control charger,
126 * @psy_name: the name of power-supply-class for charger manager
144 * @psy_charger_stat: the names of power-supply for chargers
147 * @psy_fuel_gauge: the name of power-supply for fuel gauge
160 * after full-batt. If discharging duration exceed 'discharging
203 * @fuel_gauge: power_supply for fuel gauge
[all …]
/OK3568_Linux_fs/kernel/Documentation/power/
H A Dcharger-manager.rst7 Charger Manager provides in-kernel battery charger management that
8 requires temperature monitoring during suspend-to-RAM state
12 Charger Manager is a platform_driver with power-supply-class entries.
13 An instance of Charger Manager (a platform-device created with Charger-Manager)
26 own power-supply-class and each power-supply-class can provide
28 aggregates charger-related information from multiple sources and
29 shows combined information as a single power-supply-class.
31 * Support for in suspend-to-RAM polling (with suspend_again callback)
32 While the battery is being charged and the system is in suspend-to-RAM,
50 * Support for premature full-battery event handling
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/adc/
H A Ddlg,da9150-gpadc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/dlg,da9150-gpadc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
14 DA9150 Charger & Fuel-Gauge IC.
18 const: dlg,da9150-gpadc
20 "#io-channel-cells":
24 - compatible
25 - "#io-channel-cells"
[all …]

1234