Skip to content

Commit e2b1e63

Browse files
nfrapradogregkh
authored andcommitted
arm64: dts: mediatek: mt8365: Describe infracfg-nao as a pure syscon
[ Upstream commit 0651c24 ] 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: 6ff9453 ("arm64: dts: mediatek: Initial mt8365-evk support") Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Reviewed-by: David Lechner <dlechner@baylibre.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 7164b39 commit e2b1e63

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

arch/arm64/boot/dts/mediatek/mt8365.dtsi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,9 @@
495495
#iommu-cells = <1>;
496496
};
497497

498-
infracfg_nao: infracfg@1020e000 {
499-
compatible = "mediatek,mt8365-infracfg", "syscon";
498+
infracfg_nao: syscon@1020e000 {
499+
compatible = "mediatek,mt8365-infracfg-nao", "syscon";
500500
reg = <0 0x1020e000 0 0x1000>;
501-
#clock-cells = <1>;
502501
};
503502

504503
rng: rng@1020f000 {

0 commit comments

Comments
 (0)