From: Bhargav Joshi <rougueprince47@gmail.com>
To: sravanhome@gmail.com, lgirdwood@gmail.com, broonie@kernel.org,
krzk+dt@kernel.org, robh@kernel.org, conor+dt@kernel.org,
m.reichl@fivetechno.de
Cc: daniel.baluta@nxp.com, simona.toaca@nxp.com, d-gole@ti.com,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
rougueprince47@gmail.com
Subject: [RFC PATCH] dt-bindings: regulator: mps,mp8859: convert to DT schema
Date: Fri, 13 Mar 2026 17:51:36 +0530 [thread overview]
Message-ID: <20260313122136.9349-1-rougueprince47@gmail.com> (raw)
Convert the Monolithic Power Systems MP8859 voltage regulator binding
from legacy text format to DT schema.
Signed-off-by: Bhargav Joshi <rougueprince47@gmail.com>
---
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..144876aabd25
--- /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 <m.reichl@fivetechno.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
next reply other threads:[~2026-03-13 12:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-13 12:21 Bhargav Joshi [this message]
2026-03-13 13:47 ` [RFC PATCH] dt-bindings: regulator: mps,mp8859: convert to DT schema Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260313122136.9349-1-rougueprince47@gmail.com \
--to=rougueprince47@gmail.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=d-gole@ti.com \
--cc=daniel.baluta@nxp.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=m.reichl@fivetechno.de \
--cc=robh@kernel.org \
--cc=simona.toaca@nxp.com \
--cc=sravanhome@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox