From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 90A3FCD98F0 for ; Sun, 21 Jun 2026 08:19:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=iVyCXR0GBeSupYN2T5Gv0/aCNSD3o/MI5RFA+1IIzVE=; b=ds1rHSpqyjI4RW9XW4H37dHGrf yQriJsLXvEgpAvaPJaeieuhn4EsjRgn0W/5xx2baAZ6uoPcKs0850Ykfv23Z3R+QDJI+mheDtWx7B Q9t4HRroWAd8GphlBUAN2vA0RBpzveMmR76RgL4HjophcLdhNrqYkLyNNWnZvxSAiDbHQOWgwI0iD J9L64iZgz/YQ+wN0U0gl1yMbd8KgVrG9JJ65Hsj98xes837KpoC5CPQGn5vL/a9iqCIiEqLUyb3w1 nr2wjfE7lb4WY/d+T9JnU2AKDoMM32aobapTlooK0IGFnW0CSCmPMq4p4wfLmpy2oeVJ0aI0vD7JC aLN7g5gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wbDOS-00000003qV2-3gwr; Sun, 21 Jun 2026 08:19:04 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wbDOP-00000003qRY-3Jxq for linux-arm-kernel@lists.infradead.org; Sun, 21 Jun 2026 08:19:03 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-490ac357c55so36385525e9.1 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=lists.infradead.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=RTySa0LrjwDwszBuDIw2Z8+C5gH8vAPUdYQX3AjefJVQ1aAsvul9hc8HE+Hj6ntxW5 F1v8YhTW5H0qeeUfIgyXuG140JMJWNgA7vYXADm2r7v7s0zcFD3enjlWqZfd2HKzhdm3 ZTqTzNWggr5pyQCqvHH4hFLSVy6/RAH+JuhMXtnDvj7u2GF74BL0tAXyq/4O2FHkkZUB uqZpEjPM64TcnVYkUulvw4rk23p1yG3nXCDkqne/Ezjvq/+Kp8T3d5KiM83N9sS1v8SE CIFN+zEeUnTKTYjEvXxv7ZUmJ23WBbFe2iJeyU/g0y+PkWr8HrRC2HfTesZxeQ3zclEE vTzg== 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=jqzD2VDtH/TVjiyZEsL8i7mw+yroVaoBIx5+9wY1Tm+xEydoo8mOfHNAVUwTA83Bf+ VTKKVMo9sgDmbcCJibpOTSnzD/Sp9aVmcSXXBP/NGulMZb31n1kzrlke4Ahmqhgh9v0R ttpwId7STps1b9ZwuV6jtXIRSZY6dluZXlTeS75DcTNBrKd6vVKqqbbLETPMmu0zYg5C Z0jqI0ciGgEJrtxnujLjGl2oGr/spkdlXhWqBON9J6f/JIj1ZM0qum4Se0Ykb02Ebuye eDKpKg7L0swYzjnAaJptQwglp5vFgZjNyKAIlIThBE+/tUtaHx5Dy/bTEaZJfCVm6Hho 6krg== X-Forwarded-Encrypted: i=1; AFNElJ8/WIVLaMunt/Vt0HqLxEERNHLVN95qdILoqUCFW+gXy2eza52odYQwwxy6TEyPNl7IRZ98Fll0/5MlsptXrWQ+@lists.infradead.org X-Gm-Message-State: AOJu0YxuNwR2TKnW6xdcUIcwiPOhAa2/9MgJjPIzzQ3CQDNRNjDkR2kQ LLvbiTJw+x4I/L4OXE65oiB5ymrpQ1/k6zrCIgTDSWNCfHV1JYZAO0n/ X-Gm-Gg: AfdE7ckQ2hBk26ITToE2ennpzBp8b8Kd4agNHEOZop9MDnkw9aW6fvpGqVTiFqXY2iM QLd3GV+tkjRMQhSAsBzaBKXhW1wGpQB+IpNWwamNT6DwGKn5N2y6ISnkPNuso0Pw4Jundz2m81R 3QLR66TpDS04UGk0hcMTbjFKIlO8aLPMyMneC+exNk4BgjCNGlRD1PVmglACava9T6amfa2IPQq yXEWCZwNPeoPDwrQBepbU9kNWMPx9vRNUttdk5pv5gD6KbhbiUarKzhHUw+m5N+gB/VjJxYxTcw 4RNi5QsR1HRWYVndFBv3kqUI0aLwVAv0VkqvjH9moLlayZnzphGLV3NTQvXsUnxr8WZvYE9Dcss rf8VfnE+VlwNhMmGP7nPrVuw/dLuISPf9RaLjg/zNh6YXIH4JeWQSaTuI8ypYFrdFn4SgLHmQVS BbsG+o3xHccafD9JrV 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> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260621_011901_862024_81312DE4 X-CRM114-Status: GOOD ( 17.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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