From nobody Tue Oct 7 03:48:55 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 042AA246BA5; Tue, 15 Jul 2025 14:03:25 +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=1752588206; cv=none; b=DrfZ7M1A46sPfUdl6w/r2BqYo0sTa5L9EHeyGvN+pvVX7HUttY7pKaaqyOotRB/TSq43+7mMJ/YC9ql2ACny6Z+16w9fVCHogHsJ+2blMvivJql5J8unzlaphLO6OlTr7drrelEGjmts3n2SYdEH1X4RMfgThNa697HSIxO17x0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752588206; c=relaxed/simple; bh=jnLahFdOle+kdBFWcsmM4wbEEgZj1Y6U4wpAbmfELGs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=L9cICG1inzghKKVQUJOQx/S7uHp/GHjcsf5OxSq9f8W23RBoQhuQj6hH5YtU99HTSxUrzMxSrQhfJ8Y2ei9yPLfVhtetMJoZRouYImXw63aR5dZ+vfOjmipAHti6N35eZkR+4mu5+CS8tunQvd7cIUzI73Y+pgTi306WRGh8t4c= 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=K8L8c7nD; 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="K8L8c7nD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1752588203; bh=jnLahFdOle+kdBFWcsmM4wbEEgZj1Y6U4wpAbmfELGs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K8L8c7nDVN7+Fwuspz0LszXmoJvTRjIQNDzBnb+BcrKveF0nMl1FaTl+u6yNmV/6Z Z/WgsA6hO5IhbS/A11HujrMgk05Od5yHdFdUAjNk75Tw4oLj5EeHuLgeXSiEQVZ8gu adxL6ScyvIJhlQOwwe1yJYUH//N+pH+f7XD2HNXrpuTuQmcca1aT030KGDbRhheDPM BqDkx3hYbo0q42W88bqtWlgzaI0f3s4eGuBjQC3W6XEVp0raI4TE/EWhSING8KSLkm R6poiSsZbVJFssQans17qHtZKoYz8h50zQiz8hQspHG3pJX/GnBw8x+z32oqhPAfoj zeGU+MaV+heiA== 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 D6D8F17E0D15; Tue, 15 Jul 2025 16:03:22 +0200 (CEST) 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, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= Subject: [PATCH v5 7/8] dt-bindings: mfd: Add binding for MediaTek MT6363 series SPMI PMIC Date: Tue, 15 Jul 2025 16:02:23 +0200 Message-ID: <20250715140224.206329-8-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250715140224.206329-1-angelogioacchino.delregno@collabora.com> References: <20250715140224.206329-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 Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/mfd/mediatek,mt6363.yaml | 110 ++++++++++++++++++ 1 file changed, 110 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..b19755b3104c --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/mediatek,mt6363.yaml @@ -0,0 +1,110 @@ +# 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# + properties: + reg: + maxItems: 1 + unevaluatedProperties: false + + "^regulators@[0-9a-f]+$": + type: object + properties: + compatible: + contains: + enum: + - mediatek,mt6363-regulator + - mediatek,mt6373-regulator + oneOf: + - $ref: /schemas/regulator/mediatek,mt6363-regulator.yaml# + - $ref: /schemas/regulator/mediatek,mt6373-regulator.yaml# + additionalProperties: true + +required: + - compatible + - reg + - '#address-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>; + }; + + adc@1000 { + compatible =3D "mediatek,mt6363-auxadc"; + reg =3D <0x1000>; + #io-channel-cells =3D <1>; + }; + }; + }; --=20 2.50.1