Lines Matching +full:buck +full:- +full:boost

1 // SPDX-License-Identifier: GPL-2.0-only
82 ret = regmap_read(rdev->regmap, MAX77857_REG_INT_SRC, &val); in max77857_get_status()
101 ret = regmap_read(rdev->regmap, MAX77857_REG_CONT3, &regval); in max77857_get_mode()
111 ret = regmap_read(rdev->regmap, MAX77859_REG_CONT2, &regval); in max77857_get_mode()
120 return -EINVAL; in max77857_get_mode()
143 return -EINVAL; in max77857_set_mode()
148 return regmap_set_bits(rdev->regmap, reg, val); in max77857_set_mode()
150 return regmap_clear_bits(rdev->regmap, reg, val); in max77857_set_mode()
152 return -EINVAL; in max77857_set_mode()
162 ret = regmap_read(rdev->regmap, MAX77857_REG_INT_SRC, &val); in max77857_get_error_flags()
200 ret = regmap_bulk_write(rdev->regmap, MAX77859_REG_CONT3, &reg, 2); in max77859_set_voltage_sel()
205 return regmap_set_bits(rdev->regmap, MAX77859_REG_CONT3, in max77859_set_voltage_sel()
214 ret = regmap_bulk_read(rdev->regmap, MAX77859_REG_CONT3, &reg, 2); in max77859_get_voltage_sel()
226 return -EINVAL; in max77859_set_current_limit()
228 selector = 0x12 + (max_uA - MAX77859_CURRENT_MIN) / MAX77859_CURRENT_STEP; in max77859_set_current_limit()
232 return regmap_write(rdev->regmap, MAX77859_REG_CONT5, selector); in max77859_set_current_limit()
240 ret = regmap_read(rdev->regmap, MAX77859_REG_CONT5, &selector); in max77859_get_current_limit()
250 return MAX77859_CURRENT_MIN + (selector - 0x12) * MAX77859_CURRENT_STEP; in max77859_get_current_limit()
325 device_property_read_u32(dev, "adi,rtop-ohms", &rtop); in max77857_calc_range()
326 device_property_read_u32(dev, "adi,rbot-ohms", &rbot); in max77857_calc_range()
344 range->step = DIV_ROUND_CLOSEST(vref_step * (rbot + rtop), rbot); in max77857_calc_range()
345 range->min = range->step * range->min_sel; in max77857_calc_range()
351 struct device *dev = &client->dev; in max77857_probe()
361 return -EINVAL; in max77857_probe()
363 id = i2c_id->driver_data; in max77857_probe()
384 device_property_read_u32(dev, "adi,switch-frequency-hz", &switch_freq); in max77857_probe()
417 cfg.init_data = of_get_regulator_init_data(dev, dev->of_node, in max77857_probe()
420 return -ENOMEM; in max77857_probe()
458 MODULE_DESCRIPTION("Analog Devices MAX77857 Buck-Boost Converter Driver");