Home
last modified time | relevance | path

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

/linux/Documentation/devicetree/bindings/power/supply/
H A 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 …]
H A 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 …]
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
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/drivers/rtc/
H A 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 …]
H A 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 …]
H A 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 …]
H A Drtc-ds1307.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rtc-ds1307.c - RTC driver for some mostly-compatible I2C chips.
23 #include <linux/hwmon-sysfs.h>
24 #include <linux/clk-provider.h>
29 * We can't determine type by probing, but if we expect pre-Linux code
31 * setting the date and time), Linux can ignore the non-clock features.
56 #define DS1307_REG_SECS 0x00 /* 00-59 */
60 #define DS1307_REG_MIN 0x01 /* 00-59 */
62 #define DS1307_REG_HOUR 0x02 /* 00-23, or 1-12{am,pm} */
67 #define DS1307_REG_WDAY 0x03 /* 01-07 */
[all …]
H A Drtc-ds1374.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * RTC client/driver for the Maxim/Dallas DS1374 Real-Time Clock over I2C
9 * Copyright (C) 2006-2007 Freescale Semiconductor
14 * recommended in .../Documentation/i2c/writing-clients.rst section
52 #define DS1374_REG_TCR 0x09 /* Trickle Charge */
93 return -EINVAL; in ds1374_read_rtc()
100 return -EIO; in ds1374_read_rtc()
102 for (i = nbytes - 1, *time = 0; i >= 0; i--) in ds1374_read_rtc()
116 return -EINVAL; in ds1374_write_rtc()
137 dev_warn(&client->dev, in ds1374_check_rtc_status()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
44 This clock should be battery-backed, so that it reads the correct
45 time when the system boots from a power-off state. Otherwise, your
141 once-per-second update interrupts, used for synchronization.
159 will be called rtc-test.
173 will be called rtc-88pm860x.
183 will be called rtc-88pm80x.
193 will be called rtc-88pm886.
197 tristate "Abracon AB-RTCMC-32.768kHz-B5ZE-S3"
200 AB-RTCMC-32.768kHz-B5ZE-S3 I2C RTC chip.
[all …]
/linux/include/linux/mfd/wm8350/
H A 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/Documentation/devicetree/bindings/rtc/
H A 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/include/linux/mfd/wm831x/
H A 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/include/linux/spi/
H A 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/Documentation/ABI/testing/
H A 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
/linux/drivers/power/supply/
H A 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 …]
H A 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 …]
H A Dcpcap-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * Copyright (C) 2009-2010 Motorola, Inc.
31 #include <linux/mfd/motorola-cpcap.h>
38 * similar. Also see the Motorola Linux kernel cpcap-regbits.h. CPCAP_REG_CHRGR_1
45 #define CPCAP_REG_CRM_ICHRG_TR1 BIT(11) /* Trickle charge current */
49 #define CPCAP_REG_CRM_VCHRG3 BIT(7) /* Charge voltage bits */
53 #define CPCAP_REG_CRM_ICHRG3 BIT(3) /* Charge current bits */
58 /* CPCAP_REG_CRM trickle charge voltages */
66 * CPCAP_REG_CRM charge voltages based on the ADC channel 1 values.
89 * CPCAP_REG_CRM charge currents. These seem to match MC13783UG.pdf
[all …]
H A 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 …]
H A 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 …]
H A Dwm831x_power.c1 // SPDX-License-Identifier: GPL-2.0-only
46 val->intval = 1; in wm831x_power_check_online()
48 val->intval = 0; in wm831x_power_check_online()
61 val->intval = ret; in wm831x_power_read_voltage()
73 struct wm831x_power *wm831x_power = dev_get_drvdata(psy->dev.parent); in wm831x_wall_get_prop()
74 struct wm831x *wm831x = wm831x_power->wm831x; in wm831x_wall_get_prop()
85 ret = -EINVAL; in wm831x_wall_get_prop()
104 struct wm831x_power *wm831x_power = dev_get_drvdata(psy->dev.parent); in wm831x_usb_get_prop()
105 struct wm831x *wm831x = wm831x_power->wm831x; in wm831x_usb_get_prop()
116 ret = -EINVAL; in wm831x_usb_get_prop()
[all …]
H A Dpower_supply_core.c1 // SPDX-License-Identifier: GPL-2.0-only
24 #include <linux/fixp-arith.h>
26 #include "samsung-sdi-battery.h"
47 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by()
51 if (supply->supplied_from) { in __power_supply_is_supplied_by()
52 if (!supplier->desc->name) in __power_supply_is_supplied_by()
54 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by()
55 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) in __power_supply_is_supplied_by()
58 if (!supply->desc->name) in __power_supply_is_supplied_by()
60 for (i = 0; i < supplier->num_supplicants; i++) in __power_supply_is_supplied_by()
[all …]
/linux/Documentation/power/
H A 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/Documentation/process/
H A Dhandling-regressions.rst1 .. SPDX-License-Identifier: (GPL-2.0+ OR CC-BY-4.0)
7 *We don't cause regressions* -- this document describes what this "first rule of
9 Documentation/admin-guide/reporting-regressions.rst, which covers the topic from a
21 loop by immediately sending at least a brief "Reply-all" with the list
30 introduced: v5.13..v5.14-rc1``. If not, send a reply (with the regressions
39 #regzbot introduced: v5.13..v5.14-rc1
45 mandated by Documentation/process/submitting-patches.rst and
61 -----------------------------------
72 it into the loop by sending at least a brief "Reply-all" with the list CCed;
79 Documentation/admin-guide/reporting-issues.rst.
[all …]