Devicetree
 help / color / mirror / Atom feed
* [PATCH v2] regulator: dt-bindings: willsemi,wl2868c: add the WL2868C camera PMIC
@ 2026-10-28 12:04 Qianhui Xu
  2026-10-29  8:55 ` Krzysztof Kozlowski
  2026-10-31  3:42 ` [PATCH v3 0/3] regulator: add the WL2868C camera PMIC and its users Qianhui Xu
  0 siblings, 2 replies; 18+ messages in thread
From: Qianhui Xu @ 2026-10-28 12:04 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel

The WL2868C is a camera power management IC with seven programmable LDOs.
LDO1 and LDO2 share the VIN12 input, LDO3 and LDO4 share VIN34, and LDO5 to
LDO7 have one input each. LDO1 and LDO2 cover 0.496 V to 1.512 V, the other
five cover 1.504 V to 3.544 V, all in 8 mV steps.

It is used on the Lenovo Legion Tab (TB322FC, SM8750), where the two camera
sensors take their DVDD, AVDD and DOVDD rails from LDO1 to LDO5 and LDO7.
Without this binding those supply references cannot be described, so the
camera stack on that board cannot be brought up.

Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
---
Changes in v2:
 - Regenerated with git format-patch from a real commit on pristine
   7.3-rc7.  v1 was sent with a diffstat typed into the commit message, so
   the mail carried two of them; that is what Krzysztof called a broken
   patch.
 - Subject rewritten to the regulator tree style:
   "regulator: dt-bindings: willsemi,wl2868c: ..." (was
   "dt-bindings: regulator: ...").
 - MAINTAINERS: the entry was in the V section while its name starts with
   W.  Moved between WIIMOTE and WILOCITY, and renamed from "WILLSEMI
   WL2868C CAMERA PMIC DRIVER" to "WILLSEMI WL2868C CAMERA PMIC" since
   there is no driver in this patch.
 - MAINTAINERS: dropped L: linux-media@vger.kernel.org, using
   L: linux-kernel@vger.kernel.org like the other single-file regulator
   bindings.  The device registers as a regulator, so the regulator tree
   is where it belongs.
 - Commit message now says who uses the binding: the camera PMIC on the
   Lenovo Legion Tab (TB322FC, SM8750), supplying DVDD/AVDD/DOVDD of both
   camera sensors.
 - Binding: gave the five input supplies descriptions, grouped the
   regulators patternProperties, used the real board voltage in the
   example, and added the closing "..." marker.
 .../bindings/regulator/willsemi,wl2868c.yaml  | 79 +++++++++++++++++++
 MAINTAINERS                                   |  6 ++
 2 files changed, 85 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..7abbd53fd
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/willsemi,wl2868c.yaml
@@ -0,0 +1,79 @@
+# 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:
+  The WL2868C is a camera power management IC with seven programmable LDOs.
+  LDO1 and LDO2 share the VIN12 input and cover 0.496 V to 1.512 V; LDO3 and
+  LDO4 share VIN34, and LDO5 to LDO7 have one input each, covering 1.504 V to
+  3.544 V. All outputs are programmable in 8 mV steps.
+
+properties:
+  compatible:
+    const: willsemi,wl2868c
+
+  reg:
+    maxItems: 1
+
+  reset-gpios:
+    maxItems: 1
+    description: Active-low RST_N input.
+
+  vin12-supply:
+    description: Input supply for LDO1 and LDO2.
+
+  vin34-supply:
+    description: Input supply for LDO3 and LDO4.
+
+  vin5-supply:
+    description: Input supply for LDO5.
+
+  vin6-supply:
+    description: Input supply for LDO6.
+
+  vin7-supply:
+    description: Input supply for LDO7.
+
+  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 = <1128000>;
+                    regulator-max-microvolt = <1128000>;
+                };
+            };
+        };
+    };
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index f53047aa8..632b17b3e 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -29413,6 +29413,12 @@ L:	linux-input@vger.kernel.org
 S:	Maintained
 F:	drivers/hid/hid-wiimote*
 
+WILLSEMI WL2868C CAMERA PMIC
+M:	Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
+L:	linux-kernel@vger.kernel.org
+S:	Maintained
+F:	Documentation/devicetree/bindings/regulator/willsemi,wl2868c.yaml
+
 WILOCITY WIL6210 WIRELESS DRIVER
 L:	linux-wireless@vger.kernel.org
 S:	Orphan
-- 
2.53.0


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

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

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-28 12:04 [PATCH v2] regulator: dt-bindings: willsemi,wl2868c: add the WL2868C camera PMIC Qianhui Xu
2026-10-29  8:55 ` Krzysztof Kozlowski
2026-10-31  3:39   ` Qianhui Xu
2026-10-31  5:29   ` Qianhui Xu
2026-10-31  3:42 ` [PATCH v3 0/3] regulator: add the WL2868C camera PMIC and its users Qianhui Xu
2026-10-31  3:42   ` [PATCH v3 1/3] regulator: dt-bindings: willsemi,wl2868c: add the WL2868C camera PMIC Qianhui Xu
2026-10-31  3:42   ` [PATCH v3 2/3] regulator: willsemi,wl2868c: add the WL2868C camera PMIC driver Qianhui Xu
2026-10-31  3:43   ` [PATCH v3 3/3] arm64: dts: qcom: sm8750-lenovo-elden: describe the WL2868C regulators Qianhui Xu
2026-10-31  4:00     ` sashiko-bot
2026-10-31  5:27       ` Qianhui Xu
2026-10-31  6:55   ` [PATCH v4 0/4] regulator: add the Will Semiconductor WL2868C camera PMIC Qianhui Xu
2026-10-31  6:55     ` [PATCH v4 1/4] regulator: dt-bindings: willsemi,wl2868c: add the " Qianhui Xu
2026-10-31  7:01       ` sashiko-bot
2026-10-31  6:55     ` [PATCH v4 2/4] regulator: willsemi,wl2868c: add the WL2868C camera PMIC driver Qianhui Xu
2026-10-31  6:55     ` [PATCH v4 3/4] arm64: dts: qcom: sm8750: describe two of the three CCI I2C controllers Qianhui Xu
2026-10-31  7:10       ` sashiko-bot
2026-10-31  6:55     ` [PATCH v4 4/4] arm64: dts: qcom: sm8750-lenovo-elden: describe the WL2868C regulators Qianhui Xu
2026-10-31  7:06       ` sashiko-bot

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