From nobody Wed Dec 17 15:59:17 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 98D552FBDE3; Mon, 27 Oct 2025 11:05:41 +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=1761563143; cv=none; b=agDjWBzWLcqN/LVX6rGR14QS1/WSwf+0VXpugrhHAO/xpM1PeKgJDUrewLSDByIQ9+xOxoNtqUbDY0ZCwKjOcBbiCpHwMA9z7sdOvBhclbqqUDXo8qrux8Q1kPJh9/FJ/Q7Vu4TlgUXpfC+Ppb6cK6TGQpDQy5Vhj3fYQ4Tfj+M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761563143; c=relaxed/simple; bh=StuHoOz6SeIEjMsnQ3ubTU/uWQlb0iuoCi6AQxCC9fI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=d/1KqDyTwADlesyjE+6JvPUckiTcUR2sNBoPXy0O4dsHKFAizwMMnyaHNErkQPHgmh7V+DYrysy+aTwDtknekJghcFlPk2rB1TnrVLq6uoOGrfqHrRLMKrnmMGRMcCdM65Fo3789KwkMtQqNxo2ho4BTMDu5G6V0TGD2Eg4Q+y4= 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=f3OVLcOX; 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="f3OVLcOX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1761563139; bh=StuHoOz6SeIEjMsnQ3ubTU/uWQlb0iuoCi6AQxCC9fI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f3OVLcOXBCVXbtrvS62o1dkE31Jqoo2NeL7vfides397nLhtsi3nUDMMBeqovGlZe Y8LpkSYktXmO+zWkJIUphigIlo4vXHNu569T2U+/IVU3IdB2ThQolLlv5eFPByQUGG Dx4o4U5Ex85+O/YHxP5uuOgqakNN/Lx/hfJZhmjlNlsw4b3A/uOihVGkpAPOtXiTan J+muWfOO/vTspWjW/nA/kzROjnBU0VZTDZ6bpYkAeJmcZiERlDk3zLnu+V8OWKa5mx dwJnGro03MKvRcYda5GW/30B8IO+E9DsBLU+BRC/nA280c3NGqCY7g/Kfc7lSJm/4i rh6vYQ+SO4UhA== 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 2FA9217E12D5; Mon, 27 Oct 2025 12:05:39 +0100 (CET) From: AngeloGioacchino Del Regno To: linux-mediatek@lists.infradead.org Cc: lee@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, lgirdwood@gmail.com, broonie@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, wenst@chromium.org, igor.belwon@mentallysanemainliners.org, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= Subject: [PATCH v11 8/9] dt-bindings: mfd: Add binding for MediaTek MT6363 series SPMI PMIC Date: Mon, 27 Oct 2025 12:05:26 +0100 Message-ID: <20251027110527.21002-9-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251027110527.21002-1-angelogioacchino.delregno@collabora.com> References: <20251027110527.21002-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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Add a binding for the MediaTek MT6363/6373 (and similar) multi function PMICs connected over SPMI. These PMICs are found on board designs using newer MediaTek SoCs, such as the Dimensity 9400 Smartphone chip, or the Chromebook MT8196 chip. Reviewed-by: N=C3=ADcolas F. R. A. Prado Reviewed-by: Rob Herring (Arm) Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/mfd/mediatek,mt6363.yaml | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/mediatek,mt6363.y= aml diff --git a/Documentation/devicetree/bindings/mfd/mediatek,mt6363.yaml b/D= ocumentation/devicetree/bindings/mfd/mediatek,mt6363.yaml new file mode 100644 index 000000000000..ee90d16053e9 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/mediatek,mt6363.yaml @@ -0,0 +1,109 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/mediatek,mt6363.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT6363 series SPMI PMICs multi-function device + +maintainers: + - AngeloGioacchino Del Regno + +description: | + Some MediaTek Power Management ICs (PMICs) found in board designs with + the Helio, Dimensity and/or Kompanio series of SoCs are interfaced to + the chip via the System Power Management Interface (SPMI) bus. + + These PMICs are multi-function devices with various sub modules. + For example, those may include one, or more of the following: + - Auxiliary ADC Controller + - Clock Controller + - eFuses + - GPIO Controller + - Interrupt Controller + - Keys + - LEDs Controller + - Regulators + - RTC + +properties: + compatible: + enum: + - mediatek,mt6363 + - mediatek,mt6373 + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + "#interrupt-cells": + const: 3 + +patternProperties: + "^adc@[0-9a-f]+$": + type: object + $ref: /schemas/iio/adc/mediatek,mt6359-auxadc.yaml# + + "^regulators@[0-9a-f]+$": + type: object + oneOf: + - $ref: /schemas/regulator/mediatek,mt6363-regulator.yaml# + - $ref: /schemas/regulator/mediatek,mt6373-regulator.yaml# + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + +additionalProperties: false + +examples: + - | + #include + #include + + spmi { + #address-cells =3D <2>; + #size-cells =3D <0>; + + pmic@4 { + compatible =3D "mediatek,mt6363"; + reg =3D <0x4 SPMI_USID>; + interrupts =3D <4 64 IRQ_TYPE_LEVEL_HIGH>; + interrupt-controller; + #address-cells =3D <1>; + #interrupt-cells =3D <3>; + #size-cells =3D <0>; + + regulators@30 { + compatible =3D "mediatek,mt6363-regulator"; + reg =3D <0x30>; + + vio18 { + regulator-name =3D "pp1800-vio18-s3"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-allowed-modes =3D <0 2>; + regulator-allow-set-load; + regulator-over-current-protection; + }; + }; + + adc@1000 { + compatible =3D "mediatek,mt6363-auxadc"; + reg =3D <0x1000>; + #io-channel-cells =3D <1>; + }; + }; + }; --=20 2.51.1