/linux-6.12.1/Documentation/devicetree/bindings/regulator/ |
D | nxp,pf8x00-regulator.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/regulator/nxp,pf8x00-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jagan Teki <jagan@amarulasolutions.com> 11 - Troy Kisky <troy.kisky@boundarydevices.com> 16 linear and one vsnvs regulators. It has built-in one time programmable 22 - nxp,pf8100 23 - nxp,pf8121a 24 - nxp,pf8200 [all …]
|
/linux-6.12.1/drivers/iio/dac/ |
D | ad5758.c | 1 // SPDX-License-Identifier: GPL-2.0 101 * struct ad5758_state - driver instance specific data 107 * @dc_dc_ilim: variable which stores the dc-to-dc converter current limit 130 * 1000: 0 mA to 20 mA current range 131 * 1001: 0 mA to 24 mA current range 132 * 1010: 4 mA to 20 mA current range 133 * 1011: ±20 mA current range 134 * 1100: ±24 mA current range 135 * 1101: -1 mA to +22 mA current range 160 { AD5758_RANGE_PLUSMINUS_5V, -5000000, 5000000 }, [all …]
|
/linux-6.12.1/drivers/regulator/ |
D | pf8x00-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 97 #define PF8X00_SW_BASE(i) (8 * (i - PF8X00_BUCK1) + PF8X00_SW1_CONFIG1) 106 #define PF8X00_LDO_BASE(i) (6 * (i - PF8X00_LDO1) + PF8X00_LDO1_CONFIG1) 179 static void swxilim_select(struct pf8x00_chip *chip, int id, int ilim) in swxilim_select() argument 184 switch (ilim) { in swxilim_select() 202 regmap_update_bits(chip->regmap, reg, in swxilim_select() 211 struct pf8x00_chip *chip = config->driver_data; in handle_ilim_property() 215 if ((desc->id >= PF8X00_BUCK1) && (desc->id <= PF8X00_BUCK7)) { in handle_ilim_property() 216 ret = of_property_read_u32(np, "nxp,ilim-ma", &val); in handle_ilim_property() 218 dev_dbg(chip->dev, "unspecified ilim for BUCK%d, use value stored in OTP\n", in handle_ilim_property() [all …]
|
D | wm8350-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // wm8350.c -- Voltage and current regulation for the Wolfson WM8350 PMIC 101 switch (wm8350->pmic.isink_A_dcdc) { in wm8350_isink_enable() 109 1 << (wm8350->pmic.isink_A_dcdc - in wm8350_isink_enable() 113 return -EINVAL; in wm8350_isink_enable() 117 switch (wm8350->pmic.isink_B_dcdc) { in wm8350_isink_enable() 125 1 << (wm8350->pmic.isink_B_dcdc - in wm8350_isink_enable() 129 return -EINVAL; in wm8350_isink_enable() 133 return -EINVAL; in wm8350_isink_enable() 145 switch (wm8350->pmic.isink_A_dcdc) { in wm8350_isink_disable() [all …]
|
/linux-6.12.1/include/linux/mfd/wm831x/ |
D | pdata.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * include/linux/mfd/wm831x/pdata.h -- Platform data for WM831x 25 int ilim; /** Current limit in microamps */ member 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 */ 40 * Configuration for the WM831x DC-DC BuckWise convertors. This
|
/linux-6.12.1/drivers/i2c/busses/ |
D | i2c-cht-wc.c | 1 // 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, ®); 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-6.12.1/drivers/power/supply/ |
D | ucs1002_power.c | 1 // SPDX-License-Identifier: GPL-2.0+ 30 * weighting of the registers is given in mA/hrs. 129 ret = regmap_read(info->regmap, UCS1002_REG_OTHER_STATUS, ®); in ucs1002_get_online() 133 val->intval = !!(reg & F_CHG_ACT); in ucs1002_get_online() 147 * B0: 0.01084 mA/h rounded to 11 uA/h in ucs1002_get_charge() 148 * B1: 0.02169 mA/h rounded to 22 uA/h in ucs1002_get_charge() 149 * B2: 0.04340 mA/h rounded to 43 uA/h in ucs1002_get_charge() 150 * B3: 0.08676 mA/h rounded to 87 uA/h in ucs1002_get_charge() 151 * B4: 0.17350 mA/h rounded to 173 uÁ/h in ucs1002_get_charge() 156 * B6: 0.00271 mA/h rounded to 3 uA/h in ucs1002_get_charge() [all …]
|
D | adp5061.c | 1 // SPDX-License-Identifier: GPL-2.0-only 82 #define ADP5061_ICHG_MAX 1300 // mA 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, ®val); in adp5061_get_input_current_limit() 186 val->intval = adp5061_in_current_lim[mode] * 1000; in adp5061_get_input_current_limit() 195 /* Convert from uA to mA */ in adp5061_set_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, ®val); in adp5061_get_min_voltage() [all …]
|
D | rt9467-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 69 #define RT9467_NUM_VOTG (RT9467_OTG_MAX_uV - RT9467_OTG_MIN_uV + 1) 173 .name = "rt9467-irqs", 289 struct rt9467_chg_data *data = cfg->driver_data; in rt9467_otg_of_parse_cb() 291 cfg->ena_gpiod = fwnode_gpiod_get_index(of_fwnode_handle(of), in rt9467_otg_of_parse_cb() 294 desc->name); in rt9467_otg_of_parse_cb() 295 if (IS_ERR(cfg->ena_gpiod)) { in rt9467_otg_of_parse_cb() 296 cfg->ena_gpiod = NULL; in rt9467_otg_of_parse_cb() 300 return regmap_field_write(data->rm_field[F_OTG_PIN_EN], 1); in rt9467_otg_of_parse_cb() 319 .name = "rt9476-usb-otg-vbus", [all …]
|
D | bq25890_charger.c | 1 // 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, 322 0, -10, -20, -30, -40, -60, -70, -80, 323 -90, -10, -120, -140, -150, -170, -190, -210, 344 /* TODO: BQ25896 has max ICHG 3008 mA */ 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 …]
|
D | bq24257_charger.c | 1 // 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 …]
|