* [PATCH v2 1/2] regulator: dt-bindings: mt6315: Add regulator supplies
2026-03-26 8:10 [PATCH v2 0/2] regulator: mt6315: add regulator supplies Chen-Yu Tsai
@ 2026-03-26 8:10 ` Chen-Yu Tsai
2026-03-26 18:35 ` Conor Dooley
2026-03-26 8:10 ` [PATCH v2 2/2] regulator: " Chen-Yu Tsai
2026-03-30 14:45 ` [PATCH v2 0/2] regulator: mt6315: add " Mark Brown
2 siblings, 1 reply; 5+ messages in thread
From: Chen-Yu Tsai @ 2026-03-26 8:10 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Matthias Brugger, AngeloGioacchino Del Regno
Cc: linux-kernel, Chen-Yu Tsai, linux-arm-kernel, linux-mediatek,
devicetree
The MT6315 family of PMICs has 4 buck regulators. Each regulator has a
separate supply.
Add these supplies to the device tree binding.
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
---
Changes since v1:
- Moved *-supply to top level, same level as compatible
---
.../bindings/regulator/mt6315-regulator.yaml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml
index fa6743bb269d..1c63265907f1 100644
--- a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml
@@ -25,6 +25,15 @@ properties:
reg:
maxItems: 1
+ pvdd1-supply:
+ description: Supply for regulator vbuck1
+ pvdd2-supply:
+ description: Supply for regulator vbuck2
+ pvdd3-supply:
+ description: Supply for regulator vbuck3
+ pvdd4-supply:
+ description: Supply for regulator vbuck4
+
regulators:
type: object
description: List of regulators and its properties
@@ -49,8 +58,11 @@ examples:
pmic@6 {
compatible = "mediatek,mt6315-regulator";
reg = <0x6 0>;
+ pvdd1-supply = <&pp4200_z2>;
+ pvdd3-supply = <&pp4200_z2>;
regulators {
+
vbuck1 {
regulator-min-microvolt = <300000>;
regulator-max-microvolt = <1193750>;
--
2.53.0.1018.g2bb0e51243-goog
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH v2 2/2] regulator: mt6315: Add regulator supplies
2026-03-26 8:10 [PATCH v2 0/2] regulator: mt6315: add regulator supplies Chen-Yu Tsai
2026-03-26 8:10 ` [PATCH v2 1/2] regulator: dt-bindings: mt6315: Add " Chen-Yu Tsai
@ 2026-03-26 8:10 ` Chen-Yu Tsai
2026-03-30 14:45 ` [PATCH v2 0/2] regulator: mt6315: add " Mark Brown
2 siblings, 0 replies; 5+ messages in thread
From: Chen-Yu Tsai @ 2026-03-26 8:10 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Matthias Brugger, AngeloGioacchino Del Regno
Cc: linux-kernel, Chen-Yu Tsai, linux-arm-kernel, linux-mediatek,
devicetree
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>
---
drivers/regulator/mt6315-regulator.c | 11 ++++++-----
1 file 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 = {
--
2.53.0.1018.g2bb0e51243-goog
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH v2 0/2] regulator: mt6315: add regulator supplies
2026-03-26 8:10 [PATCH v2 0/2] regulator: mt6315: add regulator supplies Chen-Yu Tsai
2026-03-26 8:10 ` [PATCH v2 1/2] regulator: dt-bindings: mt6315: Add " Chen-Yu Tsai
2026-03-26 8:10 ` [PATCH v2 2/2] regulator: " Chen-Yu Tsai
@ 2026-03-30 14:45 ` Mark Brown
2 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2026-03-30 14:45 UTC (permalink / raw)
To: Liam Girdwood, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Chen-Yu Tsai
Cc: linux-kernel, linux-arm-kernel, linux-mediatek, devicetree
On Thu, 26 Mar 2026 16:10:47 +0800, Chen-Yu Tsai wrote:
> regulator: mt6315: add regulator supplies
>
> Hi,
>
> This is v2 of the "Add MT6315 regulator supplies" series.
>
> Changes since v1:
> - Link to v1: https://lore.kernel.org/all/20260324053030.4077453-1-wenst@chromium.org/
> - Move supplies to top level node, at the same level as the compatible
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-7.1
Thanks!
[1/2] regulator: dt-bindings: mt6315: Add regulator supplies
https://git.kernel.org/broonie/regulator/c/d15d0f1a27b2
[2/2] regulator: mt6315: Add regulator supplies
https://git.kernel.org/broonie/regulator/c/292d64fb98a2
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 5+ messages in thread