Lines Matching +full:dvfsrc +full:- +full:vcore
1 // SPDX-License-Identifier: GPL-2.0
13 #include <linux/soc/mediatek/dvfsrc.h>
40 return rdev_get_dev(rdev)->parent; in to_dvfs_regulator_dev()
45 return to_dvfs_regulator_dev(rdev)->parent; in to_dvfsrc_dev()
58 return -EINVAL; in dvfsrc_get_cmd()
111 MTK_DVFSRC_VREG("dvfsrc-vcore", VCORE, mt6873_voltages),
112 MTK_DVFSRC_VREG("dvfsrc-vscp", VSCP, mt6873_voltages),
126 MTK_DVFSRC_VREG("dvfsrc-vcore", VCORE, mt8183_voltages),
142 MTK_DVFSRC_VREG("dvfsrc-vcore", VCORE, mt8195_voltages),
143 MTK_DVFSRC_VREG("dvfsrc-vscp", VSCP, mt8195_voltages),
153 struct regulator_config config = { .dev = &pdev->dev }; in dvfsrc_vcore_regulator_probe()
157 pdata = device_get_match_data(&pdev->dev); in dvfsrc_vcore_regulator_probe()
159 return -EINVAL; in dvfsrc_vcore_regulator_probe()
161 for (i = 0; i < pdata->size; i++) { in dvfsrc_vcore_regulator_probe()
162 const struct regulator_desc *vrdesc = &pdata->descs[i]; in dvfsrc_vcore_regulator_probe()
165 rdev = devm_regulator_register(&pdev->dev, vrdesc, &config); in dvfsrc_vcore_regulator_probe()
167 return dev_err_probe(&pdev->dev, PTR_ERR(rdev), in dvfsrc_vcore_regulator_probe()
168 "failed to register %s\n", vrdesc->name); in dvfsrc_vcore_regulator_probe()
175 { .compatible = "mediatek,mt6873-dvfsrc-regulator", .data = &mt6873_data },
176 { .compatible = "mediatek,mt8183-dvfsrc-regulator", .data = &mt8183_data },
177 { .compatible = "mediatek,mt8192-dvfsrc-regulator", .data = &mt6873_data },
178 { .compatible = "mediatek,mt8195-dvfsrc-regulator", .data = &mt8195_data },
185 .name = "mtk-dvfsrc-regulator",