Lines Matching +full:max77650 +full:- +full:regulator

1 // SPDX-License-Identifier: GPL-2.0
6 // Regulator driver for MAXIM 77650/77651 charger/power-supply.
9 #include <linux/mfd/max77650.h>
13 #include <linux/regulator/driver.h>
71 rdesc = container_of(rdev->desc, struct max77650_regulator_desc, desc); in max77650_regulator_is_enabled()
74 rv = regmap_read(map, rdesc->regB, &val); in max77650_regulator_is_enabled()
88 rdesc = container_of(rdev->desc, struct max77650_regulator_desc, desc); in max77650_regulator_enable()
91 return regmap_update_bits(map, rdesc->regB, in max77650_regulator_enable()
101 rdesc = container_of(rdev->desc, struct max77650_regulator_desc, desc); in max77650_regulator_disable()
104 return regmap_update_bits(map, rdesc->regB, in max77650_regulator_disable()
133 /* Special case for max77651 SBB1 - pickable linear-range voltage mapping. */
151 .supply_name = "in-ldo",
177 .supply_name = "in-sbb0",
207 .supply_name = "in-sbb1",
237 .supply_name = "in-sbb1",
270 .supply_name = "in-sbb0",
300 .supply_name = "in-sbb0",
336 dev = &pdev->dev; in max77650_regulator_probe()
337 parent = dev->parent; in max77650_regulator_probe()
339 if (!dev->of_node) in max77650_regulator_probe()
340 dev->of_node = parent->of_node; in max77650_regulator_probe()
345 return -ENOMEM; in max77650_regulator_probe()
349 return -ENODEV; in max77650_regulator_probe()
370 return -ENODEV; in max77650_regulator_probe()
378 rdev = devm_regulator_register(dev, &rdesc->desc, &config); in max77650_regulator_probe()
387 { .compatible = "maxim,max77650-regulator" },
394 .name = "max77650-regulator",
402 MODULE_DESCRIPTION("MAXIM 77650/77651 regulator driver");
405 MODULE_ALIAS("platform:max77650-regulator");