[PATCH v2] regulator: dt-bindings: mps,mp8859: convert to DT schema

Bhargav Joshi posted 1 patch 1 week ago
.../devicetree/bindings/regulator/mp8859.txt  | 22 --------
.../bindings/regulator/mps,mp8859.yaml        | 54 +++++++++++++++++++
2 files changed, 54 insertions(+), 22 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/regulator/mp8859.txt
create mode 100644 Documentation/devicetree/bindings/regulator/mps,mp8859.yaml
[PATCH v2] regulator: dt-bindings: mps,mp8859: convert to DT schema
Posted by Bhargav Joshi 1 week ago
Convert the Monolithic Power Systems MP8859 voltage regulator binding
from legacy text format to DT schema. This patch does not change any
functionality, the bindings remain the same.

Signed-off-by: Bhargav Joshi <rougueprince47@gmail.com>
---
Changes in v2:
-changed markus email in maintainer as requested by him
-changed subject line to match standard style

Note:  this patch is part of the process for applying to GSoC device
tree bindings conversion project #
https://github.com/LinuxFoundationGSoC/ProjectIdeas/wiki/GSoC-2026-Device-Tree-Bindings

 .../devicetree/bindings/regulator/mp8859.txt  | 22 --------
 .../bindings/regulator/mps,mp8859.yaml        | 54 +++++++++++++++++++
 2 files changed, 54 insertions(+), 22 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/regulator/mp8859.txt
 create mode 100644 Documentation/devicetree/bindings/regulator/mps,mp8859.yaml

diff --git a/Documentation/devicetree/bindings/regulator/mp8859.txt b/Documentation/devicetree/bindings/regulator/mp8859.txt
deleted file mode 100644
index 74ad69730989..000000000000
--- a/Documentation/devicetree/bindings/regulator/mp8859.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-Monolithic Power Systems MP8859 voltage regulator
-
-Required properties:
-- compatible: "mps,mp8859";
-- reg: I2C slave address.
-
-Optional subnode for regulator: "mp8859_dcdc", using common regulator
-bindings given in <Documentation/devicetree/bindings/regulator/regulator.txt>.
-
-Example:
-
-	mp8859: regulator@66 {
-		compatible = "mps,mp8859";
-		reg = <0x66>;
-		dc_12v: mp8859_dcdc {
-			regulator-name = "dc_12v";
-			regulator-min-microvolt = <12000000>;
-			regulator-max-microvolt = <12000000>;
-			regulator-boot-on;
-			regulator-always-on;
-		};
-	};
diff --git a/Documentation/devicetree/bindings/regulator/mps,mp8859.yaml b/Documentation/devicetree/bindings/regulator/mps,mp8859.yaml
new file mode 100644
index 000000000000..523498adf003
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/mps,mp8859.yaml
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/regulator/mps,mp8859.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Monolithic Power Systems MP8859 Voltage Regulator
+
+maintainers:
+  - Markus Reichl <reichl@t-online.de>
+
+description:
+  The MP8859 is a synchronous, 4-switch, integrated buck-boost converter
+  capable of regulating the output voltage from 2.8V to 22V wide input voltage
+  range with high efficiency.
+
+properties:
+  compatible:
+    const: mps,mp8859
+
+  reg:
+    maxItems: 1
+
+  mp8859_dcdc:
+    $ref: /schemas/regulator/regulator.yaml#
+    type: object
+    description: DCDC regulator subnode
+    unevaluatedProperties: false
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        regulator@66 {
+            compatible = "mps,mp8859";
+            reg = <0x66>;
+
+            mp8859_dcdc {
+                regulator-name = "dc_12v";
+                regulator-min-microvolt = <12000000>;
+                regulator-max-microvolt = <12000000>;
+                regulator-boot-on;
+                regulator-always-on;
+            };
+        };
+    };
-- 
2.53.0
Re: [PATCH v2] regulator: dt-bindings: mps,mp8859: convert to DT schema
Posted by Mark Brown 1 week ago
On Thu, 26 Mar 2026 04:35:59 +0530, Bhargav Joshi wrote:
> regulator: dt-bindings: mps,mp8859: convert to DT schema

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-7.1

Thanks!

[1/1] regulator: dt-bindings: mps,mp8859: convert to DT schema
      https://git.kernel.org/broonie/regulator/c/32a4cd3d451d

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
Re: [PATCH v2] regulator: dt-bindings: mps,mp8859: convert to DT schema
Posted by Krzysztof Kozlowski 1 week ago
On Thu, Mar 26, 2026 at 04:35:59AM +0530, Bhargav Joshi wrote:
> Convert the Monolithic Power Systems MP8859 voltage regulator binding
> from legacy text format to DT schema. This patch does not change any
> functionality, the bindings remain the same.
> 
> Signed-off-by: Bhargav Joshi <rougueprince47@gmail.com>
> ---
> Changes in v2:
> -changed markus email in maintainer as requested by him
> -changed subject line to match standard style

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

Best regards,
Krzysztof