From nobody Sat Oct 4 05:01:24 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9136B2D480E; Wed, 20 Aug 2025 20:44:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755722682; cv=none; b=dnqq9ZKbUhvOal8fEe7KJMHun69nDoavWxnezkYxJ7ZnJSdjLvh6djfXMA18s7KVG4qO6nBR+DoTmmsEg6QrK+7b1kNTTzpURP3NISspwMxA/IADaR2JEuPLHVtdRhF571+nwxG9clL8612x3+u1dbDUkcQKTfgbaIKXVC6zBos= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755722682; c=relaxed/simple; bh=13CZLd408DtJao10ZbzCPQLMH8HR9OiqLz1e8Xxwi0M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=meAlusyXbz9VUwq2dzsyZlIhKsxY4MzcoJaGG+0naXULWzJC5FkMJ1A1gS1PpaKGJQrfe+K3jI22q8s/FNHg5LJ71a8lhaCTHQgFNzEKGOmhy0JHbGGWbTcF9VvUs0oh/eBxH4LwR0pquAoKxVlx0lAYilVsiPWI4TH3ZmASbSg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uXCoXgB5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uXCoXgB5" Received: by smtp.kernel.org (Postfix) with ESMTPS id 2BF3EC113D0; Wed, 20 Aug 2025 20:44:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755722682; bh=13CZLd408DtJao10ZbzCPQLMH8HR9OiqLz1e8Xxwi0M=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=uXCoXgB5hH9Kx7m0cjGkwEEZzJMc8feypOWYePCKZDvQOn8vpRPN2ds3OJBT9NgbO DEt1S/F11caI/lufLhPtTffnrBsyi8jdZFjIXm5rKTVOSIX8VlFBXyh5iiBTqZU3g/ bWKBoFjYzSbAtIsJfqD/TnPDUcnAFdd7rZ8eqigydc+k6NIaVHcQMhcD1esE8i1DwY ZMb/2tQ5uYww5IJ/yHu9yjA7zKXLbIZySRdYWKYVUtg1zCEuWq6ND7OCiTtMj0yb00 6xClPhb9mBhseojX0EZwWw4jxi14woVcep1RvH24oUM6WPjBEBp+Q+bac3GF1Cwt/t Ja3Yd63CXu5/A== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AE69CA0EDC; Wed, 20 Aug 2025 20:44:42 +0000 (UTC) From: Samuel Kayode via B4 Relay Date: Wed, 20 Aug 2025 16:44:36 -0400 Subject: [PATCH v10 1/6] dt-bindings: mfd: add pf1550 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: <20250820-pf1550-v10-1-4c0b6e4445e3@savoirfairelinux.com> References: <20250820-pf1550-v10-0-4c0b6e4445e3@savoirfairelinux.com> In-Reply-To: <20250820-pf1550-v10-0-4c0b6e4445e3@savoirfairelinux.com> To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Dmitry Torokhov , Sebastian Reichel , Frank Li Cc: imx@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-pm@vger.kernel.org, Abel Vesa , Abel Vesa , Robin Gong , Robin Gong , Enric Balletbo i Serra , Sean Nyekjaer , Christophe JAILLET , Samuel Kayode , Abel Vesa , Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755722681; l=6977; i=samuel.kayode@savoirfairelinux.com; s=20250527; h=from:subject:message-id; bh=5vcRFsgia6+WVfe1ZxXoWYFkK+ExpGtuoyNGz1NkdYs=; b=i+6rt3wNP9o07pghDqoZmPk6ZwotlunOEGkuBSWzn79rt1Vzsvlp/tsTTrrTVxhmrPbOcaNps nOLKQG9O8VcCDl/J0o4OEKL7kEZfuvM3WFwjyDXY+r3z9o7Tv3vrg1f X-Developer-Key: i=samuel.kayode@savoirfairelinux.com; a=ed25519; pk=TPSQGQ5kywnnPyGs0EQqLajLFbdDu17ahXz8/gxMfio= X-Endpoint-Received: by B4 Relay for samuel.kayode@savoirfairelinux.com/20250527 with auth_id=412 X-Original-From: Samuel Kayode Reply-To: samuel.kayode@savoirfairelinux.com From: Samuel Kayode Add a DT binding document for pf1550 PMIC. This describes the core mfd device along with its children: regulators, charger and onkey. Reviewed-by: Krzysztof Kozlowski Tested-by: Sean Nyekjaer Signed-off-by: Samuel Kayode --- v10: - Add regulator-state-mem to examples v9: - Add regulator suspend bindings in example - Add binding for disabling onkey power down - Fix thermal regulation temperature range v5: - Address Krzystof's feedback: - Drop monitored battery ref already included in power supply schema - Move `additionalProperties` close to `type` for regulator - Drop unneccessary | - Change `additionalProperties` to `unevaluatedProperties` for the PMIC v4: - Address Krzystof's feedback: - Filename changed to nxp,pf1550.yaml - Replace Freescale with NXP - Define include before battery-cell - Drop operating-range-celsius in example since nxp,thermal-regulation-celsisus already exists - Not sure if there is similar binding to thermal-regulation... for regulating temperature on thermal-zones? @Sebastian and @Krzysztof v3: - Address Krzysztof's feedback: - Fold charger and onkey objects - Drop compatible for sub-devices: onkey, charger and regulator. - Drop constant voltage property already included in monitored-battery - Fix whitespace warnings - Fix license v2: - Add yamls for the PMIC and the sub-devices --- .../devicetree/bindings/mfd/nxp,pf1550.yaml | 161 +++++++++++++++++= ++++ 1 file changed, 161 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/nxp,pf1550.yaml b/Docume= ntation/devicetree/bindings/mfd/nxp,pf1550.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e50dc44252c60063463295c5ec3= e3c90d1592ec2 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/nxp,pf1550.yaml @@ -0,0 +1,161 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/nxp,pf1550.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP PF1550 Power Management IC + +maintainers: + - Samuel Kayode + +description: + PF1550 PMIC provides battery charging and power supply for low power IoT= and + wearable applications. This device consists of an i2c controlled MFD that + includes regulators, battery charging and an onkey/power button. + +$ref: /schemas/power/supply/power-supply.yaml + +properties: + compatible: + const: nxp,pf1550 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + wakeup-source: true + + regulators: + type: object + additionalProperties: false + + patternProperties: + "^(ldo[1-3]|sw[1-3]|vrefddr)$": + type: object + $ref: /schemas/regulator/regulator.yaml + description: + regulator configuration for ldo1-3, buck converters(sw1-3) + and DDR termination reference voltage (vrefddr) + unevaluatedProperties: false + + monitored-battery: + description: | + A phandle to a monitored battery node that contains a valid value + for: + constant-charge-voltage-max-microvolt. + + nxp,thermal-regulation-celsius: + description: + Temperature threshold for thermal regulation of charger in celsius. + enum: [ 80, 95, 110, 125 ] + + nxp,min-system-microvolt: + description: + System specific lower limit voltage. + enum: [ 3500000, 3700000, 4300000 ] + + nxp,disable-key-power: + type: boolean + description: + Disable power-down using a long key-press. The onkey driver will rem= ove + support for the KEY_POWER key press when triggered using a long pres= s of + the onkey. + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + + battery: battery-cell { + compatible =3D "simple-battery"; + constant-charge-voltage-max-microvolt =3D <4400000>; + }; + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + pmic@8 { + compatible =3D "nxp,pf1550"; + reg =3D <0x8>; + + interrupt-parent =3D <&gpio1>; + interrupts =3D <2 IRQ_TYPE_LEVEL_LOW>; + wakeup-source; + monitored-battery =3D <&battery>; + nxp,min-system-microvolt =3D <4300000>; + nxp,thermal-regulation-celsius =3D <80>; + + regulators { + sw1_reg: sw1 { + regulator-name =3D "sw1"; + regulator-min-microvolt =3D <600000>; + regulator-max-microvolt =3D <1387500>; + regulator-always-on; + regulator-ramp-delay =3D <6250>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-min-microvolt =3D <1270000>; + }; + }; + + sw2_reg: sw2 { + regulator-name =3D "sw2"; + regulator-min-microvolt =3D <600000>; + regulator-max-microvolt =3D <1387500>; + regulator-always-on; + + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + sw3_reg: sw3 { + regulator-name =3D "sw3"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <3300000>; + regulator-always-on; + + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + vldo1_reg: ldo1 { + regulator-name =3D "ldo1"; + regulator-min-microvolt =3D <750000>; + regulator-max-microvolt =3D <3300000>; + regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vldo2_reg: ldo2 { + regulator-name =3D "ldo2"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <3300000>; + regulator-always-on; + }; + + vldo3_reg: ldo3 { + regulator-name =3D "ldo3"; + regulator-min-microvolt =3D <750000>; + regulator-max-microvolt =3D <3300000>; + regulator-always-on; + }; + }; + }; + }; --=20 2.50.1