* [PATCH 0/2] Correct MT8365's infracfg-nao DT node description as a pure syscon
@ 2025-05-02 16:43 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
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Nícolas F. R. A. Prado @ 2025-05-02 16:43 UTC (permalink / raw)
To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Alexandre Mergnat,
Amjad Ouled-Ameur, Bernhard Rosenkränzer, Fabien Parent
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, Nícolas F. R. A. Prado
Introduce a new compatible to the binding and use it in the infracfg-nao
node in the mt8365.dtsi to correctly describe the node and prevent probe
errors.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
Nícolas F. R. A. Prado (2):
dt-bindings: mfd: syscon: Add mediatek,mt8365-infracfg-nao
arm64: dts: mediatek: mt8365: Describe infracfg-nao as a pure syscon
Documentation/devicetree/bindings/mfd/syscon.yaml | 1 +
arch/arm64/boot/dts/mediatek/mt8365.dtsi | 5 ++---
2 files changed, 3 insertions(+), 3 deletions(-)
---
base-commit: 37ff6e9a2ce321b7932d3987701757fb4d87b0e6
change-id: 20250502-mt8365-infracfg-nao-compatible-46d4db7f54f7
Best regards,
--
Nícolas F. R. A. Prado <nfraprado@collabora.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/2] dt-bindings: mfd: syscon: Add mediatek,mt8365-infracfg-nao
2025-05-02 16:43 [PATCH 0/2] Correct MT8365's infracfg-nao DT node description as a pure syscon Nícolas F. R. A. Prado
@ 2025-05-02 16:43 ` Nícolas F. R. A. Prado
2025-05-06 8:26 ` AngeloGioacchino Del Regno
` (2 more replies)
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
2026-02-24 9:34 ` (subset) [PATCH 0/2] Correct MT8365's infracfg-nao DT node description " AngeloGioacchino Del Regno
2 siblings, 3 replies; 9+ messages in thread
From: Nícolas F. R. A. Prado @ 2025-05-02 16:43 UTC (permalink / raw)
To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Alexandre Mergnat,
Amjad Ouled-Ameur, Bernhard Rosenkränzer, Fabien Parent
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, Nícolas F. R. A. Prado
The register space described by DT node of compatible
mediatek,mt8365-infracfg-nao exposes a variety of unrelated registers,
including registers for controlling bus protection on the MT8365 SoC,
which is used by the power domain controller through a syscon.
Add this compatible to the syscon binding.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
Documentation/devicetree/bindings/mfd/syscon.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/mfd/syscon.yaml b/Documentation/devicetree/bindings/mfd/syscon.yaml
index c6bbb19c3e3e2245b4a823df06e7f361da311000..f655ec18cc2d96028d17e19d704b62f6d898fea4 100644
--- a/Documentation/devicetree/bindings/mfd/syscon.yaml
+++ b/Documentation/devicetree/bindings/mfd/syscon.yaml
@@ -190,6 +190,7 @@ properties:
- mediatek,mt8135-pctl-a-syscfg
- mediatek,mt8135-pctl-b-syscfg
- mediatek,mt8173-pctl-a-syscfg
+ - mediatek,mt8365-infracfg-nao
- mediatek,mt8365-syscfg
- microchip,lan966x-cpu-syscon
- microchip,mpfs-sysreg-scb
--
2.49.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/2] arm64: dts: mediatek: mt8365: Describe infracfg-nao as a pure syscon
2025-05-02 16:43 [PATCH 0/2] Correct MT8365's infracfg-nao DT node description as a pure syscon 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-02 16:43 ` Nícolas F. R. A. Prado
2025-05-06 8:26 ` AngeloGioacchino Del Regno
2026-02-02 17:20 ` David Lechner
2026-02-24 9:34 ` (subset) [PATCH 0/2] Correct MT8365's infracfg-nao DT node description " AngeloGioacchino Del Regno
2 siblings, 2 replies; 9+ messages in thread
From: Nícolas F. R. A. Prado @ 2025-05-02 16:43 UTC (permalink / raw)
To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Alexandre Mergnat,
Amjad Ouled-Ameur, Bernhard Rosenkränzer, Fabien Parent
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, Nícolas F. R. A. Prado
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 {
--
2.49.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] arm64: dts: mediatek: mt8365: Describe infracfg-nao as a pure syscon
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
1 sibling, 0 replies; 9+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-05-06 8:26 UTC (permalink / raw)
To: Nícolas F. R. A. Prado, Lee Jones, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
Alexandre Mergnat, Amjad Ouled-Ameur, Bernhard Rosenkränzer,
Fabien Parent
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
Il 02/05/25 18:43, Nícolas F. R. A. Prado ha scritto:
> 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>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: mfd: syscon: Add mediatek,mt8365-infracfg-nao
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
2 siblings, 0 replies; 9+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-05-06 8:26 UTC (permalink / raw)
To: Nícolas F. R. A. Prado, Lee Jones, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
Alexandre Mergnat, Amjad Ouled-Ameur, Bernhard Rosenkränzer,
Fabien Parent
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
Il 02/05/25 18:43, Nícolas F. R. A. Prado ha scritto:
> The register space described by DT node of compatible
> mediatek,mt8365-infracfg-nao exposes a variety of unrelated registers,
> including registers for controlling bus protection on the MT8365 SoC,
> which is used by the power domain controller through a syscon.
>
> Add this compatible to the syscon binding.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: mfd: syscon: Add mediatek,mt8365-infracfg-nao
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
2 siblings, 0 replies; 9+ messages in thread
From: Conor Dooley @ 2025-05-06 16:30 UTC (permalink / raw)
To: Nícolas F. R. A. Prado
Cc: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Alexandre Mergnat,
Amjad Ouled-Ameur, Bernhard Rosenkränzer, Fabien Parent,
kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek
[-- Attachment #1: Type: text/plain, Size: 519 bytes --]
On Fri, May 02, 2025 at 12:43:21PM -0400, Nícolas F. R. A. Prado wrote:
> The register space described by DT node of compatible
> mediatek,mt8365-infracfg-nao exposes a variety of unrelated registers,
> including registers for controlling bus protection on the MT8365 SoC,
> which is used by the power domain controller through a syscon.
>
> Add this compatible to the syscon binding.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: (subset) [PATCH 1/2] dt-bindings: mfd: syscon: Add mediatek,mt8365-infracfg-nao
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 ` Lee Jones
2 siblings, 0 replies; 9+ messages in thread
From: Lee Jones @ 2025-05-13 9:48 UTC (permalink / raw)
To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Alexandre Mergnat,
Amjad Ouled-Ameur, Bernhard Rosenkränzer, Fabien Parent,
Nícolas F. R. A. Prado
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
On Fri, 02 May 2025 12:43:21 -0400, Nícolas F. R. A. Prado wrote:
> The register space described by DT node of compatible
> mediatek,mt8365-infracfg-nao exposes a variety of unrelated registers,
> including registers for controlling bus protection on the MT8365 SoC,
> which is used by the power domain controller through a syscon.
>
> Add this compatible to the syscon binding.
>
> [...]
Applied, thanks!
[1/2] dt-bindings: mfd: syscon: Add mediatek,mt8365-infracfg-nao
commit: cbb005b91726ea1024b6261bc1062bac19f6d059
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] arm64: dts: mediatek: mt8365: Describe infracfg-nao as a pure syscon
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
1 sibling, 0 replies; 9+ messages in thread
From: David Lechner @ 2026-02-02 17:20 UTC (permalink / raw)
To: Nícolas F. R. A. Prado, Lee Jones, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Alexandre Mergnat, Amjad Ouled-Ameur,
Bernhard Rosenkränzer, Fabien Parent
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
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/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: (subset) [PATCH 0/2] Correct MT8365's infracfg-nao DT node description as a pure syscon
2025-05-02 16:43 [PATCH 0/2] Correct MT8365's infracfg-nao DT node description as a pure syscon 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-02 16:43 ` [PATCH 2/2] arm64: dts: mediatek: mt8365: Describe infracfg-nao as a pure syscon Nícolas F. R. A. Prado
@ 2026-02-24 9:34 ` AngeloGioacchino Del Regno
2 siblings, 0 replies; 9+ messages in thread
From: AngeloGioacchino Del Regno @ 2026-02-24 9:34 UTC (permalink / raw)
To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, Alexandre Mergnat, Amjad Ouled-Ameur,
Bernhard Rosenkränzer, Fabien Parent,
Nícolas F. R. A. Prado
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
On Fri, 02 May 2025 12:43:20 -0400, Nícolas F. R. A. Prado wrote:
> Introduce a new compatible to the binding and use it in the infracfg-nao
> node in the mt8365.dtsi to correctly describe the node and prevent probe
> errors.
>
>
Applied to v7.0-next/dts64, thanks!
[2/2] arm64: dts: mediatek: mt8365: Describe infracfg-nao as a pure syscon
commit: 0651c24658360706c30588cec0a12c05edb03e9a
Cheers,
Angelo
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2026-02-24 9:34 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-02 16:43 [PATCH 0/2] Correct MT8365's infracfg-nao DT node description as a pure syscon 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
2026-02-24 9:34 ` (subset) [PATCH 0/2] Correct MT8365's infracfg-nao DT node description " AngeloGioacchino Del Regno
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®