Lines Matching full:act8865
3 * act8865-regulator.c - Voltage regulation for active-semi ACT88xx PMUs
16 #include <linux/regulator/act8865.h>
90 * ACT8865 Global Register Map.
139 * ACT8865 voltage number
144 struct act8865 { struct
533 ACT88xx_REG("DCDC_REG1", ACT8865, DCDC1, VSET1, "vp1"),
534 ACT88xx_REG("DCDC_REG2", ACT8865, DCDC2, VSET1, "vp2"),
535 ACT88xx_REG("DCDC_REG3", ACT8865, DCDC3, VSET1, "vp3"),
536 ACT88xx_LDO("LDO_REG1", ACT8865, LDO1, VSET, "inl45"),
537 ACT88xx_LDO("LDO_REG2", ACT8865, LDO2, VSET, "inl45"),
538 ACT88xx_LDO("LDO_REG3", ACT8865, LDO3, VSET, "inl67"),
539 ACT88xx_LDO("LDO_REG4", ACT8865, LDO4, VSET, "inl67"),
543 ACT88xx_REG("DCDC_REG1", ACT8865, DCDC1, VSET2, "vp1"),
544 ACT88xx_REG("DCDC_REG2", ACT8865, DCDC2, VSET2, "vp2"),
545 ACT88xx_REG("DCDC_REG3", ACT8865, DCDC3, VSET2, "vp3"),
546 ACT88xx_LDO("LDO_REG1", ACT8865, LDO1, VSET, "inl45"),
547 ACT88xx_LDO("LDO_REG2", ACT8865, LDO2, VSET, "inl45"),
548 ACT88xx_LDO("LDO_REG3", ACT8865, LDO3, VSET, "inl67"),
549 ACT88xx_LDO("LDO_REG4", ACT8865, LDO4, VSET, "inl67"),
556 { .compatible = "active-semi,act8865", .data = (void *)ACT8865 },
578 struct act8865 *act8865; in act8865_power_off() local
580 act8865 = i2c_get_clientdata(act8865_i2c_client); in act8865_power_off()
581 regmap_write(act8865->regmap, act8865->off_reg, act8865->off_mask); in act8865_power_off()
661 struct act8865 *act8865; in act8865_pmic_probe() local
697 case ACT8865: in act8865_pmic_probe()
714 act8865 = devm_kzalloc(dev, sizeof(struct act8865), GFP_KERNEL); in act8865_pmic_probe()
715 if (!act8865) in act8865_pmic_probe()
718 act8865->regmap = devm_regmap_init_i2c(client, regmap_config); in act8865_pmic_probe()
719 if (IS_ERR(act8865->regmap)) { in act8865_pmic_probe()
720 ret = PTR_ERR(act8865->regmap); in act8865_pmic_probe()
728 act8865->off_reg = off_reg; in act8865_pmic_probe()
729 act8865->off_mask = off_mask; in act8865_pmic_probe()
743 config.driver_data = act8865; in act8865_pmic_probe()
744 config.regmap = act8865->regmap; in act8865_pmic_probe()
764 ret = act8600_charger_probe(dev, act8865->regmap); in act8865_pmic_probe()
772 i2c_set_clientdata(client, act8865); in act8865_pmic_probe()
774 /* Unlock expert registers for ACT8865. */ in act8865_pmic_probe()
775 return type != ACT8865 ? 0 : regmap_write(act8865->regmap, in act8865_pmic_probe()
782 { .name = "act8865", .driver_data = ACT8865 },
789 .name = "act8865",