From: David Lechner <dlechner@baylibre.com>
To: "Nícolas F. R. A. Prado" <nfraprado@collabora.com>,
"Lee Jones" <lee@kernel.org>, "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"Alexandre Mergnat" <amergnat@baylibre.com>,
"Amjad Ouled-Ameur" <aouledameur@baylibre.com>,
"Bernhard Rosenkränzer" <bero@baylibre.com>,
"Fabien Parent" <fparent@baylibre.com>
Cc: kernel@collabora.com, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org
Subject: Re: [PATCH 2/2] arm64: dts: mediatek: mt8365: Describe infracfg-nao as a pure syscon
Date: Mon, 2 Feb 2026 11:20:30 -0600 [thread overview]
Message-ID: <25bc9ae2-5c27-407a-aae4-6c619367664a@baylibre.com> (raw)
In-Reply-To: <20250502-mt8365-infracfg-nao-compatible-v1-2-e40394573f98@collabora.com>
On 5/2/25 11:43 AM, Nícolas F. R. A. Prado wrote:
> The infracfg-nao register space at 0x1020e000 has different registers
> than the infracfg space at 0x10001000, and most importantly, doesn't
> contain any clock controls. Therefore it shouldn't use the same
> compatible used for the mt8365 infracfg clocks driver:
> mediatek,mt8365-infracfg. Since it currently does, probe errors are
> reported in the kernel logs:
>
> [ 0.245959] Failed to register clk ifr_pmic_tmr: -EEXIST
> [ 0.245998] clk-mt8365 1020e000.infracfg: probe with driver clk-mt8365 failed with error -17
>
> This register space is used only as a syscon for bus control by the
> power domain controller, so in order to properly describe it and fix the
> errors, set its compatible to a distinct compatible used exclusively as
> a syscon, drop the clock-cells, and while at it rename the node to
> 'syscon' following the naming convention.
>
> Fixes: 6ff945376556 ("arm64: dts: mediatek: Initial mt8365-evk support")
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> ---
> arch/arm64/boot/dts/mediatek/mt8365.dtsi | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi
> index e6d2b3221a3b7a855129258b379ae4bc2fd05449..49ad4dee9c4cf563743dc55d5e0b055cfb69986a 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi
> @@ -495,10 +495,9 @@ iommu: iommu@10205000 {
> #iommu-cells = <1>;
> };
>
> - infracfg_nao: infracfg@1020e000 {
> - compatible = "mediatek,mt8365-infracfg", "syscon";
> + infracfg_nao: syscon@1020e000 {
> + compatible = "mediatek,mt8365-infracfg-nao", "syscon";
> reg = <0 0x1020e000 0 0x1000>;
> - #clock-cells = <1>;
> };
>
> rng: rng@1020f000 {
>
Reviewed-by: David Lechner <dlechner@baylibre.com>
It looks like this never got picked up. I noticed this was a problem in U-Boot
because it was registering this as a clock provider. And I sent a similar patch
[1] recently that has also not been acted on yet. I prefer this patch since it
also fixes the node name to use a standard name. Who should be responsible for
actually picking up the patch?
[1]: https://lore.kernel.org/linux-mediatek/20251216-mtk-fix-infracfg_nao-compatibile-v1-1-d339b151ac81@baylibre.com/
next prev parent reply other threads:[~2026-02-02 17:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-02 16:43 [PATCH 0/2] Correct MT8365's infracfg-nao DT node description " Nícolas F. R. A. Prado
2025-05-02 16:43 ` [PATCH 1/2] dt-bindings: mfd: syscon: Add mediatek,mt8365-infracfg-nao Nícolas F. R. A. Prado
2025-05-06 8:26 ` AngeloGioacchino Del Regno
2025-05-06 16:30 ` Conor Dooley
2025-05-13 9:48 ` (subset) " Lee Jones
2025-05-02 16:43 ` [PATCH 2/2] arm64: dts: mediatek: mt8365: Describe infracfg-nao as a pure syscon Nícolas F. R. A. Prado
2025-05-06 8:26 ` AngeloGioacchino Del Regno
2026-02-02 17:20 ` David Lechner [this message]
2026-02-24 9:34 ` (subset) [PATCH 0/2] Correct MT8365's infracfg-nao DT node description " AngeloGioacchino Del Regno
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=25bc9ae2-5c27-407a-aae4-6c619367664a@baylibre.com \
--to=dlechner@baylibre.com \
--cc=amergnat@baylibre.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=aouledameur@baylibre.com \
--cc=bero@baylibre.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=fparent@baylibre.com \
--cc=kernel@collabora.com \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=nfraprado@collabora.com \
--cc=robh@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®