From nobody Wed Oct 1 22:19: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 227D82D1F40; Wed, 1 Oct 2025 11:13:29 +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=1759317212; cv=none; b=dIX41ywDv7FjIs7sl3M5HHlZug00rHW6fmc87AI1Klky7vvPGztFe7L9Sp96zMdFD45pMd3r4lsyJsK/N6FBYFtQSF0DZ0NV3BEWVcESlqgNhHoqLVUcPQgvpMAyMAUTfWrduab8j8jDyfhQYS47pjeH+GD7J32i6gXwpurTQCM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759317212; c=relaxed/simple; bh=xwk4sWX6+fIswK6amcWeS5fyVbFvM/T7gIHLYoZeKWU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=p13PMnPywEB+N7m1zlFqTeiUAenl/iiSMLWuHN9zbPfL4hFTqfA6Jsm0jwA1AvPbJoG2wROpBwWSVB1dlNuR0J6tOUX6T/g04SFbo1NF4424UeQIFv0Nhbef6OHhShpeXkzGqQlekyAIJ0H0FqQ52DBPA9r8naeApcHQrYpPqgk= 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=mwb3Se2y; 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="mwb3Se2y" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1759317208; bh=xwk4sWX6+fIswK6amcWeS5fyVbFvM/T7gIHLYoZeKWU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mwb3Se2yXQ8yjXKyH2UKDI5ZAYHqC7wLV4fyzDy3aFk4DlTcPYiGp94zyIUL5h8Cx 3PtR2FtcNASG3bxAl5Y4C/qWagh2vtZL8l1bNteIpYc7sSNjvz83U/fKvLwkPFkzHd JibBe9q6lQblZ6J4nlnAeu3kTVR0nfT17WvE0VHE66i1s2fyZWNDZcbrPXfkr2Q7hA 4gUYyyuuPW2XMqCZXSBIxJVr9UiV/3eQ8XGy4DRDKbVGa66IEed3sIrLl5Zjnsp7AH BnHeEyBpm/ZR6Uzs+LU8er9NG65Cf+32tc8aVbLcyZ5dCDPjmZadkC51TUvWvSmHAS C+Mnfkc3/kNyQ== 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 D390417E0286; Wed, 1 Oct 2025 13:13:27 +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, igor.belwon@mentallysanemainliners.org, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= Subject: [PATCH v6 8/9] dt-bindings: mfd: Add binding for MediaTek MT6363 series SPMI PMIC Date: Wed, 1 Oct 2025 13:13:15 +0200 Message-ID: <20251001111316.31828-9-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251001111316.31828-1-angelogioacchino.delregno@collabora.com> References: <20251001111316.31828-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 Link: https://lore.kernel.org/r/20250715140224.206329-8-angelogioacchino.de= lregno@collabora.com Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Rob Herring (Arm) --- .../bindings/mfd/mediatek,mt6363.yaml | 115 ++++++++++++++++++ 1 file changed, 115 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..6f477186a9c6 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/mediatek,mt6363.yaml @@ -0,0 +1,115 @@ +# 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 + 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>; + + 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.0