Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dbq25890.txt1 Binding for TI bq25890 Li-Ion Charger
7 - compatible: Should contain one of the following:
12 - reg: integer, i2c address of the device.
13 - interrupts: interrupt line;
14 - ti,battery-regulation-voltage: integer, maximum charging voltage (in uV);
15 - ti,charge-current: integer, maximum charging current (in uA);
16 - ti,termination-current: integer, charge will be terminated when current in
17 constant-voltage phase drops below this value (in uA);
18 - ti,precharge-current: integer, maximum charge current during precharge
20 - ti,minimum-sys-voltage: integer, when battery is charging and it is below
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/
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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/dac/
Dad5758.txt4 - compatible: Must be "adi,ad5758"
5 - reg: SPI chip select number for the device
6 - spi-max-frequency: Max SPI frequency to use (< 50000000)
7 - spi-cpha: is the only mode that is supported
11 - adi,dc-dc-mode: Mode of operation of the dc-to-dc converter
19 In this mode, the VDPC+ voltage is user-programmable to
24 current or voltage output at the VIOUT pin. Only one mode
36 - adi,range-microvolt: Voltage output range
40 * <(-5000000) 5000000>: ±5 V voltage range
41 * <(-10000000) 10000000>: ±10 V voltage range
[all …]
/kernel/linux/linux-6.6/drivers/i2c/busses/
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 …]
/kernel/linux/linux-6.6/drivers/platform/x86/x86-android-tablets/
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 …]
/kernel/linux/linux-5.10/drivers/power/supply/
Dbq25890_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
84 u8 ilim_en; /* enable ILIM pin */
251 * Most of the val -> idx conversions can be computed, given the minimum,
252 * maximum and the step between values. For the rest of conversions, we use
320 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq25890_field_read()
330 return regmap_field_write(bq->rmap_fields[field_id], val); in bq25890_field_write()
347 rtbl_size = (rtbl->max - rtbl->min) / rtbl->step + 1; in bq25890_find_idx()
350 idx < rtbl_size && (idx * rtbl->step + rtbl->min <= value); in bq25890_find_idx()
355 return idx - 1; in bq25890_find_idx()
369 return (rtbl->min + idx * rtbl->step); in bq25890_find_val()
[all …]
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 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 …]
/kernel/linux/linux-6.6/drivers/power/supply/
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 …]
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 …]