From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.38.64.46 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794016222; b=TkovJNkSsfqzITI5urKElVtTjUmztHToh2vlkhVn2UhBuGWM/ZiSBH3PJT8IX/mR1IG4 gt5cXyEDvOQmIGpRXZhnnWMwxLRqWMvcND+jdYv6oZM4Sw4FJsjWECepbOm+juwrOcSJG YPcTsVchLKSAVuV4/LH0p+PghGuNxgz0lvtXUbNuJhqm+O3mypD05ID/NrkoIig4bFa9Y P4vBWWzXAyyDipoWLFkIaKX5eFGM2s8/283umxJrnf38a+e2uom0ffzXeEj4O5DuxIXx8 fga4+eNm5drcLymNAnVXWVtSip+itTZbw5KRmWPX9rJna0uFmmGZeFl/qy3ViIuzyVA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794016222; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-CM-TRANSID:X-Coremail-Antispam: X-CM-SenderInfo; bh=dcLyrBuZhPnypYjX2zooljbJ+Sv7Ffgc1rzLJCrzKcA=; b=WCOO2sj5BvXpsAQWihCeHxss0FTMtIb/KsVMRU37M+o0Rr1Ap4f6gc5hDTIo93tBWmXv o4T5C1SBGLRgG1pbY/8jVaJkKsU5+cTDjyq2Vr2BE/Ztd7X3rOtWy6OFeTxIrzipNNnT3 VDGDvz6PswK3Lx7+SWsh9db2w40hlWQXLTJUCfQhmFJ+zT5g/GOz34Me5JbJEzzXF8Kgp yXm6kxAP8LjNyrLZyd/WWhpQriPDEGQJGzhQPETwNq2eutaFCo9aHzaSwemKPvDRxaR2Y X9I1itUYgLynQgvCbicHhpBn2Ax2NNrG/f79j6/XnvePgdev2QBr0Pzz4moFArsbO/g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=mail.ustc.edu.cn; spf=pass smtp.mailfrom=mail.ustc.edu.cn; dkim=pass header.d=mail.ustc.edu.cn header.i=@mail.ustc.edu.cn header.a=rsa-sha256 header.s=dkim header.b=CwA8OWmi; arc=none smtp.remote-ip=202.38.64.46 Received: from ustc.edu.cn (smtp.ustc.edu.cn [202.38.64.46]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCB1F606A335; Sat, 7 Nov 2026 01:50:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DCB1F606A335 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mail.ustc.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mail.ustc.edu.cn Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=mail.ustc.edu.cn header.i=@mail.ustc.edu.cn header.a=rsa-sha256 header.s=dkim header.b=CwA8OWmi DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ustc.edu.cn; s=dkim; h=Received:From:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=dcLyrBuZhPnypYjX2zooljbJ+Sv7Ffgc1r zLJCrzKcA=; b=CwA8OWmiRGno2ixFzIN8g4xhGiFnShYYudpLsZ610TavbD/B8Y ZqYVd+Rza1lZ1Fh9Bszd/+viuDopXoy45KhdKb//1ULxBcBODueDPQO8U+9BGDOm aTIzoz4uJUgSXX3oSZlFefg2ObcuFSj4W4U1LZ3cg506PbRmN07b+M+2A= Received: from xuqianhui.tail7a2807.ts.net (unknown [114.214.185.197]) by mailimap2024 (Coremail) with SMTP id 3pYKCgAnlyvWg+5quEKSAA--.1389S3; Sat, 07 Nov 2026 09:50:15 +0800 (CST) From: Qianhui Xu To: lgirdwood@gmail.com, broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v9 1/2] regulator: dt-bindings: willsemi,wl2868c: add the WL2868C camera PMIC Date: Sat, 7 Nov 2026 09:50:13 +0800 Message-ID: <20261107015014.22374-2-xiaqinghuan@mail.ustc.edu.cn> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261107015014.22374-1-xiaqinghuan@mail.ustc.edu.cn> References: <20261106114252.988023-1-xiaqinghuan@mail.ustc.edu.cn> <20261107015014.22374-1-xiaqinghuan@mail.ustc.edu.cn> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:3pYKCgAnlyvWg+5quEKSAA--.1389S3 X-Coremail-Antispam: 1UD129KBjvJXoWxCrW5JF45urykZr17WF4kZwb_yoWrCr45pa 98GrsFkFs5Cr1xGw4xK3Wru3W3KFyrArn5Cr1UC34rGan0qFnav3sIkw15Aa4Fyr48GFW2 yFyDZF47JF1rurJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUBmb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26ryj6rWUM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI 8067AKxVWUGwA2048vs2IY020Ec7CjxVAFwI0_JFI_Gr1l8cAvFVAK0II2c7xJM28CjxkF 64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcV CY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280 aVCY1x0267AKxVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64 kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm 72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc7CjxVAaw2AFwI0_JF0_Jw1l42 xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWU GwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI4 8JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4U MIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I 8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxUgEApDUUUU X-CM-SenderInfo: 50ld1x5qjk3t3q6ptxnoox23vfohv3gofq/1tbiAREDB2ruKtgCVAA0sA The WL2868C is an I2C-controlled camera power management IC from Will Semiconductor. It provides seven programmable LDOs: LDO1 and LDO2 are fed from a shared VIN12 input and cover 0.496 V to 1.512 V, LDO3 and LDO4 share VIN34, and LDO5 to LDO7 each have their own input, covering 1.504 V to 3.544 V. All outputs are programmable in 8 mV steps and are gated by per-output enable bits with a chip-wide SYS_EN master. The chip also exposes an optional active-low RST_N input. VIN7 and VSYS are both inputs of the internal control logic, which is powered from the higher of the two voltages, so a device tree has to describe at least one of them. The remaining inputs only feed LDOs, so they stay optional: an input can be left unconnected when the outputs it feeds are unused on a given board. Signed-off-by: Qianhui Xu --- .../bindings/regulator/willsemi,wl2868c.yaml | 98 +++++++++++++++++++ MAINTAINERS | 7 ++ 2 files changed, 105 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 0000000000..1e74f2a21f --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/willsemi,wl2868c.yaml @@ -0,0 +1,98 @@ +# 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 + +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. + + VIN7 and VSYS feed the internal control logic, which is powered from the + higher of the two, so at least one of them has to be connected. The other + inputs only feed LDOs, so an input may be left unconnected on a board that + does not use the outputs it feeds, which is why they are not mandatory. + +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 and one of the two supplies of the internal + control logic. + + vsys-supply: + description: > + System supply, the other supply of the internal control logic. The + control logic is powered from the higher of VIN7 and VSYS. + + regulators: + type: object + additionalProperties: false + + patternProperties: + "^ldo[1-7]$": + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + - regulators + +anyOf: + - required: + - vin7-supply + - required: + - vsys-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@2f { + compatible = "willsemi,wl2868c"; + reg = <0x2f>; + vsys-supply = <&vreg_vsys>; + + regulators { + ldo1 { + regulator-max-microvolt = <1128000>; + regulator-min-microvolt = <1128000>; + }; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index f53047aa8d..a334308798 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -29413,6 +29413,13 @@ L: linux-input@vger.kernel.org S: Maintained F: drivers/hid/hid-wiimote* +WILLSEMI WL2868C CAMERA PMIC +M: Qianhui Xu +L: linux-kernel@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/regulator/willsemi,wl2868c.yaml +F: drivers/regulator/wl2868c-regulator.c + WILOCITY WIL6210 WIRELESS DRIVER L: linux-wireless@vger.kernel.org S: Orphan -- 2.53.0