From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CF20273803 for ; Sun, 21 Jun 2026 08:19:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782029942; cv=none; b=lmItSq6EuXOsmUwfMnmbnMycrh+4D2zpr8ER6oALlZVhvmjfzVrr2bnnXzXZOy9hcOdqvHcxFlNdH67qr+sJelgjU60ffNmnM8th85yp9DNdVb2/fCGs10SUDBNVI4wjGTWBQJvcw6wWNeBTEMVsMGRhYJOX9zlr7Cluf1e1+LQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782029942; c=relaxed/simple; bh=Ke4oNBTIN5zFKMd3J9BHn1qxky5pbFNLbDwiYB1favc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rFkwKll0py/5WTMYKCbLrQb3h+4g2UzGvelo5CMVNnFEgcZ6zLVUfiKAN6VoSY6hE7G7wLjbBS1bMfCL3F8e7KgijVX6jc9EAgWPLyOUuoGldiRH4oVxjAVpccPL5vWHLcZWC9pcYlh+67WuUTQxtpZ/Yylz4iGQGjlUcxvnz1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fGxWQl1Q; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fGxWQl1Q" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-491609cdd8fso19423675e9.2 for ; Sun, 21 Jun 2026 01:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782029940; x=1782634740; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iVyCXR0GBeSupYN2T5Gv0/aCNSD3o/MI5RFA+1IIzVE=; b=fGxWQl1Qnu5G1Vf+/NKDAZiC0fdQ5CLThNwyQ9yQ/NeJ/ZEsXv9Mh+87LXMzTyzDQj mbr4BGGY9iN6oDsTCaUItUVHG4suUoTKV6kTjfHC6eX6j0fxRM/CBgZ+0Z/VNvHl/o1o 4WeFfWB/L/BvQmOZVSYmsVM2hdaoBt99qaD8BiYVYrVet6izFAkD7lw+hcb7Idh6jChO Nvs1iJ2z+1RrNO1LDEvqe7D7vMshJk1mS9SecPxTPuGyM3c494m5fSgyPYns3qntRRqd 66Xvw3CQE35SM+a9tdejDwpash0Xw7hNjKPBETShEOmHY0kjhQng2IKfN/sIFfLUphZr YVoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782029940; x=1782634740; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=iVyCXR0GBeSupYN2T5Gv0/aCNSD3o/MI5RFA+1IIzVE=; b=A4uCUpB8s7Voyxz9xpwEWzYi0hysXPFdOUUGSf5MVwQcytQWBrxWOpxwfruMGyRugT doe7q2nbdZx5z2cCCk2aaYrHgMuz76hfAAeCdtmwjVQ7hP9+bvfXw/JJZWNrltNFolDJ fTAeQgoKDQhBZKt/NL5kvTdqXN/p2EGTpu/PlWlkt+kPVQY4oRUbiEd4o1y2NfPq5GZu cvmUSmVnItKmgBnWA8dplb4UgUpYMyVJcgx8vKWmlTKSVXaGRzl4uQPQwFvycjzU3g0Q EgdzR0biYkRTvk4cgpn4xEJ0CHQiQfnfaVgi28csmkgit1QKZq+MfPEMF2EYoc+FeHJ7 PqSQ== X-Forwarded-Encrypted: i=1; AFNElJ+d4ESd+EMWCdWjEUyx9WBan6SbW3sduIr2MTzVo2I0+rGFQ4OmTB9hOzReiOtgKJbHrtxCt8MsbGJ38h8=@vger.kernel.org X-Gm-Message-State: AOJu0Yyu2hdejmasNmTQjKwZSKvwMcdfkuNjM6ulpW19w/kcxVzqJ2uc iv7xk1S0L50fuWtebFK7vp7biG+7kEIeoyIHsBmEKUaSL8sUUJkHDn9K X-Gm-Gg: AfdE7ckwveiDWdxYFBog+HmJD7A5lvgtMXtMjXk/ayPO1MyP4sWQiyGqtmufRJAL3SB yV7SZrv+FYi5tjfsLOL9ffxQpl0QX8nV29lr3sfLA+jNF0W2Uxu3a8S+gbFXSVG2hytapUoCS20 GC9SbC+sXgXJO/b2M+JX67Z4cI2Yy7MJwBz6hJSH7uRB1JWuWK8QknOgXVUHYKtWMuLaXgZxWJ9 3bRBNdMAY765hplXNBV4K5qbYyENKSOK9ObWKAdll5NOR1J9UcYzGHyTUrPxQfJyOzL6jkL3cQa h2+40gzZePmARDjulCfjshII/lzRg6yjNn28z//1VylLEMnYycytcPV3JTAUQtLt//QG94Ak+Ma EwpkT0jCupK0kcUGRb1MWkDnod9k5MnauU/q+soSqc5skvW3Cc6OLCnBVXKvqDH8Ly41fbPkAGU pAXawj/OX0roO2yFTW X-Received: by 2002:a05:600c:6990:b0:492:490b:a604 with SMTP id 5b1f17b1804b1-492490ba610mr85395625e9.37.1782029939962; Sun, 21 Jun 2026 01:18:59 -0700 (PDT) Received: from luca-vm.. ([81.56.18.151]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4923fe7b9e5sm194100445e9.10.2026.06.21.01.18.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jun 2026 01:18:59 -0700 (PDT) From: Luca Leonardo Scorcia To: linux-mediatek@lists.infradead.org Cc: Val Packett , Luca Leonardo Scorcia , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sen Chu , Sean Wang , Macpaul Lin , Lee Jones , Matthias Brugger , AngeloGioacchino Del Regno , Liam Girdwood , Mark Brown , Linus Walleij , Julien Massot , Louis-Alexis Eyraud , Fabien Parent , Akari Tsuyukusa , Chen Zhong , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org Subject: [PATCH v9 9/9] arm64: dts: mediatek: Add MediaTek MT6392 PMIC dtsi Date: Sun, 21 Jun 2026 10:13:34 +0200 Message-ID: <20260621081634.467858-10-l.scorcia@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260621081634.467858-1-l.scorcia@gmail.com> References: <20260621081634.467858-1-l.scorcia@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Val Packett Add the dtsi to be included by all boards using the MT6392 PMIC, providing support for regulator, keys, pinctrl and RTC. Import the new file in the shared device tree for the Pumpkin boards. Signed-off-by: Val Packett Signed-off-by: Luca Leonardo Scorcia --- arch/arm64/boot/dts/mediatek/mt6392.dtsi | 145 ++++++++++++++++++ .../boot/dts/mediatek/pumpkin-common.dtsi | 7 + 2 files changed, 152 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6392.dtsi diff --git a/arch/arm64/boot/dts/mediatek/mt6392.dtsi b/arch/arm64/boot/dts/mediatek/mt6392.dtsi new file mode 100644 index 000000000000..69d63c153d9e --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt6392.dtsi @@ -0,0 +1,145 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2019 MediaTek Inc. + * Copyright (c) 2024 Val Packett + * Copyright (c) 2026 Luca Leonardo Scorcia + */ + +#include +#include + +&pwrap { + pmic: pmic { + compatible = "mediatek,mt6392", "mediatek,mt6323"; + interrupt-controller; + #interrupt-cells = <2>; + + mt6392keys: keys { + compatible = "mediatek,mt6392-keys"; + + key-power { + linux,keycodes = ; + wakeup-source; + }; + + key-home { + linux,keycodes = ; + wakeup-source; + }; + }; + + mt6392pio: pinctrl { + compatible = "mediatek,mt6392-pinctrl"; + + gpio-controller; + #gpio-cells = <2>; + }; + + mt6392regulators: regulators { + compatible = "mediatek,mt6392-regulator"; + + /* Fixed supply defined in the data sheet */ + avddldo-supply = <&mt6392_vsys_reg>; + + mt6392_vcore_reg: vcore { + regulator-allowed-modes = ; + }; + mt6392_vproc_reg: vproc { + regulator-allowed-modes = ; + }; + mt6392_vsys_reg: vsys { + regulator-allowed-modes = ; + }; + mt6392_vaud28_reg: vaud28 { + regulator-allowed-modes = ; + }; + mt6392_vxo22_reg: vxo22 { + regulator-allowed-modes = ; + }; + mt6392_vaud22_reg: vaud22 { + regulator-allowed-modes = ; + }; + mt6392_vadc18_reg: vadc18 { + regulator-allowed-modes = ; + }; + mt6392_vcama_reg: vcama { }; + mt6392_vcn35_reg: vcn35 { + regulator-allowed-modes = ; + }; + mt6392_vio28_reg: vio28 { + regulator-allowed-modes = ; + }; + mt6392_vusb_reg: vusb { + regulator-allowed-modes = ; + }; + mt6392_vmc_reg: vmc { + regulator-allowed-modes = ; + }; + mt6392_vmch_reg: vmch { + regulator-allowed-modes = ; + }; + mt6392_vemc3v3_reg: vemc3v3 { + regulator-allowed-modes = ; + }; + mt6392_vcamaf_reg: vcamaf { + regulator-allowed-modes = ; + }; + mt6392_vgp1_reg: vgp1 { + regulator-allowed-modes = ; + }; + mt6392_vgp2_reg: vgp2 { + regulator-allowed-modes = ; + }; + mt6392_vefuse_reg: vefuse { + regulator-allowed-modes = ; + }; + mt6392_vm25_reg: vm25 { + regulator-allowed-modes = ; + }; + mt6392_vdig18_reg: vdig18 { }; + mt6392_vm_reg: vm { + regulator-allowed-modes = ; + }; + mt6392_vio18_reg: vio18 { + regulator-allowed-modes = ; + }; + mt6392_vcn18_reg: vcn18 { + regulator-allowed-modes = ; + }; + mt6392_vcamd_reg: vcamd { + regulator-allowed-modes = ; + }; + mt6392_vcamio_reg: vcamio { + regulator-allowed-modes = ; + }; + mt6392_vrtc_reg: vrtc { }; + }; + + mt6392rtc: rtc { + compatible = "mediatek,mt6392-rtc", "mediatek,mt6323-rtc"; + }; + }; +}; diff --git a/arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi b/arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi index 805fb82138a8..b19d5792bd89 100644 --- a/arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi +++ b/arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi @@ -6,6 +6,8 @@ #include +#include "mt6392.dtsi" + / { aliases { serial0 = &uart0; @@ -160,6 +162,11 @@ &i2c2 { status = "okay"; }; +&pmic { + interrupt-parent = <&pio>; + interrupts = <28 IRQ_TYPE_LEVEL_HIGH>; +}; + &uart0 { status = "okay"; }; -- 2.43.0