From nobody Sat Sep 26 13:46:41 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 99C1D379C5D; Tue, 1 Sep 2026 04:51:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788238272; cv=none; b=L1IO20JYWEN303AdL7oLssK6146vVPPjsEM6l7AvcbBP1kmdxZLQ1pAuifNswm22POjxi10USaj6xK+nWK8FD6mykIeSG3ohbtpzljTD36hT/eq0sUEsU01k4LbZwhVxEZk44sMTGJynhjZBMzEiovTtAWDxHygape3UClwj8bU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788238272; c=relaxed/simple; bh=wqzYe/YRpy4q0I9qf7Y6/McgEc4YVuXA42RQYFJ9Tjk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kAVieIW4ND121E2imm+wjzUX5DRlPn9BI+cwVcBlEnIsTJTFntvgl1pAGqmPl31+YYuTNu2BeSadE8hM6OS1FrR537imdpmY7mff1NvyMv5EPwVOQe0DdLIbw4N/32HavQgXPdApMvKB/OdfVkryjPCZSZGbBy1jjEASlptcPjE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Tqgca+eW; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Tqgca+eW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77DBD1F00A3D; Tue, 1 Sep 2026 04:51:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1788238271; bh=rtXV2gFb6gj/G6sjgrL9csr6ec+pNK8SZbRyvgyi5bc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Tqgca+eWIh64QeTX6RkUbVxECYURenTTyWSJOVTWksPOj/z0i6/6eL/i0p4bP1XHy AM6Aj4mbiLplIgr7bWs7OF77f8jcnPGVT85OauAUcppYUnrQZuR7pSQ2dL86mdiZNe s/+TirQ1rGIRii1jDSrH9qxrpDMG7zbdpGojDj5E6USYyGAoYoCKWB7kCMbhB33TBl 6Sft2COHCTHrrhyuSzqRW/aRMWZxFBdzHWkJAECDKvH6mUEEi63maJrF8vTwBsYQT8 wah2XeGneIucvuxPCrb+N9hBHI+Smiv9aCrAz+B5+LChiJB2mM5vykRMRAPvodi5q6 HQtKedJQB+AJQ== From: Jisheng Zhang To: Saravanan Sekar , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/3] regulator: mp886x: fix vsel_mask Date: Tue, 1 Sep 2026 12:31:21 +0800 Message-ID: <20260901043123.5401-2-jszhang@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260901043123.5401-1-jszhang@kernel.org> References: <20260901043123.5401-1-jszhang@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The MP886X vsel is 7bits, fix the vsel_mask. Fixes: 97be82880b61 ("regulator: add support for MP8869 regulator") Signed-off-by: Jisheng Zhang --- drivers/regulator/mp886x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/mp886x.c b/drivers/regulator/mp886x.c index e0b62bc02a1e..a10f3a20d413 100644 --- a/drivers/regulator/mp886x.c +++ b/drivers/regulator/mp886x.c @@ -267,7 +267,7 @@ static int mp886x_regulator_register(struct mp886x_devi= ce_info *di, rdesc->min_uV =3D 600000; rdesc->uV_step =3D 10000; rdesc->vsel_reg =3D MP886X_VSEL; - rdesc->vsel_mask =3D 0x3f; + rdesc->vsel_mask =3D 0x7f; rdesc->ramp_reg =3D MP886X_SYSCNTLREG1; rdesc->ramp_mask =3D MP886X_SLEW_MASK; rdesc->ramp_delay_table =3D di->ci->slew_rates; --=20 2.51.0 From nobody Sat Sep 26 13:46:41 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 6B344379ECF; Tue, 1 Sep 2026 04:51:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788238275; cv=none; b=PyzPsWOjzWZ3VZ9DiYnZ/tSGgDqH2nzynQrTcsHoEp2vxmJfhwvfwWJo8N/N9eIhzRin14p8Qln4dyCe/gH08GuE5C8dUIbpj0c3jjkxmoSnoCWGvDFdeOyrPjBgylojWaNp6eFXGxSUF374Ie7hEyAPZIefkwMCGHG7UlyXZUE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788238275; c=relaxed/simple; bh=1MkT4pRdCNtSDG1XUw7xEbJUEhJgevcrVIRyRxD7Kyk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sjfedMoHRCX/HjB8rJ+jfN4uaWGhg2cLreT1llMwu9o8qhBA3yxlQ6/jes3V1+zj5QjGCEHRn9Irje4oMkKVxBmyMvXeRXtn2lBf8odCBiFquLSepiSQChq2FQAkBzd2vR4vSDz5G/dTNZZVq0ZoxXBJORv3DMnZJAH1hEfVCS4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FYP8NGMh; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FYP8NGMh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF5A41F000E9; Tue, 1 Sep 2026 04:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1788238274; bh=6JLN/BdioSVZWWncPP6UZfuzXOw81lIFlyYD7YOucVM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=FYP8NGMh2ejErtsaAFQFgftBn1mlHMXdXKfPamLprXJs4/N82EO+1a+4Wj9RnAZJ1 dUVCc0HECwBiypfxpFMyEqwjb7t7Yb/6vZEjUphoCj7K/TqVj5KkfewrQzSOtQgDdM hDmclgPQJTv46hZyasho4jm4ZLwcRuyHYTW0Rirz+0H1FPypOVQU3vFLRM4rQXly6O 167zbaiSKDGLnrjhCdajOzv0WAfU5JKRHG0pq+U+ZSsNhMwDd5zOFUQyERnfcOy7oK hbxHDUQosJnI1lmc6+b/UIXJejNSr1LqfXNPVJzXU0tznnPUCLX4vQyr3M7bp7IaPH 0xrheMj2E/2iQ== From: Jisheng Zhang To: Saravanan Sekar , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/3] regulator: dt-bindings: mp886x: support mp8864 Date: Tue, 1 Sep 2026 12:31:22 +0800 Message-ID: <20260901043123.5401-3-jszhang@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260901043123.5401-1-jszhang@kernel.org> References: <20260901043123.5401-1-jszhang@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The MP8864 is a 4 A, 21 V synchronous step-down converter. Its register layout and voltage transition handling are compatible with the MP8867, but its selectable switching frequencies are 600 kHz, 850 kHz, 1.1 MHz and 1.6 MHz. Add the compatible and chip-specific switching-frequency table. Signed-off-by: Jisheng Zhang Assisted-by: Codex:gpt-5 Acked-by: Conor Dooley --- .../bindings/regulator/mps,mp886x.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/mps,mp886x.yaml b/= Documentation/devicetree/bindings/regulator/mps,mp886x.yaml index 374a4f6b1e23..6cf7c1c3c0c3 100644 --- a/Documentation/devicetree/bindings/regulator/mps,mp886x.yaml +++ b/Documentation/devicetree/bindings/regulator/mps,mp886x.yaml @@ -4,17 +4,30 @@ $id: http://devicetree.org/schemas/regulator/mps,mp886x.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# =20 -title: Monolithic Power Systems MP8867/MP8869 voltage regulator +title: Monolithic Power Systems MP8864/MP8867/MP8869 voltage regulator =20 maintainers: - Jisheng Zhang =20 allOf: - $ref: regulator.yaml# + - if: + properties: + compatible: + const: mps,mp8864 + then: + properties: + mps,switch-frequency-hz: + enum: [600000, 850000, 1100000, 1600000] + else: + properties: + mps,switch-frequency-hz: + enum: [500000, 750000, 1000000, 1250000, 1500000] =20 properties: compatible: enum: + - mps,mp8864 - mps,mp8867 - mps,mp8869 =20 @@ -33,7 +46,6 @@ properties: =20 mps,switch-frequency-hz: description: The valid switch frequency in Hertz. - enum: [500000, 750000, 1000000, 1250000, 1500000] =20 required: - compatible --=20 2.51.0 From nobody Sat Sep 26 13:46:41 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 60F09379C38; Tue, 1 Sep 2026 04:51:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788238278; cv=none; b=R7fpzCR2V9VWXH6UolMR+D+lequMX9BZQJygY7kHM2CAgwfQz40QiAh2skPCfqGYm2gIsPFlVdYIwfAtqqtcnUDototDzx6ZGr0J2v8wTAz06CMM+sLu+2YWJVqPgwNZf1Sug1GkHg9Z9FUbMttg+f0LBNMIgkrEX6Wwmr+/wLM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788238278; c=relaxed/simple; bh=YcaBQSV/0wTf/xEOyIRGPZrE8rl4U6BAM7cQ98JBFP4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YxL3GcimJ2HfQ1SfDxd+VjBuJgguLBivbjnTttJcdM/Zw9iaze6Cz1lQ+FX1yOoOrqi+OCNbUGM0CW42DGlsGlw/jlV8GBQ2F2RePlVpd1kcK5VF9bNmHFO0MpQ5GPjUv4aiViXP5iJJwkZudh/14qgeBbc3zJdFJQuOB/2XMrs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PVzVf3PD; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PVzVf3PD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD9C91F00A3D; Tue, 1 Sep 2026 04:51:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1788238277; bh=Ycfzk9fJ1cHKHsRgtgeKxNASyvzEVZPZabxJCmWkfkc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=PVzVf3PDDCHbOAWe96xAJiBYy2Uy2O2H06KdYf1WQAUF4M3ZEAOxkls9p3lMgEngR 9rSKU2lWnJefLvy2Pe0GDDfpjSrn89kEgcqLdhB2YiDII4r0JNTTAIGnRM6Cz/ETWF ckfn3GYrbVWxpZouvfFvo4sYWKjMxeY0sCH63VgI68xAQGuo8bOwR0UX4QPnimjid3 pIzNge5yuxTUPHNFt5pEq7sbNl1fpu0KKoNDuLz85k/YHOqOuBS38rSGqESMP1H2OZ oGazcICnaHIw5Cskv2jX7fhB6azK+fpXmTqszONIUj30fZzV6B4tWYMzLOn6pY0Ty+ EKFtTf3Gjc9cg== From: Jisheng Zhang To: Saravanan Sekar , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/3] regulator: mp886x: add MP8864 support Date: Tue, 1 Sep 2026 12:31:23 +0800 Message-ID: <20260901043123.5401-4-jszhang@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260901043123.5401-1-jszhang@kernel.org> References: <20260901043123.5401-1-jszhang@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The MP8864 is a 4 A, 21 V synchronous step-down converter. Its register layout and voltage transition handling are compatible with the MP8867, but its selectable switching frequencies are 600 kHz, 850 kHz, 1.1 MHz and 1.6 MHz. Add the compatible and chip-specific switching-frequency table. Signed-off-by: Jisheng Zhang Assisted-by: Codex:gpt-5 --- drivers/regulator/Kconfig | 2 +- drivers/regulator/mp886x.c | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index 89789ac7a786..c8940e2c7e04 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -864,7 +864,7 @@ config REGULATOR_MP8859 module. The module will be named "mp8859". =20 config REGULATOR_MP886X - tristate "MPS MP8869 regulator driver" + tristate "MPS MP8864/MP8867/MP8869 regulator driver" depends on I2C && OF select REGMAP_I2C help diff --git a/drivers/regulator/mp886x.c b/drivers/regulator/mp886x.c index a10f3a20d413..14f60cdcbbd6 100644 --- a/drivers/regulator/mp886x.c +++ b/drivers/regulator/mp886x.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 // -// MP8867/MP8869 regulator driver +// MP8864/MP8867/MP8869 regulator driver // // Copyright (C) 2020 Synaptics Incorporated // @@ -229,6 +229,23 @@ static const struct regulator_ops mp8867_regulator_ops= =3D { .set_ramp_delay =3D regulator_set_ramp_delay_regmap, }; =20 +static const struct mp886x_cfg_info mp8864_ci =3D { + .rops =3D &mp8867_regulator_ops, + .slew_rates =3D { + 64000, + 32000, + 16000, + 8000, + 4000, + 2000, + 1000, + 500, + }, + .switch_freq =3D { 600000, 850000, 1100000, 1600000 }, + .fs_reg =3D MP886X_SYSCNTLREG1, + .fs_shift =3D 1, +}; + static const struct mp886x_cfg_info mp8867_ci =3D { .rops =3D &mp8867_regulator_ops, .slew_rates =3D { @@ -341,6 +358,7 @@ static int mp886x_i2c_probe(struct i2c_client *client) } =20 static const struct of_device_id mp886x_dt_ids[] =3D { + { .compatible =3D "mps,mp8864", .data =3D &mp8864_ci }, { .compatible =3D "mps,mp8867", .data =3D &mp8867_ci }, { .compatible =3D "mps,mp8869", .data =3D &mp8869_ci }, { } @@ -348,6 +366,7 @@ static const struct of_device_id mp886x_dt_ids[] =3D { MODULE_DEVICE_TABLE(of, mp886x_dt_ids); =20 static const struct i2c_device_id mp886x_id[] =3D { + { .name =3D "mp8864", .driver_data =3D (kernel_ulong_t)&mp8864_ci }, { .name =3D "mp8867", .driver_data =3D (kernel_ulong_t)&mp8867_ci }, { .name =3D "mp8869", .driver_data =3D (kernel_ulong_t)&mp8869_ci }, { } --=20 2.51.0