Lines Matching +full:address +full:- +full:address +full:- +full:data
1 // SPDX-License-Identifier: GPL-2.0
31 .address = 0x00,
36 .address = 0x04,
41 .address = 0x08,
46 .address = 0x0c,
51 .address = 0x10,
56 .address = 0x14,
61 .address = 0x18,
66 .address = 0x1c,
71 .address = 0x20,
76 .address = 0x24,
81 .address = 0x28,
86 .address = 0x2c,
91 .address = 0x30,
96 .address = 0x34,
101 .address = 0x38,
106 .address = 0x3c,
111 .address = 0x40,
116 .address = 0x44,
121 .address = 0x48,
126 .address = 0x4c,
131 /* TMP0 - TMP5 are the same, all from GPADC */
134 .address = 0x00,
138 .address = 0x0c,
142 .address = 0x18,
146 .address = 0x24,
150 .address = 0x30,
154 .address = 0x3c,
162 int data; in intel_xpower_pmic_get_power() local
164 if (regmap_read(regmap, reg, &data)) in intel_xpower_pmic_get_power()
165 return -EIO; in intel_xpower_pmic_get_power()
169 *value = ((data & GPI1_LDO_MASK) == GPI1_LDO_ON); in intel_xpower_pmic_get_power()
171 *value = (data & BIT(bit)) ? 1 : 0; in intel_xpower_pmic_get_power()
179 int data, ret; in intel_xpower_pmic_update_power() local
192 if (regmap_read(regmap, reg, &data)) { in intel_xpower_pmic_update_power()
193 ret = -EIO; in intel_xpower_pmic_update_power()
198 data |= BIT(bit); in intel_xpower_pmic_update_power()
200 data &= ~BIT(bit); in intel_xpower_pmic_update_power()
202 if (regmap_write(regmap, reg, data)) in intel_xpower_pmic_update_power()
203 ret = -EIO; in intel_xpower_pmic_update_power()
224 * The current-source used for the battery temp-sensor (TS) is shared in intel_xpower_pmic_get_raw_temp()
225 * with the GPADC. For proper fuel-gauge and charger operation the TS in intel_xpower_pmic_get_raw_temp()
226 * current-source needs to be permanently on. But to read the GPADC we in intel_xpower_pmic_get_raw_temp()
227 * need to temporary switch the TS current-source to ondemand, so that in intel_xpower_pmic_get_raw_temp()
230 * Note that the switching from on to on-ondemand is not necessary in intel_xpower_pmic_get_raw_temp()
231 * when the TS current-source is off (this happens on devices which in intel_xpower_pmic_get_raw_temp()
232 * do not use the TS-pin). in intel_xpower_pmic_get_raw_temp()
241 * this does to a single I2C-transfer, and thus there is no in intel_xpower_pmic_get_raw_temp()
250 /* Wait a bit after switching the current-source */ in intel_xpower_pmic_get_raw_temp()
281 dev_err(dev, "Unexpected i2c-addr: 0x%02x (reg-addr 0x%x value 0x%x mask 0x%x)\n", in intel_xpower_exec_mipi_pmic_seq_element()
283 return -ENXIO; in intel_xpower_exec_mipi_pmic_seq_element()
300 struct acpi_lpat first = lpat_table->lpat[0]; in intel_xpower_lpat_raw_to_temp()
301 struct acpi_lpat last = lpat_table->lpat[lpat_table->lpat_count - 1]; in intel_xpower_lpat_raw_to_temp()
305 * reason only describe a small temperature range, e.g. 27° - 37° in intel_xpower_lpat_raw_to_temp()
332 acpi_physical_address address, u32 bit_width, u64 *value, in intel_xpower_pmic_gpio_handler() argument
340 struct device *parent = pdev->dev.parent; in intel_xpower_pmic_opregion_probe()
349 return -ENODEV; in intel_xpower_pmic_opregion_probe()
351 result = intel_pmic_install_opregion_handler(&pdev->dev, in intel_xpower_pmic_opregion_probe()
352 ACPI_HANDLE(parent), axp20x->regmap, in intel_xpower_pmic_opregion_probe()