From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 57ABF3A3E8B for ; Thu, 26 Mar 2026 05:43:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774503805; cv=none; b=atFLdbAfSPAfi4rvYJS5ErjNKQfNcGVGANFCW5yWgUwvCl/q8s5orqQbziQ4Q8AhG6cF0ak+g9kx4/O7dyUOUKmJmp/CHId/+CcLnnknBS/5TuGqQWLVo5TJFy6lxLu8gezdncwf5s1MRxLkBHUeQgxT5YAhgSb9SJfmikUCpMU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774503805; c=relaxed/simple; bh=s27fcGErMBzKxY6t96v5alAOcgMfI4+l2mcmFG7QKYY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DO8lx2f5JNxUsYwMnFTZFGOIRZLv5xQY+Ucilz4Yvm1ffxO/JB/vSQSpuhlTrL9Ce1ZWZH38jyVnu+D5r7ftBuB+59aV04+H7tq8BztVykFuzWiV+egFuP1XIhqbR9P1K3kA1nhwjupIhwX+gq02/H/1hXTvfc0BAQ+9/F2rLI8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=j9VIybWW; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="j9VIybWW" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-82985f42664so332947b3a.0 for ; Wed, 25 Mar 2026 22:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1774503804; x=1775108604; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=MC8YZMrpOiVQXaQsK16bopjggMD7NER7fOf0qrCs7A0=; b=j9VIybWWMartLF4E6u3VULN362czlBOTKyMl0iyYmmoAGbIhvg3XMOa6JDr0RwEPfv 0s8bBNttKoQKhSHOwxycdbFzFsjM8f4Qcx+/rh0wlb2A2z2EFLB7wyAFHpMid1CKZCF3 ODrhVtSkmB2Jc+j7xaCNZFM9E3NOxLvsHVvls= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774503804; x=1775108604; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MC8YZMrpOiVQXaQsK16bopjggMD7NER7fOf0qrCs7A0=; b=euDfibZyxy45cM0YQishZZPyfJlJRvJD4eoVzIm5VGeibkSh4LgYeEE3drHrMnDy9S WqSVG2RtWXvzYfDkvO+w/7Tz4ucJBmWa8PlXPbrsEjvC4jYInOVGK570J8HN7KtQ+Qw9 nLNoaj9z48yfGg6mkeBaBx2k8mAJAp4kCw+cJvLmlhhj1gpd3wqmn7tY/c+KagEq0AJd fLeqEsPxC64ZVEmAUv9SOwSPZrCzdO7pd5Mt33Amsle++mL6wrRH/20Q4syt0ywknBeJ cPEajvoI2PWiajt6irIx5bfSyjSAwCmSn1Opwid1D5ya5y1wTjwJvqTDnB+hIukvnkqy FDDQ== X-Forwarded-Encrypted: i=1; AJvYcCUYfQGr58+SKdqOjQk2y3Xshj7PisHoCT2KKuzqEJG8bFNpoQDlKzJLw+GErUJtBHgEnHjsCCt88YRueQ==@vger.kernel.org X-Gm-Message-State: AOJu0YxZCA3uRgQV7ltxjFa1MjDa7oE984t8QbqF2C2VdZcOZaZoOUa4 feezR6fcd/2w8ZPUYhOk+8dGAqDnOBgpEKqyY7Ji3w0ZSs2GFnOMiy2IameUOXRTqg== X-Gm-Gg: ATEYQzxi12IsOufudGTP16NK/FEDuhriBp4uZmU+fAx8dYMjC+4l9quV/TnT6oya/kD 18NpZ+SMzltjWzl4OwDniTZNa+UEIGX/fWL0k6aA6oFVIDyuQa2sdEY80fCemtz91bmbA/o7UnE 4x/w2H1RNXrjj+dfvwG/pLH7f32zT/e30YODT6OgvFpLIFv/KnUFrhlpu5/TkTuhdkcMPop8tax 4GwgMs5Jz1TJ3xcVSYzUMJvyr5LThfQI6tHyifckUNk19/VQCeGmXfCfyHz+FtheGDsWOSPli9e lLtYAVgYnV6Dy+24Ku++J2NttkzDtWt482/4U3DmsIpQConKiMQ9laePU5lt19FFFlyiFoDwXCR OOVcNdkOVFC/OVhCql9On2K8wMNbAHCOtwXMB8A2BambxQifW9GE5Z94gDdyWayqASQPMyzEuIi 7T19Cxk6tdYofOOsO/qQ1ZQDgcmzq+IHBI6BEZ11B8X90CZrCOFbFs/Dk= X-Received: by 2002:a05:6a00:1ac7:b0:820:2f9b:fe31 with SMTP id d2e1a72fcca58-82c6dfb1e09mr6141757b3a.30.1774503803653; Wed, 25 Mar 2026 22:43:23 -0700 (PDT) Received: from google.com ([2a00:79e0:201d:8:3ed5:7e63:b37c:a7d7]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82c7d5d89b5sm1411849b3a.41.2026.03.25.22.43.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Mar 2026 22:43:23 -0700 (PDT) Date: Thu, 26 Mar 2026 13:43:16 +0800 From: Chen-Yu Tsai To: AngeloGioacchino Del Regno Cc: wens@kernel.org, Luca Leonardo Scorcia , linux-mediatek@lists.infradead.org, Val Packett , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sen Chu , Sean Wang , Macpaul Lin , Lee Jones , Matthias Brugger , Linus Walleij , Liam Girdwood , Mark Brown , Gary Bisson , Julien Massot , Louis-Alexis Eyraud , Fabien Parent , 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: Re: [PATCH v3 9/9] arm64: dts: mt6392: add mt6392 PMIC dtsi Message-ID: <20260326054316.GB910813@google.com> References: <20260317184507.523060-1-l.scorcia@gmail.com> <20260317184507.523060-10-l.scorcia@gmail.com> <28102417-4a2a-4e29-afbd-d0f2aa76074b@collabora.com> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <28102417-4a2a-4e29-afbd-d0f2aa76074b@collabora.com> On Wed, Mar 18, 2026 at 06:22:42PM +0100, AngeloGioacchino Del Regno wrote: > Il 18/03/26 14:54, Chen-Yu Tsai ha scritto: > > On Wed, Mar 18, 2026 at 8:39 PM AngeloGioacchino Del Regno > > wrote: > > > > > > Il 17/03/26 19:43, Luca Leonardo Scorcia ha scritto: > > > > From: Val Packett > > > > > > > > Add the dts to be included by all boards using the MT6392 PMIC. > > > > > > > > Signed-off-by: Val Packett > > > > Signed-off-by: Luca Leonardo Scorcia > > > > --- > > > > arch/arm64/boot/dts/mediatek/mt6392.dtsi | 141 +++++++++++++++++++++++ > > > > 1 file changed, 141 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..fbf6f671524c > > > > --- /dev/null > > > > +++ b/arch/arm64/boot/dts/mediatek/mt6392.dtsi > > > > @@ -0,0 +1,141 @@ > > > > +// SPDX-License-Identifier: GPL-2.0 > > > > +/* > > > > + * Copyright (c) 2019 MediaTek Inc. > > > > + * Copyright (c) 2024 Val Packett > > > > + */ > > > > + > > > > +#include > > > > + > > > > +&pwrap { > > > > + pmic: pmic { > > > > + compatible = "mediatek,mt6392", "mediatek,mt6323"; > > > > + interrupt-controller; > > > > + #interrupt-cells = <2>; > > > > + > > > > + keys { > > > > + compatible = "mediatek,mt6392-keys"; > > > > + > > > > + key-power { > > > > + linux,keycodes = ; > > > > + wakeup-source; > > > > + }; > > > > + > > > > + key-home { > > > > + linux,keycodes = ; > > > > + wakeup-source; > > > > + }; > > > > + }; > > > > + > > > > + pio6392: pinctrl { > > > > + compatible = "mediatek,mt6392-pinctrl"; > > > > + > > > > + gpio-controller; > > > > + #gpio-cells = <2>; > > > > + }; > > > > + > > > > + rtc { > > > > + compatible = "mediatek,mt6392-rtc", > > > > + "mediatek,mt6323-rtc"; > > > > + }; > > > > + > > > > + regulators { > > > > + compatible = "mediatek,mt6392-regulator"; > > > > + > > > > + mt6392_vproc_reg: buck_vproc { > > > > > > s/buck//g > > > > > > Also, no min/max voltages?! > > > > We really shouldn't set min/max voltages in the PMIC dtsi file. > > > > The min/max voltages are supposed to be the intersection of the > > consumers acceptable operating ranges. The min/max of the regulator > > itself is already implied by the model / compatible. > > > > Your point is fair, but it's also true that some of the regulators are not > really meant to ever output anything different than what they are supposed > to, though, with slight variations being possible... I guess the best option > here is to leave declaring voltages to board DTs instead, which is sensible > in the end. > > Okay, agreed. Let's go with no voltages. > > Reminder for myself: there's a bunch of PMIC devicetrees to cleanup in here... And to be honest, even the default names are not needed. They are again implied by the compatible, and even the regulator's own node name. So either we could have a whole bunch of empty regulator nodes with labels for easy reference, or just have the upper level "regulators" wrapper node with a "mt63??_regulators" label for board dts files to reference and add the _used_ regulators to. If you agree, I can do the cleanup work. ChenYu