Home
last modified time | relevance | path

Searched +full:weak +full:- +full:battery +full:- +full:voltage (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/
Dbq2415x.yaml1 # SPDX-License-Identifier: GPL-2.0
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: TI bq2415x Li-Ion Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
19 - ti,bq24150
20 - ti,bq24150a
21 - ti,bq24151
22 - ti,bq24151a
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dbq2415x.txt1 Binding for TI bq2415x Li-Ion Charger
4 - compatible: Should contain one of the following:
17 - reg: integer, i2c address of the device.
18 - ti,current-limit: integer, initial maximum current charger can pull
20 - ti,weak-battery-voltage: integer, weak battery voltage threshold in mV.
21 The chip will use slow precharge if battery voltage
23 - ti,battery-regulation-voltage: integer, maximum charging voltage in mV.
24 - ti,charge-current: integer, maximum charging current in mA.
25 - ti,termination-current: integer, charge will be terminated when current in
26 constant-voltage phase drops below this value (in mA).
[all …]
/kernel/linux/linux-5.10/drivers/power/supply/
Dbq2415x_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2011-2013 Pali Rohár <pali@kernel.org>
68 /* voltage register */
172 int autotimer; /* 1 - if driver automatically reset timer, 0 - not */
173 int automode; /* 1 - enabled, 0 - disabled; -1 - not supported */
189 struct i2c_client *client = to_i2c_client(bq->dev); in bq2415x_i2c_read()
194 if (!client->adapter) in bq2415x_i2c_read()
195 return -ENODEV; in bq2415x_i2c_read()
197 msg[0].addr = client->addr; in bq2415x_i2c_read()
201 msg[1].addr = client->addr; in bq2415x_i2c_read()
[all …]
Dadp5061.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ADP5061 I2C Programmable Linear Battery Charger
154 return i-1; in adp5061_get_array_index()
164 ret = regmap_bulk_read(st->regmap, ADP5061_CHG_STATUS_1, in adp5061_get_status()
181 ret = regmap_read(st->regmap, ADP5061_VINX_SET, &regval); in adp5061_get_input_current_limit()
186 val->intval = adp5061_in_current_lim[mode] * 1000; in adp5061_get_input_current_limit()
203 return regmap_update_bits(st->regmap, ADP5061_VINX_SET, in adp5061_set_input_current_limit()
220 return regmap_update_bits(st->regmap, ADP5061_VOLTAGE_TH, in adp5061_set_min_voltage()
231 ret = regmap_read(st->regmap, ADP5061_VOLTAGE_TH, &regval); in adp5061_get_min_voltage()
236 val->intval = adp5061_vmin[regval] * 1000; in adp5061_get_min_voltage()
[all …]
/kernel/linux/linux-6.6/drivers/power/supply/
Dbq2415x_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2011-2013 Pali Rohár <pali@kernel.org>
68 /* voltage register */
172 int autotimer; /* 1 - if driver automatically reset timer, 0 - not */
173 int automode; /* 1 - enabled, 0 - disabled; -1 - not supported */
189 struct i2c_client *client = to_i2c_client(bq->dev); in bq2415x_i2c_read()
194 if (!client->adapter) in bq2415x_i2c_read()
195 return -ENODEV; in bq2415x_i2c_read()
197 msg[0].addr = client->addr; in bq2415x_i2c_read()
201 msg[1].addr = client->addr; in bq2415x_i2c_read()
[all …]
Dadp5061.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ADP5061 I2C Programmable Linear Battery Charger
154 return i-1; in adp5061_get_array_index()
164 ret = regmap_bulk_read(st->regmap, ADP5061_CHG_STATUS_1, in adp5061_get_status()
181 ret = regmap_read(st->regmap, ADP5061_VINX_SET, &regval); in adp5061_get_input_current_limit()
186 val->intval = adp5061_in_current_lim[mode] * 1000; in adp5061_get_input_current_limit()
203 return regmap_update_bits(st->regmap, ADP5061_VINX_SET, in adp5061_set_input_current_limit()
220 return regmap_update_bits(st->regmap, ADP5061_VOLTAGE_TH, in adp5061_set_min_voltage()
231 ret = regmap_read(st->regmap, ADP5061_VOLTAGE_TH, &regval); in adp5061_get_min_voltage()
236 val->intval = adp5061_vmin[regval] * 1000; in adp5061_get_min_voltage()
[all …]
/kernel/linux/linux-6.6/include/linux/platform_data/
Dcros_ec_commands.h1 /* SPDX-License-Identifier: GPL-2.0-only */
7 * NOTE: This file is auto-generated from ChromeOS EC Open Source code from
52 * The actual block is 0x800-0x8ff, but some BIOSes think it's 0x880-0x8ff
77 #define EC_MEMMAP_TEMP_SENSOR 0x00 /* Temp sensors 0x00 - 0x0f */
78 #define EC_MEMMAP_FAN 0x10 /* Fan speeds 0x10 - 0x17 */
79 #define EC_MEMMAP_TEMP_SENSOR_B 0x18 /* More temp sensors 0x18 - 0x1f */
81 #define EC_MEMMAP_ID_VERSION 0x22 /* Version of data in 0x20 - 0x2f */
82 #define EC_MEMMAP_THERMAL_VERSION 0x23 /* Version of data in 0x00 - 0x1f */
83 #define EC_MEMMAP_BATTERY_VERSION 0x24 /* Version of data in 0x40 - 0x7f */
84 #define EC_MEMMAP_SWITCHES_VERSION 0x25 /* Version of data in 0x30 - 0x33 */
[all …]
/kernel/linux/linux-5.10/include/linux/platform_data/
Dcros_ec_commands.h1 /* SPDX-License-Identifier: GPL-2.0-only */
7 * NOTE: This file is auto-generated from ChromeOS EC Open Source code from
52 * The actual block is 0x800-0x8ff, but some BIOSes think it's 0x880-0x8ff
73 #define EC_MEMMAP_TEMP_SENSOR 0x00 /* Temp sensors 0x00 - 0x0f */
74 #define EC_MEMMAP_FAN 0x10 /* Fan speeds 0x10 - 0x17 */
75 #define EC_MEMMAP_TEMP_SENSOR_B 0x18 /* More temp sensors 0x18 - 0x1f */
77 #define EC_MEMMAP_ID_VERSION 0x22 /* Version of data in 0x20 - 0x2f */
78 #define EC_MEMMAP_THERMAL_VERSION 0x23 /* Version of data in 0x00 - 0x1f */
79 #define EC_MEMMAP_BATTERY_VERSION 0x24 /* Version of data in 0x40 - 0x7f */
80 #define EC_MEMMAP_SWITCHES_VERSION 0x25 /* Version of data in 0x30 - 0x33 */
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Domap3-n900.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi>
7 /dts-v1/;
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
14 * Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall
16 * blocks then kernel receive "Unhandled fault: external abort on non-linefetch"
17 * and crash. Until somebody fix omap-aes.c and omap_hwmod_3xxx_data.c code (no
33 compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3";
46 cpu0-supply = <&vcc>;
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/ti/omap/
Domap3-n900.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi>
7 /dts-v1/;
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/media/video-interfaces.h>
15 * Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall
17 * blocks then kernel receive "Unhandled fault: external abort on non-linefetch"
18 * and crash. Until somebody fix omap-aes.c and omap_hwmod_3xxx_data.c code (no
34 compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3";
[all …]