mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: regulator: add Will Semiconductor WL2868C PMIC
@ 2026-10-27  5:10 Qianhui Xu
  2026-10-27 17:58 ` Mark Brown
  2026-10-27 18:04 ` Krzysztof Kozlowski
  0 siblings, 2 replies; 7+ messages in thread
From: Qianhui Xu @ 2026-10-27  5:10 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-media,
	devicetree, linux-kernel

Add DT binding for the Will Semiconductor WL2868C camera PMIC with
seven programmable LDOs.

Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
 MAINTAINERS                                        |    6 ++
 .../bindings/regulator/willsemi,wl2868c.yaml       |   67 ++++++++++++++++++++
 2 files changed, 73 insertions(+)
---
 .../bindings/regulator/willsemi,wl2868c.yaml  | 67 +++++++++++++++++++
 MAINTAINERS                                   |  6 ++
 2 files changed, 73 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/regulator/willsemi,wl2868c.yaml

diff --git a/Documentation/devicetree/bindings/regulator/willsemi,wl2868c.yaml b/Documentation/devicetree/bindings/regulator/willsemi,wl2868c.yaml
new file mode 100644
index 000000000..8dc729c90
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/willsemi,wl2868c.yaml
@@ -0,0 +1,67 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/regulator/willsemi,wl2868c.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Will Semiconductor WL2868C camera power management IC
+
+maintainers:
+  - Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
+
+description:
+  Seven programmable LDOs with separate inputs for LDO1/2, LDO3/4,
+  LDO5, LDO6 and LDO7. LDO1/2 support 0.496 to 1.512 V and LDO3-7
+  support 1.504 to 3.544 V, in 8 mV steps.
+
+properties:
+  compatible:
+    const: willsemi,wl2868c
+
+  reg:
+    maxItems: 1
+
+  reset-gpios:
+    maxItems: 1
+    description: Active-low RST_N input.
+
+  vin12-supply: true
+  vin34-supply: true
+  vin5-supply: true
+  vin6-supply: true
+  vin7-supply: true
+
+  regulators:
+    type: object
+    additionalProperties: false
+    patternProperties:
+      "^ldo[1-7]$":
+        type: object
+        $ref: regulator.yaml#
+        unevaluatedProperties: false
+
+required:
+  - compatible
+  - reg
+  - regulators
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        pmic@2f {
+            compatible = "willsemi,wl2868c";
+            reg = <0x2f>;
+
+            regulators {
+                ldo1 {
+                    regulator-min-microvolt = <1200000>;
+                    regulator-max-microvolt = <1200000>;
+                };
+            };
+        };
+    };
diff --git a/MAINTAINERS b/MAINTAINERS
index 620fdef73..f598dcf4e 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -29285,6 +29285,12 @@ F:	include/linux/regulator/
 F:	include/uapi/regulator/
 K:	regulator_get_optional
 
+WILLSEMI WL2868C CAMERA PMIC DRIVER
+M:	Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
+L:	linux-media@vger.kernel.org
+S:	Maintained
+F:	Documentation/devicetree/bindings/regulator/willsemi,wl2868c.yaml
+
 VOLTAGE AND CURRENT REGULATOR IRQ HELPERS
 R:	Matti Vaittinen <mazziesaccount@gmail.com>
 F:	drivers/regulator/irq_helpers.c
-- 
2.53.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-10-28 12:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-27  5:10 [PATCH] dt-bindings: regulator: add Will Semiconductor WL2868C PMIC Qianhui Xu
2026-10-27 17:58 ` Mark Brown
2026-10-28 12:04   ` Qianhui Xu
2026-10-28 12:12     ` Krzysztof Kozlowski
2026-10-27 18:04 ` Krzysztof Kozlowski
2026-10-28 12:04   ` Qianhui Xu
2026-10-28 12:11     ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®