Lines Matching +full:standard +full:- +full:vt

1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/regulator/mt6380-regulator.h>
79 * @desc: standard fields of regulator description
102 .n_voltages = ((max) - (min)) / (step) + 1, \
197 return -EINVAL; in mt6380_regulator_set_mode()
200 val <<= ffs(info->modeset_mask) - 1; in mt6380_regulator_set_mode()
202 ret = regmap_update_bits(rdev->regmap, info->modeset_reg, in mt6380_regulator_set_mode()
203 info->modeset_mask, val); in mt6380_regulator_set_mode()
215 ret = regmap_read(rdev->regmap, info->modeset_reg, &val); in mt6380_regulator_get_mode()
219 val &= info->modeset_mask; in mt6380_regulator_get_mode()
220 val >>= ffs(info->modeset_mask) - 1; in mt6380_regulator_get_mode()
230 return -EINVAL; in mt6380_regulator_get_mode()
273 MT6380_BUCK("buck-vcore1", VCPU, 600000, 1393750, 6250,
277 MT6380_BUCK("buck-vcore", VCORE, 600000, 1393750, 6250,
280 MT6380_BUCK("buck-vrf", VRF, 1200000, 1575000, 25000,
283 MT6380_LDO("ldo-vm", VMLDO, ldo_volt_table1, MT6380_LDO_CTRL_0,
285 MT6380_LDO("ldo-va", VALDO, ldo_volt_table2, MT6380_LDO_CTRL_0,
287 MT6380_REG_FIXED("ldo-vphy", VPHYLDO, MT6380_LDO_CTRL_0, 7, 1800000,
289 MT6380_LDO("ldo-vddr", VDDRLDO, ldo_volt_table3, MT6380_LDO_CTRL_0,
291 MT6380_LDO("ldo-vt", VTLDO, ldo_volt_table4, MT6380_LDO_CTRL_0, 3,
297 struct regmap *regmap = dev_get_regmap(pdev->dev.parent, NULL); in mt6380_regulator_probe()
303 config.dev = &pdev->dev; in mt6380_regulator_probe()
306 rdev = devm_regulator_register(&pdev->dev, in mt6380_regulator_probe()
310 dev_err(&pdev->dev, "failed to register %s\n", in mt6380_regulator_probe()
319 {"mt6380-regulator", 0},
325 { .compatible = "mediatek,mt6380-regulator", },
332 .name = "mt6380-regulator",