From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 E133E4AFE19 for ; Wed, 2 Sep 2026 19:36:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788377792; cv=none; b=i7/6gBDKK8y47FMQ47AHqLQbVOgFNysm8xFaKGo2Kid3NWXd+rwf9ThsEAbuI1q+kB3LN1u2Xbq75Zhx5PfSYLqC94t50qFpHQ1ecBQIg0CdYJ/q6qnRG3BD9VLqiKpszO38+HEhMot/zkVtxIYz7nRivmDf8d+PJy3ihUMOl4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788377792; c=relaxed/simple; bh=6mU+rkd6x5CiFPfsOHOsBRBAd3bkLMfW6WBBQJm5CH0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mxyrJ/5WBx4aPYez94mq5YmGk9yapNKmOTH/g3Fmk8IOXsA5xqpLApQDrkwTfMMoQ9JK8YSj6zpNb9pNXqbMxImEFJRMiei7nmq+5Z88tqIJ5CL7+3SIzg9U6zu78lHUoS3jQS7SURnAIX8tQqtG8g45mnUQZoo96scC0Y61Y5E= 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=QBUTTQfW; arc=none smtp.client-ip=209.85.221.44 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="QBUTTQfW" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-482e257a23aso1097701f8f.0 for ; Wed, 02 Sep 2026 12:36:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788377773; x=1788982573; 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:content-type; bh=cFxjyshR5Gj0Fri/Nz5n1/KkLMrahfjaF4DTCzQtdSA=; b=QBUTTQfWgc3IXDOvInuc0RNWC5lmpFCtC/hFgMmGf71gZocvkV59oigVx/y7zCPgms XTQP9ELGVMYkmcSfzZchimDvAtNr+6cbntlHoqqPxT9FXvBelnYWeHbr4VSCgQLuvBcA 3HJe1yBQJkfKp46fOu0w6fNeKxAmwPO1ZHnJ91XgXbtgYFCj863KWx9EUph72YVdDzv+ Lm2u6tT8F/qBtNOXQzevNSEJSbLjbvaTw0uFpI9TW12GdB2cztFvapkLAg+9YQb324+Y zfbqBdOnCfD7cmyUiJTroB0yiX2okLVQIy88rhLe3zzUQkNKit5vP6iTS51dbZJiH8a2 4WEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788377773; x=1788982573; 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:content-type; bh=cFxjyshR5Gj0Fri/Nz5n1/KkLMrahfjaF4DTCzQtdSA=; b=smjCHzNcAguesFPc2Ew6V3R/uEnL/Z21FKtZYiHrdhrC5K8ay377xwNIpOdN/EO+4M rBlSc/h8w2TmXKoa76wiTc4cuA0GakilYM0MVP22d6yeo8FKLy89XwxXK7sOySmXRpha XuqTs7wh7SZxsawttKjCbI2hUpwzfQ8+P793w14PQcsDhtedyneARCJrMBT+8Dl+qr3E eh6uN8qZht72tVYL8pCkgXFYx60yELLTNtTlifNIUougILEqG8W1ww7+7mxroLlBuyd8 oQDdEzaFYLSfZFMJQwG4Fi++6YmiDsEU/c+dZb/fWMN/E3B9iSiJro1wAYAPrm8Zy3l6 UAjw== X-Forwarded-Encrypted: i=1; AKwUvBwZcTEPNrSddUk+gn6uLtsAxjaevtGkq/S+3Vwt/8TK6IxrhH3iPDMaRNUW/3+NRChNH+KX7g+oAKrCcg==@vger.kernel.org X-Gm-Message-State: AFuF++nlhRTomJ9cxArCvEjpaoLd8IRdkPjDnvJ8xZ6+49LiEj6PZIlo +VMpZ3PoICmf3prryQzVU18eySfzFIkmu0nPBPeio8vC/e80uk0Vm3WX X-Gm-Gg: AYBFou0daYKWK8NlddoylbK7u/kbeuGJ8A/cPos/FnnU6KIOdNMxDAI5TdVU0xVicMt XK0yrq4N4Nv5B57Byqm4kkuBQbFJhnhYjMQWEGfomzSNaxy28PDydupui/JQEJrGTWEeBqBO3Pj PH5/AylHLwjXZBxIqSfzzrLeu2BP8Qju4MnEA1mN7GCSaYTMGy69xj/npWocnqD1238DXEGgZa2 4gex5hG/bAhSpGusXtTtCqcvuQlKyPmHsE3EK2y0WBclh6b/LNSJHuF3HazW+MAiTTyfSKoKZKg Jt6K+FD3yL0R1WSNZ5c54dSmdPayxkhcORohmUh9E6Dv2S+mbsIEZtNBR8FJ+H1HySpXjEPadoN GQPuOfWAxBGzX3WjguPZPpQtuyjIuyszXSzELla8hs8xfii+uwkpAiFilKjzhMfpkt1A0cfmt6q bgXEk9TOOB4psaJDFwvrB2pfQHQ8z9aMw9DtlSwNnratFoeij8QVbn6GaUgA== X-Received: by 2002:a5d:5f8a:0:b0:480:c5:d635 with SMTP id ffacd0b85a97d-4847b6295e6mr14936972f8f.0.1788377773399; Wed, 02 Sep 2026 12:36:13 -0700 (PDT) Received: from luca-vm.lan ([154.61.61.58]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-484492cdc37sm8889191f8f.34.2026.09.02.12.36.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Sep 2026 12:36:13 -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 , 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, mfd@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org Subject: [PATCH v10 9/9] arm64: dts: mediatek: Add MediaTek MT6392 PMIC dtsi Date: Wed, 2 Sep 2026 21:25:45 +0200 Message-ID: <20260902193351.185771-10-l.scorcia@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260902193351.185771-1-l.scorcia@gmail.com> References: <20260902193351.185771-1-l.scorcia@gmail.com> Precedence: bulk X-Mailing-List: linux-input@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..cc4770d70246 --- /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"; + 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