From nobody Fri Dec 19 21:47:09 2025 Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3CAE212564; Sat, 15 Nov 2025 06:51:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.238.236.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763189503; cv=none; b=L9hodomCTB4IyTwBfyMHVyK8kTERIS/qH2M1nHXcAnEb6H/AnWKYeykza6CFPPW1V9fFheZESH45uKqISc2tc1uWzX2KsMx2OX6S73b+QULTgI8pIBDGJ/DZQTS7Hp9UFRZEY0u2GHfPV4P8hDfzZ2NE1lyTBUhQsCnWEuryx00= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763189503; c=relaxed/simple; bh=Q7JNebQ4U/2zuHXE40sWwu7o80kowIfwZICYwwVMlas=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Wjot92vwk+OrjlKBjXR1Q7ikgsV28mJjkbeTsMBU8uWu+BwVNH6nWDKNbIARKwtVyIgTJMFBqVg8Vkfx1aEOpB+3txeM8Gyvx4kAkg51k3C4UfIqK8c5y/mfBpfqwcpPmguAWjuhx1aiTve7cd/p/ZnH5Gx6FHush+Sod949E0w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kemnade.info; spf=pass smtp.mailfrom=kemnade.info; dkim=pass (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b=Yv7Tadu4; arc=none smtp.client-ip=178.238.236.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="Yv7Tadu4" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Cc:In-Reply-To:References:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=lEtM6gPQ+ek7FwxvRJrZY/vlEduvTnNP2Ergo2QpDSU=; b=Yv7Tadu4KG43HrczqwZvxckvdZ tzDzLNDXcnvZfGJG+KTnEC1f2k12kcCS2ZhFsTV40gBN7+05vvR22pQ6Z8Ueh0NIAN1QPAq/mV/pY hO+auksMaDMGCccvrl5uJp5meoCN0cMOJlfsMDgaN03gTGJBINBf9+lC23BVoXjNmdx+YVISULCV+ DkRdMhuaXVsPC9Zn2vrNMwmG3d7JVYs0SNqoNXA2ApbzFkkLnWHfV4kiayRuI4vqMNHkdjD6Ot9+l nCE6cXZHB4U9ifpX4xEXcPor3xmg68nDAXzXnsUYalLONPhPbA2fXxi7U4kEQuXC2worEZp+xmo4+ e47XlWag==; From: Andreas Kemnade Date: Sat, 15 Nov 2025 07:50:50 +0100 Subject: [PATCH v3 2/3] dt-bindings: regulator: Add Fitipower FP9931/JD9930 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251115-fp9931-submit-v3-2-92f5d0772b68@kemnade.info> References: <20251115-fp9931-submit-v3-0-92f5d0772b68@kemnade.info> In-Reply-To: <20251115-fp9931-submit-v3-0-92f5d0772b68@kemnade.info> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Guenter Roeck Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Andreas Kemnade , Krzysztof Kozlowski X-Mailer: b4 0.15-dev-a6db3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3716; i=andreas@kemnade.info; h=from:subject:message-id; bh=Q7JNebQ4U/2zuHXE40sWwu7o80kowIfwZICYwwVMlas=; b=owGbwMvMwCUm/rzkS6lq2x3G02pJDJkSSo9t1PgzxXdHa3/0ehujwXDqiPekncq1m5qjDB8p/ pL4FqfQUcrCIMbFICumyPLLWsHtk8qz3OCpEfYwc1iZQIYwcHEKwERYahgZ9vA2aGUsfppd/qju omXhatuJUQGTH+7fUZHzo9nBgkfqKcNvljU1m5q235Kr/Gi04NDbo8wvlWNq167aFfaFbbJEZ08 EHwA= X-Developer-Key: i=andreas@kemnade.info; a=openpgp; fpr=EEC0DB858E66C0DA70620AC07DBD6AC74DE29324 Document the FP9931/JD9930. As the FP9931 is a clear subset of the JD9930, define it as a fallback compatible. GPIO names are same as in the datasheet except for the EN pad which is described as "enable". Reviewed-by: Krzysztof Kozlowski Signed-off-by: Andreas Kemnade --- .../bindings/regulator/fitipower,fp9931.yaml | 110 +++++++++++++++++= ++++ 1 file changed, 110 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/fitipower,fp9931.y= aml b/Documentation/devicetree/bindings/regulator/fitipower,fp9931.yaml new file mode 100644 index 000000000000..c6585e3bacbe --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/fitipower,fp9931.yaml @@ -0,0 +1,110 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/fitipower,fp9931.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: FitiPower FP9931/JD9930 Power Management Integrated Circuit + +maintainers: + - Andreas Kemnade + +description: + FP9931 is a Power Management IC to provide Power for EPDs with one 3.3V + switch, 2 symmetric LDOs behind 2 DC/DC converters, and one unsymmetric + regulator for a compensation voltage. + JD9930 has in addition some kind of night mode. + +properties: + compatible: + oneOf: + - const: fitipower,fp9931 + + - items: + - const: fitipower,jd9930 + - const: fitipower,fp9931 + + reg: + maxItems: 1 + + enable-gpios: + maxItems: 1 + + pg-gpios: + maxItems: 1 + + en-ts-gpios: + maxItems: 1 + + xon-gpios: + maxItems: 1 + + vin-supply: + description: + Supply for the whole chip. Some vendor kernels and devicetrees + declare this as a non-existing GPIO named "pwrall". + + fitipower,tdly-ms: + description: + Power up soft start delay settings tDLY1-4 bitfields in the + POWERON_DELAY register + items: + - enum: [0, 1, 2, 4] + - enum: [0, 1, 2, 4] + - enum: [0, 1, 2, 4] + - enum: [0, 1, 2, 4] + + regulators: + type: object + additionalProperties: false + patternProperties: + "^(vcom|vposneg|v3p3)$": + unevaluatedProperties: false + type: object + $ref: /schemas/regulator/regulator.yaml + +required: + - compatible + - reg + - pg-gpios + - enable-gpios + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + pmic@18 { + compatible =3D "fitipower,fp9931"; + reg =3D <0x18>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_fp9931_gpio>; + vin-supply =3D <&epd_pmic_supply>; + pg-gpios =3D <&gpio2 7 GPIO_ACTIVE_HIGH>; + en-ts-gpios =3D <&gpio2 9 GPIO_ACTIVE_HIGH>; + enable-gpios =3D <&gpio2 8 GPIO_ACTIVE_HIGH>; + fitipower,tdly-ms =3D <2 2 4 4>; + + regulators { + vcom { + regulator-name =3D "vcom"; + regulator-min-microvolt =3D <2352840>; + regulator-max-microvolt =3D <2352840>; + }; + + vposneg { + regulator-name =3D "vposneg"; + regulator-min-microvolt =3D <15060000>; + regulator-max-microvolt =3D <15060000>; + }; + + v3p3 { + regulator-name =3D "v3p3"; + }; + }; + }; + }; --=20 2.47.3