diff options
| author | Chen-Yu Tsai <wenst@chromium.org> | 2026-03-26 16:10:49 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-03-30 15:45:37 +0100 |
| commit | 292d64fb98a267450113b696f1ffcc24548cc2fe (patch) | |
| tree | 8a0461d60f9ba1655c6d48d87b43b63a653c5cf8 /drivers/regulator | |
| parent | d15d0f1a27b29cc39bce2a7cdcde46c40db68d07 (diff) | |
regulator: mt6315: Add regulator supplies
The MT6315 family of PMICs has 4 buck regulators. Each regulator has a
separate supply.
Add these supplies to the driver.
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://patch.msgid.link/20260326081050.1115201-3-wenst@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
| -rw-r--r-- | drivers/regulator/mt6315-regulator.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/regulator/mt6315-regulator.c b/drivers/regulator/mt6315-regulator.c index d3f93aae0fc5..231e64fb0596 100644 --- a/drivers/regulator/mt6315-regulator.c +++ b/drivers/regulator/mt6315-regulator.c @@ -31,10 +31,11 @@ struct mt6315_chip { struct regmap *regmap; }; -#define MT_BUCK(_name, _bid, _vsel) \ +#define MT_BUCK(_name, _bid, _supply, _vsel) \ [_bid] = { \ .desc = { \ .name = _name, \ + .supply_name = _supply, \ .of_match = of_match_ptr(_name), \ .regulators_node = "regulators", \ .ops = &mt6315_volt_range_ops, \ @@ -190,10 +191,10 @@ static const struct regulator_ops mt6315_volt_range_ops = { }; static const struct mt6315_regulator_info mt6315_regulators[MT6315_VBUCK_MAX] = { - MT_BUCK("vbuck1", MT6315_VBUCK1, MT6315_BUCK_TOP_ELR0), - MT_BUCK("vbuck2", MT6315_VBUCK2, MT6315_BUCK_TOP_ELR2), - MT_BUCK("vbuck3", MT6315_VBUCK3, MT6315_BUCK_TOP_ELR4), - MT_BUCK("vbuck4", MT6315_VBUCK4, MT6315_BUCK_TOP_ELR6), + MT_BUCK("vbuck1", MT6315_VBUCK1, "pvdd1", MT6315_BUCK_TOP_ELR0), + MT_BUCK("vbuck2", MT6315_VBUCK2, "pvdd2", MT6315_BUCK_TOP_ELR2), + MT_BUCK("vbuck3", MT6315_VBUCK3, "pvdd3", MT6315_BUCK_TOP_ELR4), + MT_BUCK("vbuck4", MT6315_VBUCK4, "pvdd4", MT6315_BUCK_TOP_ELR6), }; static const struct regmap_config mt6315_regmap_config = { |
