/linux/drivers/regulator/ |
A D | max77620-regulator.c | 141 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 D | tps65910-regulator.c | 1093 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 D | isl6271a-regulator.c | 42 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 D | palmas-regulator.c | 476 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 D | max8907-regulator.c | 279 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 D | wm8350-regulator.c | 101 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 D | hi655x-pmic.c | 95 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 D | intel_soc_pmic_core.c | 36 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 D | intel_soc_pmic_bxtwc.c | 283 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 D | intel_soc_pmic_chtdc_ti.c | 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() 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 D | intel_soc_pmic_chtwc.c | 140 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 D | intel_soc_pmic_mrfld.c | 77 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 D | mt6397-core.c | 197 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 D | hi6421-pmic-core.c | 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() 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 D | samsung,s5m8767.yaml | 21 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 D | max8998.txt | 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 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 D | samsung,s2mps11.yaml | 23 - 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 D | hisilicon,hi655x.txt | 15 - 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 D | maxim,max8997.yaml | 22 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 D | palmas-pmic.txt | 12 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 D | stpmic1_wdt.c | 31 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 D | vc.c | 146 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 D | vp.c | 19 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 D | intel_bxt_pmic_thermal.c | 158 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 D | pm8004.dtsi | 7 pm8004_lsid4: pmic@4 { 8 compatible = "qcom,pm8004", "qcom,spmi-pmic"; 14 pm8004_lsid5: pmic@5 { 15 compatible = "qcom,pm8004", "qcom,spmi-pmic";
|