From patchwork Fri Jul 28 08:34:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13331441 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 520B2C001DE for ; Fri, 28 Jul 2023 08:35:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/P2hHFKcD+Z9GV8OlLUQ7ELDYjoC6HSlkiQZWl8KQko=; b=uerqKvQZG3OHgp zpzuxFs9/Vb81ailn5vbJUHM1pqnf+CxDTmJ32rz7HOdFa1MC+Wv2cKE8mIF5Nk5MKhN32xkdHzLF ZXobsQylp8R2gcCvsp6CPOjnG0rZJCGEVLpI20W/B5fmp3s1Uhbjcco4tBFE//5VLbqVaIs3yIY7D mzY/OCuv4O72m9dn0Mi8v45pmUNqMvt+DQuyzAbEGvKuCk+6uFcGBgI2zr/AO7ovMHEf/BJN98IVo gnmEp4HxcVJ1d1wf7YXVI0DG+qButJcSVwPiah998+7NzPY+3V8hAZDRBb1sPulbWHYJpR+X9q2Fg QHACpwqu1KmD3Q9Ezugg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qPIvx-002QGr-2m; Fri, 28 Jul 2023 08:34:49 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qPIvs-002QBZ-2D for linux-arm-kernel@lists.infradead.org; Fri, 28 Jul 2023 08:34:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1690533284; x=1722069284; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=wB6X/8AQ5f02NzptERXJa7VYkVtINT/p5Q99fuqlrok=; b=YwX+l/nBtmgzYCoes8BmDR+WnkDPTzDH+ooeG162limfDk2fQM5k+g67 708IdQZDiCQkzN5dyNWXMQBhM2Eum3Zq7eJytXtHmmGyapAop1Cq/8uAx baiDp8QlWsOGz+A5t0IeagN/2koBTgTm3TBoin7Wtm1LnrPufII44Kufj /rOhdhQ0ZHYUyPf7d3D9we+nt+a9r1Q9c17s3hEArsoLHZhrfp1fokcqE F/qTroG9k+s0mpT6E7zlhmG4vvf4KV+DZ8rDpshraiL7SLySydxnT5HYh xctzMtyc8oRppyWyWLLjAO9IrEcO3mv+ar4sVxLaRrsZnVlfjEnuXT56H Q==; X-IronPort-AV: E=Sophos;i="6.01,236,1684792800"; d="scan'208";a="32171292" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 28 Jul 2023 10:34:39 +0200 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 9636C280075; Fri, 28 Jul 2023 10:34:39 +0200 (CEST) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Peng Fan Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] arm64: dts: imx93: Fix anatop node size Date: Fri, 28 Jul 2023 10:34:35 +0200 Message-Id: <20230728083435.118491-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230728_013445_121419_A05B870A X-CRM114-Status: GOOD ( 14.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Although the memory map of i.MX93 reference manual rev. 2 claims that analog top has start address of 0x44480000 and end address of 0x4448ffff, this overlaps with TMU memory area starting at 0x44482000, as stated in section 73.6.1. As PLL configuration registers start at addresses up to 0x44481400, as used by clk-imx93, reduce the anatop size to 0x2000, so exclude the TMU area but keep all PLL registers inside. Fixes: ec8b5b5058ea ("arm64: dts: freescale: Add i.MX93 dtsi support") Signed-off-by: Alexander Stein Reviewed-by: Peng Fan Reviewed-by: Jacky Bai --- Unfortunately TMU isn't listed in memory map, so it was a bit of guess work. This fixes the probe failure of qoriq_thermal: qoriq_thermal 44482000.tmu: can't request region for resource [mem 0x44482000-0x44482fff] qoriq_thermal 44482000.tmu: Failed to get memory region qoriq_thermal: probe of 44482000.tmu failed with error -16 /proc/iomem also shows it's claimed by anatop: > 44480000-4448ffff : 44450000.clock-controller anatop@44480000 arch/arm64/boot/dts/freescale/imx93.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index 4ec9df78f2050..6f85a05ee7e1a 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -379,7 +379,7 @@ mediamix: power-domain@44462400 { anatop: anatop@44480000 { compatible = "fsl,imx93-anatop", "syscon"; - reg = <0x44480000 0x10000>; + reg = <0x44480000 0x2000>; }; tmu: tmu@44482000 {