Lines Matching +full:atc2603c +full:- +full:regulator

1 // SPDX-License-Identifier: GPL-2.0+
3 // Regulator driver for ATC260x PMICs
12 #include <linux/regulator/driver.h>
50 return data->voltage_time_dcdc; in atc260x_dcdc_set_voltage_time_sel()
62 return data->voltage_time_ldo; in atc260x_ldo_set_voltage_time_sel()
151 * in the vendor's driver implementation (xapp-le-kernel).
474 struct atc260x *atc260x = dev_get_drvdata(pdev->dev.parent); in atc260x_regulator_probe()
475 struct device *dev = atc260x->dev; in atc260x_regulator_probe()
483 atc260x_data = devm_kzalloc(&pdev->dev, sizeof(*atc260x_data), GFP_KERNEL); in atc260x_regulator_probe()
485 return -ENOMEM; in atc260x_regulator_probe()
487 atc260x_data->voltage_time_dcdc = 350; in atc260x_regulator_probe()
488 atc260x_data->voltage_time_ldo = 800; in atc260x_regulator_probe()
490 switch (atc260x->ic_type) { in atc260x_regulator_probe()
491 case ATC2603C: in atc260x_regulator_probe()
494 atc2603c_ver_b = atc260x->ic_ver == ATC260X_B; in atc260x_regulator_probe()
497 atc260x_data->voltage_time_dcdc = 250; in atc260x_regulator_probe()
502 dev_err(dev, "unsupported ATC260X ID %d\n", atc260x->ic_type); in atc260x_regulator_probe()
503 return -EINVAL; in atc260x_regulator_probe()
507 config.regmap = atc260x->regmap; in atc260x_regulator_probe()
513 atc260x_rdev = devm_regulator_register(&pdev->dev, in atc260x_regulator_probe()
517 atc260x_rdev = devm_regulator_register(&pdev->dev, in atc260x_regulator_probe()
521 dev_err(dev, "failed to register regulator: %d\n", i); in atc260x_regulator_probe()
532 .name = "atc260x-regulator",
538 MODULE_DESCRIPTION("Regulator driver for ATC260x PMICs");