From: sashiko-bot@kernel.org
To: "Luca Leonardo Scorcia" <l.scorcia@gmail.com>
Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com,
mfd@lists.linux.dev, lee@kernel.org, conor+dt@kernel.org,
robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v9 9/9] arm64: dts: mediatek: Add MediaTek MT6392 PMIC dtsi
Date: Thu, 20 Aug 2026 12:58:49 +0000 [thread overview]
Message-ID: <20260820125850.3B34D1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260820122242.120039-10-l.scorcia@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Incorrect fallback compatible string 'mediatek,mt6323' on the PMIC node breaks older kernels.
--
--- Patch [9]: [PATCH v9 9/9] arm64: dts: mediatek: Add MediaTek MT6392 PMIC dtsi ---
commit 8aa00d786a3380122f097a78ee0ea676d704615c
Author: Val Packett <val@packett.cool>
arm64: dts: mediatek: Add MediaTek MT6392 PMIC dtsi
This patch adds the device tree include file for the MT6392 PMIC, which
provides support for regulators, keys, pinctrl, and RTC. It also includes
this new file in the shared device tree for Pumpkin boards.
> diff --git a/arch/arm64/boot/dts/mediatek/mt6392.dtsi b/arch/arm64/boot/dts/mediatek/mt6392.dtsi
> new file mode 100644
> index 0000000000000..69d63c153d9e5
> --- /dev/null
> +++ b/arch/arm64/boot/dts/mediatek/mt6392.dtsi
> @@ -0,0 +1,145 @@
[ ... ]
> +&pwrap {
> + pmic: pmic {
> + compatible = "mediatek,mt6392", "mediatek,mt6323";
[Severity: High]
Does providing the "mediatek,mt6323" fallback compatible string break older
kernels booting with this device tree?
The MFD core in older kernels will match the "mediatek,mt6323" string and
attempt to spawn the MT6323 sub-devices. However, the child nodes in this
device tree are not compatible with the MT6323 drivers, causing the regulators
to fail probing.
> + interrupt-controller;
> + #interrupt-cells = <2>;
[ ... ]
> + mt6392regulators: regulators {
> + compatible = "mediatek,mt6392-regulator";
> +
> + /* Fixed supply defined in the data sheet */
> + avddldo-supply = <&mt6392_vsys_reg>;
> +
> + mt6392_vcore_reg: vcore {
[Severity: High]
Since the top-level PMIC node claims compatibility with MT6323, wouldn't the
MT6323 regulator driver expect this child node to have the
"mediatek,mt6323-regulator" compatible string and specific sub-node names
like "buck_vcore" and "buck_vproc"?
Because this node uses "mediatek,mt6392-regulator" and names like "vcore" and
"vproc", the MT6323 MFD driver fails to associate the regulators with the
device tree. If the MT6323 drivers cannot parse this structure, should the
fallback compatible string be removed from the PMIC node to avoid tricking
older kernels?
> + regulator-allowed-modes = <MT6392_REGULATOR_MODE_NORMAL
> + MT6392_BUCK_MODE_FORCE_PWM>;
> + };
> + mt6392_vproc_reg: vproc {
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260820122242.120039-1-l.scorcia@gmail.com?part=9
next prev parent reply other threads:[~2026-08-20 12:58 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-20 12:19 [PATCH RESEND v9 0/9] Add support for MT6392 PMIC Luca Leonardo Scorcia
2026-08-20 12:19 ` [PATCH v9 1/9] dt-bindings: mfd: mt6397: Add " Luca Leonardo Scorcia
2026-08-20 12:40 ` sashiko-bot
2026-08-20 16:23 ` Luca Leonardo Scorcia
2026-08-20 12:20 ` [PATCH v9 2/9] dt-bindings: input: mtk-pmic-keys: Add MT6392 PMIC keys Luca Leonardo Scorcia
2026-08-20 12:44 ` sashiko-bot
2026-08-20 12:20 ` [PATCH v9 3/9] regulator: dt-bindings: Add MediaTek MT6392 PMIC Luca Leonardo Scorcia
2026-08-20 12:39 ` sashiko-bot
2026-08-20 12:20 ` [PATCH v9 4/9] mfd: mt6397: Use MFD_CELL_* to describe sub-devices Luca Leonardo Scorcia
2026-08-20 12:47 ` sashiko-bot
2026-08-20 12:20 ` [PATCH v9 5/9] mfd: mt6397: Add support for MT6392 PMIC Luca Leonardo Scorcia
2026-08-20 12:49 ` sashiko-bot
2026-08-20 12:20 ` [PATCH v9 6/9] input: keyboard: mtk-pmic-keys: Add MT6392 support Luca Leonardo Scorcia
2026-08-20 12:43 ` sashiko-bot
2026-08-20 12:20 ` [PATCH v9 7/9] pinctrl: mediatek: mt6397: Add MediaTek MT6392 Luca Leonardo Scorcia
2026-08-20 12:51 ` sashiko-bot
2026-08-20 12:20 ` [PATCH v9 8/9] regulator: Add MediaTek MT6392 regulator Luca Leonardo Scorcia
2026-08-20 12:40 ` sashiko-bot
2026-08-20 12:20 ` [PATCH v9 9/9] arm64: dts: mediatek: Add MediaTek MT6392 PMIC dtsi Luca Leonardo Scorcia
2026-08-20 12:58 ` sashiko-bot [this message]
2026-08-20 16:22 ` Luca Leonardo Scorcia
-- strict thread matches above, loose matches on Subject: below --
2026-06-21 8:13 [PATCH v9 0/9] Add support for MT6392 PMIC Luca Leonardo Scorcia
2026-06-21 8:13 ` [PATCH v9 9/9] arm64: dts: mediatek: Add MediaTek MT6392 PMIC dtsi Luca Leonardo Scorcia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260820125850.3B34D1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=l.scorcia@gmail.com \
--cc=lee@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.