Home
last modified time | relevance | path

Searched +full:use +full:- +full:ilim +full:- +full:pin (Results 1 – 4 of 4) sorted by relevance

/linux/Documentation/devicetree/bindings/power/supply/
H A Dbq25890.yaml1 # SPDX-License-Identifier: GPL-2.0
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
19 - enum:
20 - ti,bq25890
21 - items:
22 - enum:
[all …]
/linux/drivers/i2c/busses/
H A Di2c-cht-wc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Copyright (C) 2011 - 2014 Intel Corporation. All rights reserved.
62 mutex_lock(&adap->adap_lock); in cht_wc_i2c_adap_thread_handler()
65 ret = regmap_read(adap->regmap, CHT_WC_EXTCHGRIRQ, &reg); in cht_wc_i2c_adap_thread_handler()
67 dev_err(&adap->adapter.dev, "Error reading extchgrirq reg\n"); in cht_wc_i2c_adap_thread_handler()
68 mutex_unlock(&adap->adap_lock); in cht_wc_i2c_adap_thread_handler()
72 reg &= ~adap->irq_mask; in cht_wc_i2c_adap_thread_handler()
75 ret = regmap_read(adap->regmap, CHT_WC_I2C_RDDATA, &adap->read_data); in cht_wc_i2c_adap_thread_handler()
77 adap->io_error = true; in cht_wc_i2c_adap_thread_handler()
81 * handling the previous ones our irq will re-trigger when we're done. in cht_wc_i2c_adap_thread_handler()
[all …]
/linux/drivers/power/supply/
H A Dbq24257_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
211 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq24257_field_read()
221 return regmap_field_write(bq->rmap_fields[field_id], val); in bq24257_field_write()
232 return idx - 1; in bq24257_find_idx()
266 * The "External ILIM" and "Production & Test" modes are not exposed in bq24257_get_input_current_limit()
273 return -ENODATA; in bq24257_get_input_current_limit()
275 val->intval = bq24257_iilimit_map[ret]; in bq24257_get_input_current_limit()
285 * while the charger auto-detection mechanism is active. In this in bq24257_set_input_current_limit()
286 * case we want to abort and go straight to the user-specified value. in bq24257_set_input_current_limit()
288 if (bq->iilimit_autoset_enable) in bq24257_set_input_current_limit()
[all …]
H A Dbq25890_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
90 u8 ilim_en; /* enable ILIM pin */
113 char name[28]; /* "bq25890-charger-%d" */
272 * Most of the val -> idx conversions can be computed, given the minimum,
273 * maximum and the step between values. For the rest of conversions, we use
322 0, -10, -20, -30, -40, -60, -70, -80,
323 -90, -10, -120, -140, -150, -170, -190, -210,
367 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq25890_field_read()
377 return regmap_field_write(bq->rmap_fields[field_id], val); in bq25890_field_write()
394 rtbl_size = (rtbl->max - rtbl->min) / rtbl->step + 1; in bq25890_find_idx()
[all …]