Home
last modified time | relevance | path

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

/openbmc/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 …]
/openbmc/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 …]
/openbmc/linux/drivers/platform/x86/x86-android-tablets/
H A Dlenovo.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * Copyright (C) 2021-2023 Hans de Goede <hdegoede@redhat.com>
24 #include "shared-psy-info.h"
25 #include "x86-android-tablets.h"
28 * Various Lenovo models use a TI LP8557 LED backlight controller with its PWM
30 * The Android kernels have a hack in the i915 driver to write a non-standard
31 * panel specific DSI register to set the duty-cycle of the LCD's PWM output.
34 * LP8557 to directly set the level and use the lp855x_bl driver for control.
44 PROPERTY_ENTRY_U32("hid-descr-addr", 0x0001),
45 PROPERTY_ENTRY_U32("post-reset-deassert-delay-ms", 150),
[all …]
/openbmc/linux/drivers/power/supply/
H A Dbq24257_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
216 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq24257_field_read()
226 return regmap_field_write(bq->rmap_fields[field_id], val); in bq24257_field_write()
237 return idx - 1; in bq24257_find_idx()
271 * The "External ILIM" and "Production & Test" modes are not exposed in bq24257_get_input_current_limit()
278 return -ENODATA; in bq24257_get_input_current_limit()
280 val->intval = bq24257_iilimit_map[ret]; in bq24257_get_input_current_limit()
290 * while the charger auto-detection mechanism is active. In this in bq24257_set_input_current_limit()
291 * case we want to abort and go straight to the user-specified value. in bq24257_set_input_current_limit()
293 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 …]