Lines Matching +full:ovp +full:- +full:enable
1 // SPDX-License-Identifier: GPL-2.0+
3 // mpq7920.c - regulator driver for mps mpq7920
22 ((MPQ7920_VOLT_MAX - MPQ7920_BUCK_VOLT_MIN)/MPQ7920_VOLT_STEP + 1)
24 ((MPQ7920_VOLT_MAX - MPQ7920_LDO_VOLT_MIN)/MPQ7920_VOLT_STEP + 1)
42 .enable_mask = BIT(MPQ7920_REGULATOR_EN_OFFSET - \
71 .enable_mask = BIT(MPQ7920_REGULATOR_EN_OFFSET - \
135 .enable = regulator_enable_regmap,
146 .enable = regulator_enable_regmap,
159 .enable = regulator_enable_regmap,
189 * 00-01: Reserved
198 return -EINVAL; in mpq7920_set_ramp_delay()
205 return regmap_update_bits(rdev->regmap, MPQ7920_REG_CTL0, in mpq7920_set_ramp_delay()
215 struct mpq7920_regulator_info *info = config->driver_data; in mpq7920_parse_cb()
216 struct regulator_desc *rdesc = &info->rdesc[desc->id]; in mpq7920_parse_cb()
218 if (of_property_read_bool(np, "mps,buck-ovp-disable")) { in mpq7920_parse_cb()
219 regmap_update_bits(config->regmap, in mpq7920_parse_cb()
220 MPQ7920_BUCK1_REG_B + (rdesc->id * 4), in mpq7920_parse_cb()
224 ret = of_property_read_u8(np, "mps,buck-phase-delay", &val); in mpq7920_parse_cb()
226 regmap_update_bits(config->regmap, in mpq7920_parse_cb()
227 MPQ7920_BUCK1_REG_C + (rdesc->id * 4), in mpq7920_parse_cb()
232 ret = of_property_read_u8(np, "mps,buck-softstart", &val); in mpq7920_parse_cb()
234 rdesc->soft_start_val_on = (val & 3) << 2; in mpq7920_parse_cb()
243 struct device_node *np = dev->of_node; in mpq7920_parse_dt()
252 ret = of_property_read_u8(np, "mps,switch-freq", &freq); in mpq7920_parse_dt()
254 regmap_update_bits(info->regmap, MPQ7920_REG_CTL0, in mpq7920_parse_dt()
264 struct device *dev = &client->dev; in mpq7920_i2c_probe()
274 return -ENOMEM; in mpq7920_i2c_probe()
276 info->rdesc = mpq7920_regulators_desc; in mpq7920_i2c_probe()
284 info->regmap = regmap; in mpq7920_i2c_probe()
285 if (client->dev.of_node) in mpq7920_i2c_probe()
286 mpq7920_parse_dt(&client->dev, info); in mpq7920_i2c_probe()