From nobody Thu Oct 9 01:13:11 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 10F1D253F12; Mon, 23 Jun 2025 12:00:45 +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=1750680046; cv=none; b=dKDEVlKxppQ5uJC/ck4GwOIJVXsUUihGESPzK7JaGANWY2jwA7xF2+S8YE53c7/nLOlZXtO6dY0Id1vGAP9sxyESoGcTPBtsbsdfLAFep4Ga1ICxPLJkxnGmEmHXa9dIidW9H3BC+sSD9SLtGw8yYVUTNPZMo5lOCb6DwfyXGRU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750680046; c=relaxed/simple; bh=2i9D/Zo0bHCIzZwFD7oHDpeE4683Ra7aYgCvchcNmYQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=akdNy3oFVuAwoq+VnLdikK/wyCrrCAjzA0az+00QOFW0kC7q9CH42Ask332EWUNwAIayaPSsAnqnkTS7ITtG5Nqf6oGJc9Do+FOrXUSi9eAIfx64vzJch5itiAPbJE8dHLus6FJOQTD9KlgFOKkIPz7Yz47Phwtk8ll/KQpY5V0= 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=VuJYd0GU; 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="VuJYd0GU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1750680043; bh=2i9D/Zo0bHCIzZwFD7oHDpeE4683Ra7aYgCvchcNmYQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VuJYd0GUJ9t58nxH7UOPVMBpXr/qFGoqikuKtWiTa+MMmn6HOJMvr7W7J+ZbqeVtv GZFm09BhnQnmSAnuDi9cF04YhMeENegB5j0likr0F67ctOPm/XsQ5IpM8LWKOHt/pq dTI7s6Tozlp8ldhSAEFpu84at9FU56wnAc/f9FITtt4RaA5TBz77YlS9xts3qBDRqX nnwV3Jb7H4zafw/HbJGqMU9jfs27k7pj3GGp/DRHzRkLA3UaJaly26LoyOPkHJN3XJ Hc918klkBYx6BJ9Ma424yZRdCU59Dlrvg3F0Hp0VtOoLAbuxvtEqgXL1bw3j7TCg0d m21tIXKPNO9uw== 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 DED9617E0EC0; Mon, 23 Jun 2025 14:00:42 +0200 (CEST) From: AngeloGioacchino Del Regno To: lee@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com Subject: [PATCH v1 1/2] dt-bindings: mfd: Add binding for MediaTek MT6363 series SPMI PMIC Date: Mon, 23 Jun 2025 14:00:37 +0200 Message-ID: <20250623120038.108891-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250623120038.108891-1-angelogioacchino.delregno@collabora.com> References: <20250623120038.108891-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 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. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/mfd/mediatek,mt6363.yaml | 98 +++++++++++++++++++ 1 file changed, 98 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..2ce57e659d12 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/mediatek,mt6363.yaml @@ -0,0 +1,98 @@ +# 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: + items: + - enum: + - mediatek,mt6363 + - mediatek,mt6373 + + reg: + maxItems: 1 + + '#address-cells': + const: 0 + + '#size-cells': + const: 0 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + "#interrupt-cells": + const: 3 + + adc: + type: object + $ref: /schemas/iio/adc/mediatek,mt6359-auxadc.yaml# + unevaluatedProperties: false + + regulators: + type: object + oneOf: + - $ref: /schemas/regulator/mediatek,mt6363-regulator.yaml# + - $ref: /schemas/regulator/mediatek,mt6373-regulator.yaml# + additionalProperties: true + + keys: + type: object + $ref: /schemas/input/mediatek,pmic-keys.yaml + unevaluatedProperties: false + +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 <0>; + #interrupt-cells =3D <3>; + + regulators { + compatible =3D "mediatek,mt6363-regulator"; + }; + }; + }; --=20 2.49.0