Symbol: pf9453
drivers/regulator/pf9453-regulator.c
239
static int pf9453_pmic_write(struct pf9453 *pf9453, unsigned int reg, u8 mask, unsigned int val)
drivers/regulator/pf9453-regulator.c
251
ret = regmap_read(pf9453->regmap, reg, &rxBuf);
drivers/regulator/pf9453-regulator.c
253
dev_err(pf9453->dev, "Read reg=%0x error!\n", reg);
drivers/regulator/pf9453-regulator.c
261
ret = regmap_raw_write(pf9453->regmap, PF9453_REG_LOCK, &key, 1U);
drivers/regulator/pf9453-regulator.c
263
dev_err(pf9453->dev, "Write reg=%0x error!\n", reg);
drivers/regulator/pf9453-regulator.c
267
ret = regmap_raw_write(pf9453->regmap, reg, &data, 1U);
drivers/regulator/pf9453-regulator.c
269
dev_err(pf9453->dev, "Write reg=%0x error!\n", reg);
drivers/regulator/pf9453-regulator.c
274
ret = regmap_raw_write(pf9453->regmap, PF9453_REG_LOCK, &key, 1U);
drivers/regulator/pf9453-regulator.c
276
dev_err(pf9453->dev, "Write reg=%0x error!\n", reg);
drivers/regulator/pf9453-regulator.c
280
ret = regmap_raw_write(pf9453->regmap, reg, &data, 1U);
drivers/regulator/pf9453-regulator.c
282
dev_err(pf9453->dev, "Write reg=%0x error!\n", reg);
drivers/regulator/pf9453-regulator.c
304
struct pf9453 *pf9453 = dev_get_drvdata(rdev->dev.parent);
drivers/regulator/pf9453-regulator.c
315
return pf9453_pmic_write(pf9453, rdev->desc->enable_reg, rdev->desc->enable_mask, val);
drivers/regulator/pf9453-regulator.c
331
struct pf9453 *pf9453 = dev_get_drvdata(rdev->dev.parent);
drivers/regulator/pf9453-regulator.c
342
return pf9453_pmic_write(pf9453, rdev->desc->enable_reg, rdev->desc->enable_mask, val);
drivers/regulator/pf9453-regulator.c
359
struct pf9453 *pf9453 = dev_get_drvdata(rdev->dev.parent);
drivers/regulator/pf9453-regulator.c
363
ret = pf9453_pmic_write(pf9453, rdev->desc->vsel_reg, rdev->desc->vsel_mask, sel);
drivers/regulator/pf9453-regulator.c
368
ret = pf9453_pmic_write(pf9453, rdev->desc->apply_reg,
drivers/regulator/pf9453-regulator.c
419
struct pf9453 *pf9453 = dev_get_drvdata(rdev->dev.parent);
drivers/regulator/pf9453-regulator.c
437
return pf9453_pmic_write(pf9453, rdev->desc->ramp_reg,
drivers/regulator/pf9453-regulator.c
512
struct device_node *np, struct pf9453 *pf9453,
drivers/regulator/pf9453-regulator.c
530
ret = pf9453_pmic_write(pf9453, reg, mask, i);
drivers/regulator/pf9453-regulator.c
544
struct pf9453 *pf9453 = dev_get_drvdata(cfg->dev);
drivers/regulator/pf9453-regulator.c
567
ret = buck_set_dvs(desc, np, pf9453, prop, reg, mask);
drivers/regulator/pf9453-regulator.c
724
struct pf9453 *pf9453 = data;
drivers/regulator/pf9453-regulator.c
725
struct regmap *regmap = pf9453->regmap;
drivers/regulator/pf9453-regulator.c
731
dev_err(pf9453->dev, "Failed to read INT1(%d)\n", ret);
drivers/regulator/pf9453-regulator.c
736
dev_warn(pf9453->dev, "IRQ_RSTB interrupt.\n");
drivers/regulator/pf9453-regulator.c
739
dev_warn(pf9453->dev, "IRQ_ONKEY interrupt.\n");
drivers/regulator/pf9453-regulator.c
742
dev_warn(pf9453->dev, "VRFLT1 interrupt.\n");
drivers/regulator/pf9453-regulator.c
745
dev_warn(pf9453->dev, "IRQ_RESETKEY interrupt.\n");
drivers/regulator/pf9453-regulator.c
748
dev_warn(pf9453->dev, "LOWVSYS interrupt.\n");
drivers/regulator/pf9453-regulator.c
751
dev_warn(pf9453->dev, "IRQ_THERM_100 interrupt.\n");
drivers/regulator/pf9453-regulator.c
754
dev_warn(pf9453->dev, "IRQ_THERM_80 interrupt.\n");
drivers/regulator/pf9453-regulator.c
765
struct pf9453 *pf9453;
drivers/regulator/pf9453-regulator.c
771
pf9453 = devm_kzalloc(&i2c->dev, sizeof(struct pf9453), GFP_KERNEL);
drivers/regulator/pf9453-regulator.c
772
if (!pf9453)
drivers/regulator/pf9453-regulator.c
775
pf9453->regmap = devm_regmap_init_i2c(i2c, &pf9453_regmap_config);
drivers/regulator/pf9453-regulator.c
776
if (IS_ERR(pf9453->regmap))
drivers/regulator/pf9453-regulator.c
777
return dev_err_probe(&i2c->dev, PTR_ERR(pf9453->regmap),
drivers/regulator/pf9453-regulator.c
780
pf9453->irq = i2c->irq;
drivers/regulator/pf9453-regulator.c
781
pf9453->dev = &i2c->dev;
drivers/regulator/pf9453-regulator.c
783
dev_set_drvdata(&i2c->dev, pf9453);
drivers/regulator/pf9453-regulator.c
785
ret = regmap_read(pf9453->regmap, PF9453_REG_DEV_ID, &device_id);
drivers/regulator/pf9453-regulator.c
800
config.regmap = pf9453->regmap;
drivers/regulator/pf9453-regulator.c
801
config.dev = pf9453->dev;
drivers/regulator/pf9453-regulator.c
803
rdev = devm_regulator_register(pf9453->dev, desc, &config);
drivers/regulator/pf9453-regulator.c
805
return dev_err_probe(pf9453->dev, PTR_ERR(rdev),
drivers/regulator/pf9453-regulator.c
811
ret = devm_request_threaded_irq(pf9453->dev, pf9453->irq, NULL, pf9453_irq_handler,
drivers/regulator/pf9453-regulator.c
813
"pf9453-irq", pf9453);
drivers/regulator/pf9453-regulator.c
815
return dev_err_probe(pf9453->dev, ret, "Failed to request IRQ: %d\n", pf9453->irq);
drivers/regulator/pf9453-regulator.c
818
ret = pf9453_pmic_write(pf9453, PF9453_REG_INT1_MASK,
drivers/regulator/pf9453-regulator.c
830
ret = pf9453_pmic_write(pf9453, PF9453_REG_RESET_CTRL, WDOG_B_CFG_MASK, reset_ctrl);
drivers/regulator/pf9453-regulator.c
839
pf9453->sd_vsel_gpio = gpiod_get_optional(pf9453->dev, "sd-vsel", GPIOD_OUT_HIGH);
drivers/regulator/pf9453-regulator.c
841
if (IS_ERR(pf9453->sd_vsel_gpio))
drivers/regulator/pf9453-regulator.c
842
return dev_err_probe(&i2c->dev, PTR_ERR(pf9453->sd_vsel_gpio),