Home
last modified time | relevance | path

Searched full:pmic (Results 1 – 25 of 1292) sorted by relevance

12345678910>>...52

/Linux-v6.1/drivers/regulator/
Dmax77620-regulator.c99 static int max77620_regulator_get_fps_src(struct max77620_regulator *pmic, in max77620_regulator_get_fps_src() argument
102 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_get_fps_src()
106 ret = regmap_read(pmic->rmap, rinfo->fps_addr, &val); in max77620_regulator_get_fps_src()
108 dev_err(pmic->dev, "Reg 0x%02x read failed %d\n", in max77620_regulator_get_fps_src()
116 static int max77620_regulator_set_fps_src(struct max77620_regulator *pmic, in max77620_regulator_set_fps_src() argument
119 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_set_fps_src()
134 ret = regmap_read(pmic->rmap, rinfo->fps_addr, &val); in max77620_regulator_set_fps_src()
136 dev_err(pmic->dev, "Reg 0x%02x read failed %d\n", in max77620_regulator_set_fps_src()
141 pmic->active_fps_src[id] = ret; in max77620_regulator_set_fps_src()
145 dev_err(pmic->dev, "Invalid FPS %d for regulator %d\n", in max77620_regulator_set_fps_src()
[all …]
DKconfig130 signal AB8500 PMIC
159 tristate "AS3711 PMIC"
163 AS3711 PMIC
166 tristate "AMS AS3722 PMIC Regulators"
170 AS3722 PMIC. This will enable support for all the software
174 tristate "Actions Semi ATC260x PMIC Regulators"
182 tristate "X-POWERS AXP20X PMIC Regulators"
186 AXP20X PMIC.
201 This driver supports voltage regulators on ROHM BD71815 PMIC.
213 This driver supports voltage regulators on ROHM BD71828 PMIC.
[all …]
Disl6271a-regulator.c23 /* PMIC details */
31 struct isl_pmic *pmic = rdev_get_drvdata(dev); in isl6271a_get_voltage_sel() local
34 mutex_lock(&pmic->mtx); in isl6271a_get_voltage_sel()
36 idx = i2c_smbus_read_byte(pmic->client); in isl6271a_get_voltage_sel()
38 dev_err(&pmic->client->dev, "Error getting voltage\n"); in isl6271a_get_voltage_sel()
40 mutex_unlock(&pmic->mtx); in isl6271a_get_voltage_sel()
47 struct isl_pmic *pmic = rdev_get_drvdata(dev); in isl6271a_set_voltage_sel() local
50 mutex_lock(&pmic->mtx); in isl6271a_set_voltage_sel()
52 err = i2c_smbus_write_byte(pmic->client, selector); in isl6271a_set_voltage_sel()
54 dev_err(&pmic->client->dev, "Error setting voltage\n"); in isl6271a_set_voltage_sel()
[all …]
Dtps65910-regulator.c392 struct tps65910_reg *pmic = rdev_get_drvdata(dev); in tps65910_set_mode() local
396 reg = pmic->get_ctrl_reg(id); in tps65910_set_mode()
417 struct tps65910_reg *pmic = rdev_get_drvdata(dev); in tps65910_get_mode() local
421 reg = pmic->get_ctrl_reg(id); in tps65910_get_mode()
515 struct tps65910_reg *pmic = rdev_get_drvdata(dev); in tps65910_get_voltage_sel() local
519 reg = pmic->get_ctrl_reg(id); in tps65910_get_voltage_sel()
558 struct tps65910_reg *pmic = rdev_get_drvdata(dev); in tps65911_get_voltage_sel() local
563 reg = pmic->get_ctrl_reg(id); in tps65911_get_voltage_sel()
635 struct tps65910_reg *pmic = rdev_get_drvdata(dev); in tps65910_set_voltage_sel() local
639 reg = pmic->get_ctrl_reg(id); in tps65910_set_voltage_sel()
[all …]
Dpalmas-regulator.c3 * Driver for Regulator part of Palmas PMIC Chips
442 struct palmas_pmic *pmic = rdev_get_drvdata(dev); in palmas_set_mode_smps() local
443 struct palmas_pmic_driver_data *ddata = pmic->palmas->pmic_ddata; in palmas_set_mode_smps()
448 ret = palmas_smps_read(pmic->palmas, rinfo->ctrl_addr, &reg); in palmas_set_mode_smps()
471 pmic->current_reg_mode[id] = reg & PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK; in palmas_set_mode_smps()
473 palmas_smps_write(pmic->palmas, rinfo->ctrl_addr, reg); in palmas_set_mode_smps()
476 pmic->desc[id].enable_val = pmic->current_reg_mode[id]; in palmas_set_mode_smps()
483 struct palmas_pmic *pmic = rdev_get_drvdata(dev); in palmas_get_mode_smps() local
487 reg = pmic->current_reg_mode[id] & PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK; in palmas_get_mode_smps()
505 struct palmas_pmic *pmic = rdev_get_drvdata(rdev); in palmas_smps_set_ramp_delay() local
[all …]
/Linux-v6.1/drivers/mfd/
Dhi655x-pmic.c3 * Device driver for MFD hi655x PMIC
16 #include <linux/mfd/hi655x-pmic.h>
35 .name = "hi655x-pmic",
94 struct hi655x_pmic *pmic; in hi655x_pmic_probe() local
98 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in hi655x_pmic_probe()
99 if (!pmic) in hi655x_pmic_probe()
101 pmic->dev = dev; in hi655x_pmic_probe()
103 pmic->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in hi655x_pmic_probe()
104 base = devm_ioremap_resource(dev, pmic->res); in hi655x_pmic_probe()
108 pmic->regmap = devm_regmap_init_mmio_clk(dev, NULL, base, in hi655x_pmic_probe()
[all …]
Dintel_soc_pmic_bxtwc.c3 * MFD core driver for Intel Broxton Whiskey Cove PMIC
21 /* PMIC device registers */
59 /* Whiskey Cove PMIC share same ACPI ID between different platforms */
282 struct intel_soc_pmic *pmic = context; in regmap_ipc_byte_reg_read() local
284 if (!pmic) in regmap_ipc_byte_reg_read()
296 ret = intel_scu_ipc_dev_command(pmic->scu, PMC_PMIC_ACCESS, in regmap_ipc_byte_reg_read()
312 struct intel_soc_pmic *pmic = context; in regmap_ipc_byte_reg_write() local
314 if (!pmic) in regmap_ipc_byte_reg_write()
327 return intel_scu_ipc_dev_command(pmic->scu, PMC_PMIC_ACCESS, in regmap_ipc_byte_reg_write()
332 /* sysfs interfaces to r/w PMIC registers, required by initial script */
[all …]
Dqcom-spmi-pmic.c15 #include <soc/qcom/qcom-spmi-pmic.h>
30 struct qcom_spmi_pmic pmic; member
65 { .compatible = "qcom,spmi-pmic", .data = N_USIDS(1) },
70 * A PMIC can be represented by multiple SPMI devices, but
71 * only the base PMIC device will contain a reference to
74 * This function takes a pointer to a pmic device and
75 * returns a pointer to the base PMIC device.
103 * number of USIDs in the PMIC array, e.g. for a PMIC with 2 USIDs in qcom_pmic_get_base_usid()
119 * If the base USID for this PMIC hasn't probed yet in qcom_pmic_get_base_usid()
133 struct qcom_spmi_pmic *pmic) in pmic_spmi_load_revid() argument
[all …]
Dintel_soc_pmic_chtwc.c3 * MFD core driver for Intel Cherrytrail Whiskey Cove PMIC
7 * Based on various non upstream patches to support the CHT Whiskey Cove PMIC:
22 /* PMIC device registers */
30 /* Whiskey Cove PMIC share same ACPI ID between different platforms */
176 struct intel_soc_pmic *pmic; in cht_wc_probe() local
183 return dev_err_probe(dev, -ENODEV, "Failed to get PMIC hardware revision\n"); in cht_wc_probe()
185 return dev_err_probe(dev, -ENODEV, "Invalid PMIC hardware revision: %llu\n", hrv); in cht_wc_probe()
190 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in cht_wc_probe()
191 if (!pmic) in cht_wc_probe()
196 pmic->cht_wc_model = (long)id->driver_data; in cht_wc_probe()
[all …]
Dintel_soc_pmic_chtdc_ti.c3 * Device access for Dollar Cove TI PMIC
110 struct intel_soc_pmic *pmic; in chtdc_ti_probe() local
113 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in chtdc_ti_probe()
114 if (!pmic) in chtdc_ti_probe()
117 i2c_set_clientdata(i2c, pmic); in chtdc_ti_probe()
119 pmic->regmap = devm_regmap_init_i2c(i2c, &chtdc_ti_regmap_config); in chtdc_ti_probe()
120 if (IS_ERR(pmic->regmap)) in chtdc_ti_probe()
121 return PTR_ERR(pmic->regmap); in chtdc_ti_probe()
122 pmic->irq = i2c->irq; in chtdc_ti_probe()
124 ret = devm_regmap_add_irq_chip(dev, pmic->regmap, pmic->irq, in chtdc_ti_probe()
[all …]
Dintel_soc_pmic_mrfld.c3 * Device access for Basin Cove PMIC
23 * Firmware on the systems with Basin Cove PMIC services Level 1 IRQs
77 struct intel_soc_pmic *pmic = context; in bcove_ipc_byte_reg_read() local
81 ret = intel_scu_ipc_dev_ioread8(pmic->scu, reg, &ipc_out); in bcove_ipc_byte_reg_read()
92 struct intel_soc_pmic *pmic = context; in bcove_ipc_byte_reg_write() local
95 return intel_scu_ipc_dev_iowrite8(pmic->scu, reg, ipc_in); in bcove_ipc_byte_reg_write()
109 struct intel_soc_pmic *pmic; in bcove_probe() local
113 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in bcove_probe()
114 if (!pmic) in bcove_probe()
117 pmic->scu = devm_intel_scu_ipc_dev_get(dev); in bcove_probe()
[all …]
Dintel_soc_pmic_crc.c3 * Device access for Crystal Cove PMIC
171 struct intel_soc_pmic *pmic; in crystal_cove_i2c_probe() local
179 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in crystal_cove_i2c_probe()
180 if (!pmic) in crystal_cove_i2c_probe()
183 i2c_set_clientdata(i2c, pmic); in crystal_cove_i2c_probe()
185 pmic->regmap = devm_regmap_init_i2c(i2c, config->regmap_config); in crystal_cove_i2c_probe()
186 if (IS_ERR(pmic->regmap)) in crystal_cove_i2c_probe()
187 return PTR_ERR(pmic->regmap); in crystal_cove_i2c_probe()
189 pmic->irq = i2c->irq; in crystal_cove_i2c_probe()
191 ret = devm_regmap_add_irq_chip(dev, pmic->regmap, pmic->irq, in crystal_cove_i2c_probe()
[all …]
Dhi6421-pmic-core.c3 * Device driver for Hi6421 PMIC
16 #include <linux/mfd/hi6421-pmic.h>
39 .compatible = "hisilicon,hi6421-pmic",
43 .compatible = "hisilicon,hi6421v530-pmic",
52 struct hi6421_pmic *pmic; in hi6421_pmic_probe() local
65 pmic = devm_kzalloc(&pdev->dev, sizeof(*pmic), GFP_KERNEL); in hi6421_pmic_probe()
66 if (!pmic) in hi6421_pmic_probe()
74 pmic->regmap = devm_regmap_init_mmio_clk(&pdev->dev, NULL, base, in hi6421_pmic_probe()
76 if (IS_ERR(pmic->regmap)) { in hi6421_pmic_probe()
78 PTR_ERR(pmic->regmap)); in hi6421_pmic_probe()
[all …]
Dmt6397-core.c123 .name = "mtk-pmic-keys",
144 .name = "mtk-pmic-keys",
165 .name = "mtk-pmic-keys",
202 .name = "mtk-pmic-keys",
228 .name = "mtk-pmic-keys",
295 struct mt6397_chip *pmic; in mt6397_probe() local
298 pmic = devm_kzalloc(&pdev->dev, sizeof(*pmic), GFP_KERNEL); in mt6397_probe()
299 if (!pmic) in mt6397_probe()
302 pmic->dev = &pdev->dev; in mt6397_probe()
305 * mt6397 MFD is child device of soc pmic wrapper. in mt6397_probe()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/mfd/
Dsamsung,s5m8767.yaml14 Management IC (PMIC).
21 const: samsung,s5m8767-pmic
39 s5m8767,pmic-buck2-dvs-voltage:
47 s5m8767,pmic-buck3-dvs-voltage:
55 s5m8767,pmic-buck4-dvs-voltage:
63 s5m8767,pmic-buck-ds-gpios:
70 s5m8767,pmic-buck2-uses-gpio-dvs:
74 s5m8767,pmic-buck3-uses-gpio-dvs:
78 s5m8767,pmic-buck4-uses-gpio-dvs:
82 s5m8767,pmic-buck-default-dvs-idx:
[all …]
Dmax8998.txt8 PMIC sub-block
11 The PMIC sub-block contains a number of voltage and current regulators,
20 - reg: Specifies the i2c slave address of the pmic block. It should be 0x66.
26 - max8998,pmic-buck1-dvs-gpios: GPIO specifiers for two host gpios used
29 - max8998,pmic-buck2-dvs-gpio: GPIO specifier for host gpio used
32 - max8998,pmic-buck1-default-dvs-idx: Default voltage setting selected from
36 - max8998,pmic-buck2-default-dvs-idx: Default voltage setting selected from
40 - max8998,pmic-buck-voltage-lock: If present, disallows changing of
43 Additional properties required if max8998,pmic-buck1-dvs-gpios is defined:
44 - max8998,pmic-buck1-dvs-voltage: An array of 4 voltage values in microvolts
[all …]
Dhisilicon,hi655x.txt1 Hisilicon Hi655x Power Management Integrated Circuit (PMIC)
3 The hardware layout for access PMIC Hi655x from AP SoC Hi6220.
4 Between PMIC Hi655x and Hi6220, the physical signal channel is SSI.
15 - compatible: Should be "hisilicon,hi655x-pmic".
16 - reg: Base address of PMIC on Hi6220 SoC.
18 - pmic-gpios: The GPIO used by PMIC IRQ.
26 pmic: pmic@f8000000 {
27 compatible = "hisilicon,hi655x-pmic";
31 pmic-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
Dsamsung,s2mps11.yaml14 Management IC (PMIC).
23 - samsung,s2mps11-pmic
24 - samsung,s2mps13-pmic
25 - samsung,s2mps14-pmic
26 - samsung,s2mps15-pmic
27 - samsung,s2mpu02-pmic
47 Indicates that ACOKB pin of S2MPS11 PMIC is connected to the ground so
48 the PMIC must manually set PWRHOLD bit in CTRL1 register to turn off the
55 Indicates that WRSTBI pin of PMIC is pulled down. When the system is
74 const: samsung,s2mps11-pmic
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/regulator/
Dmaxim,max8997.yaml22 const: maxim,max8997-pmic
33 max8997,pmic-buck1-dvs-voltage:
40 If none of max8997,pmic-buck[1/2/5]-uses-gpio-dvs optional property is
41 specified, the max8997,pmic-buck[1/2/5]-dvs-voltage property should
45 max8997,pmic-buck2-dvs-voltage:
52 If none of max8997,pmic-buck[1/2/5]-uses-gpio-dvs optional property is
53 specified, the max8997,pmic-buck[1/2/5]-dvs-voltage property should
57 max8997,pmic-buck5-dvs-voltage:
64 If none of max8997,pmic-buck[1/2/5]-uses-gpio-dvs optional property is
65 specified, the max8997,pmic-buck[1/2/5]-dvs-voltage property should
[all …]
Dpalmas-pmic.txt12 ti,twl6035-pmic
13 ti,twl6036-pmic
14 ti,twl6037-pmic
15 ti,tps65913-pmic
16 ti,tps65914-pmic
17 ti,tps65917-pmic
18 ti,tps659038-pmic
20 ti,palmas-pmic
35 For ti,palmas-pmic - smps12, smps123, smps3 depending on OTP,
48 ti,mode-sleep - mode to adopt in pmic sleep 0 - off, 1 - auto,
[all …]
/Linux-v6.1/drivers/acpi/pmic/
DKconfig4 bool "PMIC (Power Management Integrated Circuit) operation region support"
7 region of the PMIC chip. The operation region can be used
9 PMIC chip.
14 bool "ACPI operation region support for Bay Trail Crystal Cove PMIC"
18 version of the Crystal Cove PMIC.
21 bool "ACPI operation region support for Cherry Trail Crystal Cove PMIC"
25 version of the Crystal Cove PMIC.
28 bool "ACPI operation region support for XPower AXP288 PMIC"
31 This config adds ACPI operation region support for XPower AXP288 PMIC.
34 bool "ACPI operation region support for BXT WhiskeyCove PMIC"
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/rtc/
Drtc-mt6397.txt1 Device-Tree bindings for MediaTek PMIC based RTC
3 MediaTek PMIC based RTC is an independent function of MediaTek PMIC that works
5 with PMIC wrapper bus which is a common resource shared with the other
6 functions found on the same PMIC.
8 For MediaTek PMIC MFD bindings, see:
11 For MediaTek PMIC wrapper bus bindings, see:
16 "mediatek,mt6323-rtc": for MT6323 PMIC
17 "mediatek,mt6358-rtc": for MT6358 PMIC
18 "mediatek,mt6366-rtc", "mediatek,mt6358-rtc": for MT6366 PMIC
19 "mediatek,mt6397-rtc": for MT6397 PMIC
[all …]
/Linux-v6.1/drivers/watchdog/
Dstpmic1_wdt.c31 struct stpmic1 *pmic; member
39 return regmap_update_bits(wdt->pmic->regmap, in pmic_wdt_start()
47 return regmap_update_bits(wdt->pmic->regmap, in pmic_wdt_stop()
55 return regmap_update_bits(wdt->pmic->regmap, in pmic_wdt_ping()
66 return regmap_write(wdt->pmic->regmap, WCHDG_TIMER_CR, timeout - 1); in pmic_wdt_set_timeout()
71 .identity = "STPMIC1 PMIC Watchdog",
86 struct stpmic1 *pmic; in pmic_wdt_probe() local
92 pmic = dev_get_drvdata(dev->parent); in pmic_wdt_probe()
93 if (!pmic) in pmic_wdt_probe()
100 wdt->pmic = pmic; in pmic_wdt_probe()
[all …]
/Linux-v6.1/arch/x86/include/asm/
Diosf_mbi.h102 * One some systems the P-Unit accesses the PMIC to change various voltages
106 * the PMIC bus while another driver is also accessing the PMIC bus various bad
110 * access the PMIC, be it through iosf_mbi* functions or through other means.
111 * This function will block all kernel access to the PMIC I2C bus, so that the
112 * P-Unit can safely access the PMIC over the shared I2C bus.
115 * P-Unit for exclusive access to the PMIC bus when i2c drivers are accessing
129 * iosf_mbi_block_punit_i2c_access() - Block P-Unit accesses to the PMIC bus
131 * Call this function to block P-Unit access to the PMIC I2C bus, so that the
132 * kernel can safely access the PMIC over the shared I2C bus.
147 * iosf_mbi_unblock_punit_i2c_access() - Release PMIC I2C bus block
[all …]
/Linux-v6.1/arch/arm/mach-omap2/
Dvc.c101 * omap_vc_config_channel - configure VC channel to PMIC mappings
104 * Configures the VC channel to PMIC mappings for the following
105 * PMIC settings
142 /* Check if sufficient pmic info is available for this vdd */ in omap_vc_pre_scale()
143 if (!voltdm->pmic) { in omap_vc_pre_scale()
144 pr_err("%s: Insufficient pmic info to scale the vdd_%s\n", in omap_vc_pre_scale()
149 if (!voltdm->pmic->uv_to_vsel) { in omap_vc_pre_scale()
150 …pr_err("%s: PMIC function to convert voltage in uV to vsel not registered. Hence unable to scale v… in omap_vc_pre_scale()
161 *target_vsel = voltdm->pmic->uv_to_vsel(target_volt); in omap_vc_pre_scale()
162 *current_vsel = voltdm->pmic->uv_to_vsel(voltdm->nominal_volt); in omap_vc_pre_scale()
[all …]

12345678910>>...52