Home
last modified time | relevance | path

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

12345678910>>...30

/linux/drivers/regulator/
A Dmax77620-regulator.c141 pmic->active_fps_src[id] = ret; in max77620_regulator_set_fps_src()
158 pmic->active_fps_src[id] = fps_src; in max77620_regulator_set_fps_src()
785 struct max77620_regulator *pmic; in max77620_regulator_probe() local
789 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in max77620_regulator_probe()
790 if (!pmic) in max77620_regulator_probe()
793 platform_set_drvdata(pdev, pmic); in max77620_regulator_probe()
794 pmic->dev = dev; in max77620_regulator_probe()
795 pmic->rmap = max77620_chip->rmap; in max77620_regulator_probe()
813 config.regmap = pmic->rmap; in max77620_regulator_probe()
815 config.driver_data = pmic; in max77620_regulator_probe()
[all …]
A Dtps65910-regulator.c1093 pmic = devm_kzalloc(&pdev->dev, sizeof(*pmic), GFP_KERNEL); in tps65910_probe()
1094 if (!pmic) in tps65910_probe()
1097 pmic->mfd = tps65910; in tps65910_probe()
1136 if (!pmic->desc) in tps65910_probe()
1143 if (!pmic->info) in tps65910_probe()
1150 if (!pmic->rdev) in tps65910_probe()
1155 pmic->info[i] = info; in tps65910_probe()
1159 pmic->desc[i].id = i; in tps65910_probe()
1201 pmic->desc[i].enable_reg = pmic->get_ctrl_reg(i); in tps65910_probe()
1220 pmic->rdev[i] = rdev; in tps65910_probe()
[all …]
A Disl6271a-regulator.c42 mutex_lock(&pmic->mtx); in isl6271a_get_voltage_sel()
44 idx = i2c_smbus_read_byte(pmic->client); in isl6271a_get_voltage_sel()
48 mutex_unlock(&pmic->mtx); in isl6271a_get_voltage_sel()
58 mutex_lock(&pmic->mtx); in isl6271a_set_voltage_sel()
64 mutex_unlock(&pmic->mtx); in isl6271a_set_voltage_sel()
114 struct isl_pmic *pmic; in isl6271a_probe() local
121 if (!pmic) in isl6271a_probe()
124 pmic->client = i2c; in isl6271a_probe()
126 mutex_init(&pmic->mtx); in isl6271a_probe()
134 config.driver_data = pmic; in isl6271a_probe()
[all …]
A Dpalmas-regulator.c476 pmic->desc[id].enable_val = pmic->current_reg_mode[id]; in palmas_set_mode_smps()
983 dev_err(pmic->dev, in palmas_ldo_registration()
1090 dev_err(pmic->dev, in tps65917_ldo_registration()
1138 if (pmic->smps123) in palmas_smps_registration()
1306 pmic->smps12) in tps65917_smps_registration()
1618 pmic = devm_kzalloc(&pdev->dev, sizeof(*pmic), GFP_KERNEL); in palmas_regulators_probe()
1619 if (!pmic) in palmas_regulators_probe()
1630 palmas->pmic = pmic; in palmas_regulators_probe()
1643 pmic->smps123 = 1; in palmas_regulators_probe()
1644 pmic->smps12 = 1; in palmas_regulators_probe()
[all …]
A 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()
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()
329 mbatt_rail_name = pmic->desc[i].name; in max8907_regulator_probe()
360 &pmic->desc[i], &config); in max8907_regulator_probe()
[all …]
A 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()
159 switch (wm8350->pmic.isink_B_dcdc) { in wm8350_isink_disable()
1179 if (wm8350->pmic.pdev[reg]) in wm8350_register_regulator()
1183 reg > wm8350->pmic.max_dcdc) in wm8350_register_regulator()
1193 wm8350->pmic.pdev[reg] = pdev; in wm8350_register_regulator()
1207 wm8350->pmic.pdev[reg] = NULL; in wm8350_register_regulator()
[all …]
/linux/drivers/mfd/
A Dhi655x-pmic.c95 struct hi655x_pmic *pmic; in hi655x_pmic_probe() local
100 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in hi655x_pmic_probe()
101 if (!pmic) in hi655x_pmic_probe()
103 pmic->dev = dev; in hi655x_pmic_probe()
112 if (IS_ERR(pmic->regmap)) in hi655x_pmic_probe()
115 regmap_read(pmic->regmap, HI655X_BUS_ADDR(HI655X_VER_REG), &pmic->ver); in hi655x_pmic_probe()
116 if ((pmic->ver < PMU_VER_START) || (pmic->ver > PMU_VER_END)) { in hi655x_pmic_probe()
133 pmic->gpio, ret); in hi655x_pmic_probe()
137 ret = regmap_add_irq_chip(pmic->regmap, gpio_to_irq(pmic->gpio), in hi655x_pmic_probe()
152 regmap_del_irq_chip(gpio_to_irq(pmic->gpio), pmic->irq_data); in hi655x_pmic_probe()
[all …]
A Dintel_soc_pmic_core.c36 struct intel_soc_pmic *pmic; in intel_soc_pmic_i2c_probe() local
63 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in intel_soc_pmic_i2c_probe()
64 if (!pmic) in intel_soc_pmic_i2c_probe()
70 if (IS_ERR(pmic->regmap)) in intel_soc_pmic_i2c_probe()
73 pmic->irq = i2c->irq; in intel_soc_pmic_i2c_probe()
75 ret = regmap_add_irq_chip(pmic->regmap, pmic->irq, in intel_soc_pmic_i2c_probe()
98 regmap_del_irq_chip(pmic->irq, pmic->irq_chip_data); in intel_soc_pmic_i2c_probe()
106 regmap_del_irq_chip(pmic->irq, pmic->irq_chip_data); in intel_soc_pmic_i2c_remove()
120 disable_irq(pmic->irq); in intel_soc_pmic_shutdown()
130 disable_irq(pmic->irq); in intel_soc_pmic_suspend()
[all …]
A Dintel_soc_pmic_bxtwc.c283 if (!pmic) in regmap_ipc_byte_reg_read()
313 if (!pmic) in regmap_ipc_byte_reg_write()
444 pmic = devm_kzalloc(&pdev->dev, sizeof(*pmic), GFP_KERNEL); in bxtwc_probe()
445 if (!pmic) in bxtwc_probe()
460 pmic->regmap = devm_regmap_init(&pdev->dev, NULL, pmic, in bxtwc_probe()
477 ret = bxtwc_add_chained_irq_chip(pmic, pmic->irq_chip_data, in bxtwc_probe()
487 ret = bxtwc_add_chained_irq_chip(pmic, pmic->irq_chip_data, in bxtwc_probe()
498 ret = bxtwc_add_chained_irq_chip(pmic, pmic->irq_chip_data, in bxtwc_probe()
511 ret = bxtwc_add_chained_irq_chip(pmic, pmic->irq_chip_data, in bxtwc_probe()
524 ret = bxtwc_add_chained_irq_chip(pmic, pmic->irq_chip_data, in bxtwc_probe()
[all …]
A 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()
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()
140 disable_irq(pmic->irq); in chtdc_ti_shutdown()
147 disable_irq(pmic->irq); in chtdc_ti_suspend()
[all …]
A Dintel_soc_pmic_chtwc.c140 struct intel_soc_pmic *pmic; in cht_wc_probe() local
159 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in cht_wc_probe()
160 if (!pmic) in cht_wc_probe()
163 pmic->irq = client->irq; in cht_wc_probe()
164 pmic->dev = dev; in cht_wc_probe()
168 if (IS_ERR(pmic->regmap)) in cht_wc_probe()
169 return PTR_ERR(pmic->regmap); in cht_wc_probe()
171 ret = devm_regmap_add_irq_chip(dev, pmic->regmap, pmic->irq, in cht_wc_probe()
187 disable_irq(pmic->irq); in cht_wc_shutdown()
194 disable_irq(pmic->irq); in cht_wc_suspend()
[all …]
A Dintel_soc_pmic_mrfld.c77 struct intel_soc_pmic *pmic = context; in bcove_ipc_byte_reg_read() local
92 struct intel_soc_pmic *pmic = context; in bcove_ipc_byte_reg_write() local
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()
118 if (!pmic->scu) in bcove_probe()
121 platform_set_drvdata(pdev, pmic); in bcove_probe()
122 pmic->dev = &pdev->dev; in bcove_probe()
124 pmic->regmap = devm_regmap_init(dev, NULL, pmic, &bcove_regmap_config); in bcove_probe()
125 if (IS_ERR(pmic->regmap)) in bcove_probe()
[all …]
A Dmt6397-core.c197 struct mt6397_chip *pmic; in mt6397_probe() local
200 pmic = devm_kzalloc(&pdev->dev, sizeof(*pmic), GFP_KERNEL); in mt6397_probe()
201 if (!pmic) in mt6397_probe()
204 pmic->dev = &pdev->dev; in mt6397_probe()
211 if (!pmic->regmap) in mt6397_probe()
226 platform_set_drvdata(pdev, pmic); in mt6397_probe()
229 if (pmic->irq <= 0) in mt6397_probe()
230 return pmic->irq; in mt6397_probe()
232 ret = pmic_core->irq_init(pmic); in mt6397_probe()
238 NULL, 0, pmic->irq_domain); in mt6397_probe()
[all …]
A 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()
/linux/Documentation/devicetree/bindings/mfd/
A Dsamsung,s5m8767.yaml21 const: samsung,s5m8767-pmic
63 s5m8767,pmic-buck-ds-gpios:
93 s5m8767,pmic-buck-dvs-gpios:
146 s5m8767,pmic-buck2-dvs-voltage: [ 's5m8767,pmic-buck-dvs-gpios' ]
147 s5m8767,pmic-buck3-dvs-voltage: [ 's5m8767,pmic-buck-dvs-gpios' ]
148 s5m8767,pmic-buck4-dvs-voltage: [ 's5m8767,pmic-buck-dvs-gpios' ]
149 …s5m8767,pmic-buck2-uses-gpio-dvs: [ 's5m8767,pmic-buck-dvs-gpios', 's5m8767,pmic-buck2-dvs-voltage…
150 …s5m8767,pmic-buck3-uses-gpio-dvs: [ 's5m8767,pmic-buck-dvs-gpios', 's5m8767,pmic-buck3-dvs-voltage…
151 …s5m8767,pmic-buck4-uses-gpio-dvs: [ 's5m8767,pmic-buck-dvs-gpios', 's5m8767,pmic-buck4-dvs-voltage…
189 pmic@66 {
[all …]
A Dmax8998.txt26 - max8998,pmic-buck1-dvs-gpios: GPIO specifiers for two host gpios used
29 - max8998,pmic-buck2-dvs-gpio: GPIO specifier for host gpio used
40 - max8998,pmic-buck-voltage-lock: If present, disallows changing of
84 pmic@66 {
85 compatible = "maxim,max8998-pmic";
91 max8998,pmic-buck1-default-dvs-idx = <0>;
92 max8998,pmic-buck1-dvs-gpios = <&gpx0 0 1 0 0>, /* SET1 */
94 max8998,pmic-buck1-dvs-voltage = <1350000>, <1300000>,
98 max8998,pmic-buck2-default-dvs-idx = <0>;
99 max8998,pmic-buck2-dvs-gpio = <&gpx0 0 3 0 0>; /* SET3 */
[all …]
A 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
136 pmic@66 {
[all …]
A 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/Documentation/devicetree/bindings/regulator/
A Dmaxim,max8997.yaml22 const: maxim,max8997-pmic
33 max8997,pmic-buck1-dvs-voltage:
45 max8997,pmic-buck2-dvs-voltage:
57 max8997,pmic-buck5-dvs-voltage:
69 max8997,pmic-buck1-uses-gpio-dvs:
95 max8997,pmic-buck125-dvs-gpios:
253 max8997,pmic-buck1-uses-gpio-dvs: [ 'max8997,pmic-buck125-dvs-gpios' ]
254 max8997,pmic-buck2-uses-gpio-dvs: [ 'max8997,pmic-buck125-dvs-gpios' ]
255 max8997,pmic-buck5-uses-gpio-dvs: [ 'max8997,pmic-buck125-dvs-gpios' ]
288 pmic@66 {
[all …]
A 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,
60 pmic {
[all …]
/linux/drivers/watchdog/
A 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/arch/arm/mach-omap2/
A Dvc.c146 if (!voltdm->pmic) { in omap_vc_pre_scale()
152 if (!voltdm->pmic->uv_to_vsel) { in omap_vc_pre_scale()
189 voltdm->pmic->slew_rate) + 2; in omap_vc_post_scale()
672 if (!voltdm->pmic->i2c_high_speed) { in omap4_vc_i2c_timing_init()
772 mcode = voltdm->pmic->i2c_mcode; in omap_vc_i2c_init()
796 if (voltdm->pmic->vddmin > uvolt) in omap_vc_calc_vsel()
797 uvolt = voltdm->pmic->vddmin; in omap_vc_calc_vsel()
798 if (voltdm->pmic->vddmax < uvolt) { in omap_vc_calc_vsel()
802 uvolt = voltdm->pmic->vddmax; in omap_vc_calc_vsel()
805 return voltdm->pmic->uv_to_vsel(uvolt); in omap_vc_calc_vsel()
[all …]
A 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()
68 1000 * voltdm->pmic->slew_rate); in omap_vp_init()
69 vstepmin = voltdm->pmic->vp_vstepmin; in omap_vp_init()
70 vstepmax = voltdm->pmic->vp_vstepmax; in omap_vp_init()
[all …]
/linux/drivers/thermal/intel/
A Dintel_bxt_pmic_thermal.c158 struct intel_soc_pmic *pmic; in pmic_thermal_irq_handler() local
164 pmic = dev_get_drvdata(pdev->dev.parent); in pmic_thermal_irq_handler()
165 regmap = pmic->regmap; in pmic_thermal_irq_handler()
213 struct intel_soc_pmic *pmic; in pmic_thermal_probe() local
220 pmic = dev_get_drvdata(pdev->dev.parent); in pmic_thermal_probe()
221 if (!pmic) { in pmic_thermal_probe()
233 regmap = pmic->regmap; in pmic_thermal_probe()
234 regmap_irq_chip = pmic->irq_chip_data; in pmic_thermal_probe()
/linux/arch/arm64/boot/dts/qcom/
A Dpm8004.dtsi7 pm8004_lsid4: pmic@4 {
8 compatible = "qcom,pm8004", "qcom,spmi-pmic";
14 pm8004_lsid5: pmic@5 {
15 compatible = "qcom,pm8004", "qcom,spmi-pmic";

Completed in 63 milliseconds

12345678910>>...30