Home
last modified time | relevance | path

Searched +full:trickle +full:- +full:charge (Results 1 – 25 of 36) sorted by relevance

12

/linux-6.12.1/Documentation/devicetree/bindings/power/supply/
Drohm,bd99954.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Matti Vaittinen <mazziesaccount@gmail.com>
11 - Markus Laine <markus.laine@fi.rohmeurope.com>
12 - Mikko Mutanen <mikko.mutanen@fi.rohmeurope.com>
15 The ROHM BD99954 is a Battery Management LSI for 1-4 cell Lithium-Ion
16 secondary battery intended to be used in space-constraint equipment such
18 provides a Dual-source Battery Charger, two port BC1.2 detection and a
21 $ref: power-supply.yaml#
[all …]
Dqcom,pm8941-charger.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/qcom,pm8941-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm Switch-Mode Battery Charger and Boost
10 - Sebastian Reichel <sre@kernel.org>
15 - qcom,pm8226-charger
16 - qcom,pm8941-charger
23 - description: charge done
24 - description: charge fast mode
[all …]
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
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
34 device-chemistry:
[all …]
/linux-6.12.1/drivers/rtc/
Drtc-bq32k.c1 // SPDX-License-Identifier: GPL-2.0-only
33 #define BQ32K_TCH2 0x08 /* Trickle charge enable */
34 #define BQ32K_CFG2 0x09 /* Trickle charger control */
35 #define BQ32K_TCFE BIT(6) /* Trickle charge FET bypass */
58 .addr = client->addr, in bq32k_read()
63 .addr = client->addr, in bq32k_read()
70 if (i2c_transfer(client->adapter, msgs, 2) == 2) in bq32k_read()
73 return -EIO; in bq32k_read()
87 return -EIO; in bq32k_write()
104 return -EINVAL; in bq32k_rtc_read_time()
[all …]
Drtc-ds1302.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2003 - 2007 Paul Mundt
25 #define RTC_ADDR_TCR 0x08 /* Address of trickle charge register */
58 *bp++ = bin2bcd(time->tm_sec); in ds1302_rtc_set_time()
59 *bp++ = bin2bcd(time->tm_min); in ds1302_rtc_set_time()
60 *bp++ = bin2bcd(time->tm_hour); in ds1302_rtc_set_time()
61 *bp++ = bin2bcd(time->tm_mday); in ds1302_rtc_set_time()
62 *bp++ = bin2bcd(time->tm_mon + 1); in ds1302_rtc_set_time()
63 *bp++ = time->tm_wday + 1; in ds1302_rtc_set_time()
64 *bp++ = bin2bcd(time->tm_year % 100); in ds1302_rtc_set_time()
[all …]
Drtc-ds1305.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rtc-ds1305.c -- driver for DS1305 and DS1306 SPI RTC chips
21 * otherwise you're reading it. All non-bitmask values are BCD.
27 * - Need fancy "hours" encoding in 12hour mode
28 * - Don't rely on the "day-of-week" field (or tm_wday)
29 * - Are a 21st-century clock (2000 <= year < 2100)
50 * NOTE ALSO that while we could generate once-a-second IRQs (UIE), we
76 /* trickle bits are defined in <linux/spi/ds1305.h> */
98 /*----------------------------------------------------------------------*/
101 * Utilities ... tolerate 12-hour AM/PM notation in case of non-Linux
[all …]
/linux-6.12.1/include/linux/mfd/wm8350/
Dsupply.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * supply.h -- Power Supply Driver for Wolfson WM8350 PMIC
22 * R168 (0xA8) - Battery Charger Control 1
39 * R169 (0xA9) - Battery Charger Control 2
54 * R170 (0xAA) - Battery Charger Control 3
84 #define WM8350_CHG_EOC_mA(x) (((x - 10) & 0x7) << 10)
108 /* charger state machine policy - set in machine driver */
109 int eoc_mA; /* end of charge current (mA) */
110 int charge_mV; /* charge voltage */
111 int fast_limit_mA; /* fast charge current limit */
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/rtc/
Dabracon,abx80x.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - linux-rtc@vger.kernel.org
17 must perform auto-detection from ID register.
19 - abracon,abx80x
20 - abracon,ab0801
21 - abracon,ab0803
22 - abracon,ab0804
23 - abracon,ab0805
[all …]
/linux-6.12.1/drivers/power/supply/
Dbd99954-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
20 * a) Trickle-charge with constant current (8).
21 * b) pre-charge with constant current (6)
22 * c) fast-charge, first with constant current (5) phase. After
30 *(4)` `.` ` ` ` ` ` ` ` ` ` ` ` ` ` ----------------------------.
32 * . o----+/:/ ` ` ` ` ` ` ` ` ` ` ` ` `.` ` (5)
34 * . + /- -- .
35 * . +`/- + .
36 * . o/- -: .
38 * . .--+ `/ .
[all …]
Dwilco-charger.c1 // SPDX-License-Identifier: GPL-2.0
7 * See Documentation/ABI/testing/sysfs-class-power and
8 * Documentation/ABI/testing/sysfs-class-power-wilco for userspace interface
14 #include <linux/platform_data/wilco-ec.h>
17 #define DRV_NAME "wilco-charger"
26 CHARGE_MODE_EXP = 2, /* Express Charge, used for Fast */
27 CHARGE_MODE_AC = 3, /* Mostly AC use, used for Trickle */
38 /* Convert from POWER_SUPPLY_PROP_CHARGE_TYPE value to the EC's charge mode */
55 return -EINVAL; in psp_val_to_charge_mode()
59 /* Convert from EC's charge mode to POWER_SUPPLY_PROP_CHARGE_TYPE value */
[all …]
Dadp5061.c1 // SPDX-License-Identifier: GPL-2.0-only
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()
247 ret = regmap_read(st->regmap, ADP5061_TERM_SET, &regval); in adp5061_get_chg_volt_lim()
[all …]
Dcpcap-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * Copyright (C) 2009-2010 Motorola, Inc.
30 #include <linux/mfd/motorola-cpcap.h>
37 * similar. Also see the Motorola Linux kernel cpcap-regbits.h. CPCAP_REG_CHRGR_1
44 #define CPCAP_REG_CRM_ICHRG_TR1 BIT(11) /* Trickle charge current */
48 #define CPCAP_REG_CRM_VCHRG3 BIT(7) /* Charge voltage bits */
52 #define CPCAP_REG_CRM_ICHRG3 BIT(3) /* Charge current bits */
57 /* CPCAP_REG_CRM trickle charge voltages */
65 * CPCAP_REG_CRM charge voltages based on the ADC channel 1 values.
88 * CPCAP_REG_CRM charge currents. These seem to match MC13783UG.pdf
[all …]
Dltc4162-l-charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for Analog Devices (Linear Technology) LTC4162-L charger IC.
54 precharge = 128, /* trickle on low bat voltage */
55 cc_cv_charge = 64, /* normal charge */
82 u32 rsnsb; /* Series resistor that sets charge current, microOhm */
93 if (info->cell_count) in ltc4162l_get_cell_count()
94 return info->cell_count; in ltc4162l_get_cell_count()
96 ret = regmap_read(info->regmap, LTC4162L_CHEM_CELLS_REG, &val); in ltc4162l_get_cell_count()
106 info->cell_count = val; in ltc4162l_get_cell_count()
134 ret = regmap_read(info->regmap, LTC4162L_CHARGER_STATE, &regval); in ltc4162l_get_status()
[all …]
Dwm8350_power.c1 // SPDX-License-Identifier: GPL-2.0-only
44 if (!wm8350->power.rev_g_coeff) in wm8350_charge_time_min()
45 return (((min - 30) / 15) & 0xf) << 8; in wm8350_charge_time_min()
47 return (((min - 30) / 30) & 0xf) << 8; in wm8350_charge_time_min()
92 dev_warn(wm8350->dev, in wm8350_charger_config()
94 return -EINVAL; in wm8350_charger_config()
97 /* make sure USB fast charge current is not > 500mA */ in wm8350_charger_config()
98 if (policy->fast_limit_USB_mA > 500) { in wm8350_charger_config()
99 dev_err(wm8350->dev, "USB fast charge > 500mA\n"); in wm8350_charger_config()
100 return -EINVAL; in wm8350_charger_config()
[all …]
Dmax14577_charger.c1 // SPDX-License-Identifier: GPL-2.0+
3 // max14577_charger.c - Battery charger driver for the Maxim 14577/77836
11 #include <linux/mfd/max14577-private.h>
49 struct regmap *rmap = chg->max14577->regmap; in max14577_get_charger_state()
55 * - CHGCTRL2/MBCHOSTEN == 1 in max14577_get_charger_state()
56 * - STATUS2/CGMBC == 1 in max14577_get_charger_state()
59 * - handle FULL after Top-off timer (EOC register may be off in max14577_get_charger_state()
61 * - handle properly dead-battery charging (respect timer) in max14577_get_charger_state()
62 * - handle timers (fast-charge and prequal) /MBCCHGERR/ in max14577_get_charger_state()
78 /* Charger or USB-cable is connected */ in max14577_get_charger_state()
[all …]
Dmax77693_charger.c1 // SPDX-License-Identifier: GPL-2.0+
3 // max77693_charger.c - Battery charger driver for the Maxim 77693
13 #include <linux/mfd/max77693-common.h>
14 #include <linux/mfd/max77693-private.h>
16 #define MAX77693_CHARGER_NAME "max77693-charger"
88 * Top-off: trickle or fast? In top-off the current varies between in max77693_get_charge_type()
118 * - POWER_SUPPLY_HEALTH_DEAD
119 * - POWER_SUPPLY_HEALTH_GOOD
120 * - POWER_SUPPLY_HEALTH_OVERVOLTAGE
121 * - POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE
[all …]
Dqcom_smbb.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * This driver is for the multi-block Switch-Mode Battery Charger and Boost
6 * integrated, single-cell lithium-ion battery charger.
8 * Sub-components:
9 * - Charger core
10 * - Buck
11 * - DC charge-path
12 * - USB charge-path
13 * - Battery interface
14 * - Boost (not implemented)
[all …]
/linux-6.12.1/include/linux/spi/
Dds1305.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 * One-time configuration for ds1305 and ds1306 RTC chips.
14 /* Trickle charge configuration: it's OK to leave out the MAGIC
23 u8 trickle; member
/linux-6.12.1/include/linux/mfd/wm831x/
Dpdata.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * include/linux/mfd/wm831x/pdata.h -- Platform data for WM831x
32 int trickle_ilim; /** Trickle charge current limit, in mA */
34 int eoc_iterm; /** End of trickle charge current, in mA */
35 int fast_ilim; /** Fast charge current limit, in mA */
36 int timeout; /** Charge cycle timeout, in minutes */
40 * Configuration for the WM831x DC-DC BuckWise convertors. This
/linux-6.12.1/include/linux/
Dpower_supply.h1 /* SPDX-License-Identifier: GPL-2.0-only */
226 /* Run-time specific power supply configuration */
354 * struct power_supply_maintenance_charge_table - setting for maintenace charging
356 * the charge of the battery full as current is consumed after full charging.
366 * maintenance charge current and voltage pair in respective array and wait
373 * Ordinary CC/CV charging will stop charging when the charge current goes
379 * the power used in standby mode. This will over time give a charge graph
387 * +-------------------------------------------------------------------> t
389 * Practically this means that the Li-ions are wandering back and forth in the
392 * reaching charge_term_current_ua to hold up the charge in the battery while
[all …]
/linux-6.12.1/Documentation/ABI/testing/
Dsysfs-class-power-wilco1 What: /sys/class/power_supply/wilco-charger/charge_type
14 Trickle:
23 Customized charge rate for last longer battery life.
24 On Wilco device this mode is pre-configured in the factory
28 What: /sys/class/power_supply/wilco-charger/charge_control_start_threshold
35 What: /sys/class/power_supply/wilco-charger/charge_control_end_threshold
Dsysfs-class-power5 Contact: linux-pm@vger.kernel.org
14 Contact: linux-pm@vger.kernel.org
23 Contact: linux-pm@vger.kernel.org
32 Contact: linux-pm@vger.kernel.org
43 Contact: linux-pm@vger.kernel.org
66 Contact: linux-pm@vger.kernel.org
81 Contact: linux-pm@vger.kernel.org
94 read-only reporting, unless the 'online' state of the supply
106 Contact: linux-pm@vger.kernel.org
124 Contact: linux-pm@vger.kernel.org
[all …]
/linux-6.12.1/Documentation/power/
Dpower_supply_class.rst8 properties to user-space.
60 +--------------------------------------------------------------------------+
61 | **Charge/Energy/Capacity - how to not confuse** |
62 +--------------------------------------------------------------------------+
63 | **Because both "charge" (µAh) and "energy" (µWh) represents "capacity" |
66 | - `CHARGE_*` |
68 | - `ENERGY_*` |
70 | - `CAPACITY` |
72 +--------------------------------------------------------------------------+
88 batteries can typically charge at different rates.
[all …]
/linux-6.12.1/arch/arm/boot/dts/nxp/imx/
Dimx53-tx53.dtsi2 * Copyright 2012-2017 <LW@KARO-electronics.de>
3 * based on imx53-qsb.dts
7 * This file is dual-licensed: you can use it either under the terms
23 * b) Permission is hereby granted, free of charge, to any person
46 #include <dt-bindings/gpio/gpio.h>
49 model = "Ka-Ro electronics TX53 module";
62 reg-can-xcvr = &reg_can_xcvr;
69 clock-frequency = <0>;
73 mclk: clock-mclk {
74 compatible = "fixed-clock";
[all …]
Dimx6qdl-tx6.dtsi2 * Copyright 2014-2017 Lothar Waßmann <LW@KARO-electronics.de>
4 * This file is dual-licensed: you can use it either under the terms
20 * b) Permission is hereby granted, free of charge, to any person
42 #include <dt-bindings/gpio/gpio.h>
43 #include <dt-bindings/input/input.h>
44 #include <dt-bindings/interrupt-controller/irq.h>
45 #include <dt-bindings/pwm/pwm.h>
46 #include <dt-bindings/sound/fsl-imx-audmux.h>
53 lcdif-23bit-pins-a = &pinctrl_disp0_1;
54 lcdif-24bit-pins-a = &pinctrl_disp0_2;
[all …]

12