From nobody Wed Oct 8 23:11:46 2025 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 E0ABE2522B5; Tue, 24 Jun 2025 07:35:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750750555; cv=none; b=MqjamTrBiMDsjz/6LshMNRw2r43CXvHjnhoBlxRSpw2dX1OqaApZS5AL12/OWZXw7kfAgSTr9pBFKZc04ZVgzg3ccQgU7x0IbyHtCIR2yVc1zNbLovXLR/jxV/b6JevtQZpd9QtRT0/DVJgbBQJdXgKQ8tVBFfVdjx2fYsMfp34= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750750555; c=relaxed/simple; bh=KQDMK2HRMwF1uUdXsBchy166izNLsZ/Y2d5yxmXnG8Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uNFHZCXstGFAp6iP8AWruSgNhk8OH3uc30KzKZM9uGhSq8BOswIw7c15cD8WxSYebsLjYqYGY8qxhthVDsyhv/0kKaW0RnARraXZ5NUWk/RSwEsYD5bkqdrZ47Wjv+LRA0kI/W5O40JADbtkbbZA6jXfIR8pE1u2lIxBQcVOlTE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=A0Rx66q5; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="A0Rx66q5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1750750552; bh=KQDMK2HRMwF1uUdXsBchy166izNLsZ/Y2d5yxmXnG8Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A0Rx66q5vICHiTowXM1NpS087RJ5dRFdWmB6bwEMwyimM3FDY/GoPVBYFKT2aK5QQ 82nXqKx2mrdUfU6k3O0P+wg6+H0ReZ1DOM/GfqJI8RbPOfOmX8zWuEmHU/RvqsFAw0 fGeY42AThHUVAE76iFpDqdLM2YXcWg4QDnJWXsbPc8kpEQjNuwujmH9VfS2/+/V34+ Rp+scPXTKqEFXVKb/D6rof06ws2nQy3kgLgRWtrDam6lmvnAOXMIHSYVd6Q8VB1ral vNBUYRi7uEWv25Y85O54zRYxgDZYjrEnpfjm3d+ta28yrbo5yoM4FHRVQ463zMgxjJ PqGY4jNbnIrDA== Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by bali.collaboradmins.com (Postfix) with ESMTPSA id 6B62B17E1090; Tue, 24 Jun 2025 09:35:51 +0200 (CEST) From: AngeloGioacchino Del Regno To: broonie@kernel.org Cc: lgirdwood@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com Subject: [PATCH v2 1/6] dt-bindings: regulator: Document MediaTek MT6316 PMIC Regulators Date: Tue, 24 Jun 2025 09:35:43 +0200 Message-ID: <20250624073548.29732-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250624073548.29732-1-angelogioacchino.delregno@collabora.com> References: <20250624073548.29732-1-angelogioacchino.delregno@collabora.com> 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" Add bindings for the regulators found in the MediaTek MT6316 PMIC, usually found in board designs using the MT6991 Dimensity 9400 and on MT8196 Kompanio SoC for Chromebooks. This chip is fully controlled by SPMI and has multiple variants providing different phase configurations. Signed-off-by: AngeloGioacchino Del Regno --- .../regulator/mediatek,mt6316-regulator.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mediatek,mt= 6316-regulator.yaml diff --git a/Documentation/devicetree/bindings/regulator/mediatek,mt6316-re= gulator.yaml b/Documentation/devicetree/bindings/regulator/mediatek,mt6316-= regulator.yaml new file mode 100644 index 000000000000..019c3c36997c --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mediatek,mt6316-regulator= .yaml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/mediatek,mt6316-regulator.yam= l# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT6316 SPMI PMIC Regulators + +maintainers: + - AngeloGioacchino Del Regno + +description: | + The MediaTek MT6316 PMIC is fully controlled by SPMI interface; it featu= res + four step-down DC/DC (buck) converters and has multiple variants, provid= ing + different phase configurations. In particular: + MT6316BP/VP: 2+2 Phase (buck 1+2, buck 3+4) + MT6316CP/HP/KP: 3+1 Phase (buck 1+2+4, buck 3) + MT6316DP/TP: 4+0 Phase (buck 1+2+3+4) + +properties: + compatible: + enum: + - mediatek,mt6316b-regulator + - mediatek,mt6316c-regulator + - mediatek,mt6316d-regulator + + vbuck1234: + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + const: mediatek,mt6316b-regulator + then: + patternProperties: + "^vbuck(12|34)$": + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + + - if: + properties: + compatible: + const: mediatek,mt6316c-regulator + then: + patternProperties: + "^vbuck(124|3)$": + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + + - if: + properties: + compatible: + const: mediatek,mt6316d-regulator + then: + properties: + vbuck1234: true + else: + properties: + vbuck1234: false + +examples: + - | + pmic { + regulators { + compatible =3D "mediatek,mt6316d-regulator"; + + vbuck1234 { + regulator-min-microvolt =3D <400000>; + regulator-max-microvolt =3D <1277500>; + regulator-always-on; + }; + }; + }; +... --=20 2.49.0