Home
last modified time | relevance | path

Searched refs:pmic (Results 1 – 25 of 804) sorted by relevance

12345678910>>...33

/linux-6.1.9/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 …]
Disl6271a-regulator.c31 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()
56 mutex_unlock(&pmic->mtx); 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.c442 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
506 struct palmas_pmic_driver_data *ddata = pmic->palmas->pmic_ddata; in palmas_smps_set_ramp_delay()
[all …]
Dmax8907-regulator.c279 struct max8907_regulator *pmic; in max8907_regulator_probe() local
290 pmic = devm_kzalloc(&pdev->dev, sizeof(*pmic), GFP_KERNEL); in max8907_regulator_probe()
291 if (!pmic) in max8907_regulator_probe()
294 platform_set_drvdata(pdev, pmic); in max8907_regulator_probe()
296 memcpy(pmic->desc, max8907_regulators, sizeof(pmic->desc)); in max8907_regulator_probe()
305 pmic->desc[MAX8907_SD1].min_uV = 637500; in max8907_regulator_probe()
306 pmic->desc[MAX8907_SD1].uV_step = 12500; in max8907_regulator_probe()
307 pmic->desc[MAX8907_SD1].n_voltages = in max8907_regulator_probe()
320 config.driver_data = pmic; in max8907_regulator_probe()
324 switch (pmic->desc[i].id) { in max8907_regulator_probe()
[all …]
Dwm8350-regulator.c101 switch (wm8350->pmic.isink_A_dcdc) { in wm8350_isink_enable()
109 1 << (wm8350->pmic.isink_A_dcdc - 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()
145 switch (wm8350->pmic.isink_A_dcdc) { in wm8350_isink_disable()
149 1 << (wm8350->pmic.isink_A_dcdc - in wm8350_isink_disable()
159 switch (wm8350->pmic.isink_B_dcdc) { in wm8350_isink_disable()
163 1 << (wm8350->pmic.isink_B_dcdc - in wm8350_isink_disable()
311 val | wm8350->pmic.dcdc1_hib_mode); in wm8350_dcdc_set_suspend_enable()
317 val | wm8350->pmic.dcdc3_hib_mode); in wm8350_dcdc_set_suspend_enable()
[all …]
/linux-6.1.9/drivers/mfd/
Dhi655x-pmic.c94 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()
110 if (IS_ERR(pmic->regmap)) in hi655x_pmic_probe()
111 return PTR_ERR(pmic->regmap); in hi655x_pmic_probe()
113 regmap_read(pmic->regmap, HI655X_BUS_ADDR(HI655X_VER_REG), &pmic->ver); in hi655x_pmic_probe()
[all …]
Dintel_soc_pmic_bxtwc.c282 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()
357 struct intel_soc_pmic *pmic = dev_get_drvdata(dev); in val_show() local
359 ret = regmap_read(pmic->regmap, bxtwc_reg_addr, &val); in val_show()
373 struct intel_soc_pmic *pmic = dev_get_drvdata(dev); in val_store() local
379 ret = regmap_write(pmic->regmap, bxtwc_reg_addr, val); in val_store()
[all …]
Dqcom-spmi-pmic.c30 struct qcom_spmi_pmic pmic; member
133 struct qcom_spmi_pmic *pmic) in pmic_spmi_load_revid() argument
137 ret = regmap_read(map, PMIC_TYPE, &pmic->type); in pmic_spmi_load_revid()
141 if (pmic->type != PMIC_TYPE_VALUE) in pmic_spmi_load_revid()
144 ret = regmap_read(map, PMIC_SUBTYPE, &pmic->subtype); in pmic_spmi_load_revid()
148 pmic->name = of_match_device(pmic_spmi_id_table, dev)->compatible; in pmic_spmi_load_revid()
150 ret = regmap_read(map, PMIC_REV2, &pmic->rev2); in pmic_spmi_load_revid()
154 ret = regmap_read(map, PMIC_REV3, &pmic->minor); in pmic_spmi_load_revid()
158 ret = regmap_read(map, PMIC_REV4, &pmic->major); in pmic_spmi_load_revid()
162 if (pmic->subtype == PMI8998_SUBTYPE || pmic->subtype == PM660_SUBTYPE) { in pmic_spmi_load_revid()
[all …]
Dintel_soc_pmic_chtdc_ti.c110 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()
127 &pmic->irq_chip_data); in chtdc_ti_probe()
[all …]
Dintel_soc_pmic_mrfld.c77 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()
118 if (!pmic->scu) in bcove_probe()
121 platform_set_drvdata(pdev, pmic); in bcove_probe()
[all …]
Dintel_soc_pmic_chtwc.c176 struct intel_soc_pmic *pmic; in cht_wc_probe() local
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()
198 pmic->irq = client->irq; in cht_wc_probe()
199 pmic->dev = dev; in cht_wc_probe()
200 i2c_set_clientdata(client, pmic); in cht_wc_probe()
202 pmic->regmap = devm_regmap_init(dev, NULL, client, &cht_wc_regmap_cfg); in cht_wc_probe()
203 if (IS_ERR(pmic->regmap)) in cht_wc_probe()
204 return PTR_ERR(pmic->regmap); in cht_wc_probe()
[all …]
Dintel_soc_pmic_crc.c171 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()
193 0, config->irq_chip, &pmic->irq_chip_data); in crystal_cove_i2c_probe()
[all …]
Dhi6421-pmic-core.c52 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()
79 return PTR_ERR(pmic->regmap); in hi6421_pmic_probe()
82 platform_set_drvdata(pdev, pmic); in hi6421_pmic_probe()
87 regmap_update_bits(pmic->regmap, HI6421_OCP_DEB_CTRL_REG, in hi6421_pmic_probe()
Dmt6397-core.c295 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()
308 pmic->regmap = dev_get_regmap(pdev->dev.parent, NULL); in mt6397_probe()
309 if (!pmic->regmap) in mt6397_probe()
316 ret = regmap_read(pmic->regmap, pmic_core->cid_addr, &id); in mt6397_probe()
322 pmic->chip_id = (id >> pmic_core->cid_shift) & 0xff; in mt6397_probe()
324 platform_set_drvdata(pdev, pmic); in mt6397_probe()
326 pmic->irq = platform_get_irq(pdev, 0); in mt6397_probe()
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/mfd/
Dsamsung,s5m8767.yaml21 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:
93 s5m8767,pmic-buck-dvs-gpios:
[all …]
Dmax8998.txt20 - 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
47 Additional properties required if max8998,pmic-buck2-dvs-gpio is defined:
48 - max8998,pmic-buck2-dvs-voltage: An array of 2 voltage values in microvolts
[all …]
Dsamsung,s2mps11.yaml23 - samsung,s2mps11-pmic
24 - samsung,s2mps13-pmic
25 - samsung,s2mps14-pmic
26 - samsung,s2mps15-pmic
27 - samsung,s2mpu02-pmic
74 const: samsung,s2mps11-pmic
85 const: samsung,s2mps13-pmic
96 const: samsung,s2mps14-pmic
108 const: samsung,s2mps15-pmic
120 const: samsung,s2mpu02-pmic
[all …]
Dhisilicon,hi655x.txt15 - compatible: Should be "hisilicon,hi655x-pmic".
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>;
/linux-6.1.9/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-6.1.9/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()
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()
118 dev_dbg(wdt->pmic->dev, "PMIC Watchdog driver probed\n"); in pmic_wdt_probe()
/linux-6.1.9/arch/arm64/boot/dts/qcom/
Dsc8280xp-pmics.dtsi11 pmk8280: pmic@0 {
12 compatible = "qcom,pmk8350", "qcom,spmi-pmic";
30 pmc8280_1: pmic@1 {
31 compatible = "qcom,pm8350", "qcom,spmi-pmic";
47 pmc8280c: pmic@2 {
48 compatible = "qcom,pm8350c", "qcom,spmi-pmic";
75 pmc8280_2: pmic@3 {
76 compatible = "qcom,pm8350", "qcom,spmi-pmic";
92 pmr735a: pmic@4 {
93 compatible = "qcom,pmr735a", "qcom,spmi-pmic";
/linux-6.1.9/arch/arm/mach-omap2/
Dvp.c19 vsel = voltdm->pmic->uv_to_vsel(volt); in _vp_set_init_voltage()
45 if (!voltdm->pmic || !voltdm->pmic->uv_to_vsel) { in omap_vp_init()
61 timeout = (sys_clk_rate * voltdm->pmic->vp_timeout_us) / 1000; in omap_vp_init()
62 vddmin = max(voltdm->vp_param->vddmin, voltdm->pmic->vddmin); in omap_vp_init()
63 vddmax = min(voltdm->vp_param->vddmax, voltdm->pmic->vddmax); in omap_vp_init()
64 vddmin = voltdm->pmic->uv_to_vsel(vddmin); in omap_vp_init()
65 vddmax = voltdm->pmic->uv_to_vsel(vddmax); in omap_vp_init()
67 waittime = DIV_ROUND_UP(voltdm->pmic->step_size * sys_clk_rate, in omap_vp_init()
68 1000 * voltdm->pmic->slew_rate); in omap_vp_init()
69 vstepmin = voltdm->pmic->vp_vstepmin; in omap_vp_init()
[all …]
Dvc.c143 if (!voltdm->pmic) { in omap_vc_pre_scale()
149 if (!voltdm->pmic->uv_to_vsel) { 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()
185 smps_delay = ((smps_steps * voltdm->pmic->step_size) / in omap_vc_post_scale()
186 voltdm->pmic->slew_rate) + 2; in omap_vc_post_scale()
377 val = (voltdm->vc_param->on - idle) / voltdm->pmic->slew_rate; in omap3_init_voltsetup1()
478 time = voltage_diff / voltdm->pmic->slew_rate; in omap4_calc_volt_ramp()
669 if (!voltdm->pmic->i2c_high_speed) { in omap4_vc_i2c_timing_init()
681 capacitance += voltdm->pmic->i2c_pad_load; in omap4_vc_i2c_timing_init()
[all …]

12345678910>>...33