[PATCH] arm64: dts: apple: t602x: Add identity dma-ranges mapping

Janne Grunau <[email protected]>
Newsgroups dev.linux.lists.asahi,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel
Message-ID <20260819-arm64-dts-apple-t6021-dma-ranges-v1-1-a00e109640f6@jannau.net>
From: Hector Martin <[email protected]>

Without this, the OF core ends up limiting all DMA masks to the default
32-bit, since that runs before drivers set up the proper DMA mask.

Skipping the highest page because it is impossible to express a full
64-bit range in the DT.

Fixes: a8f20eb60788 ("arm64: dts: apple: Add initial t6020/t6021/t6022 DTs")
Signed-off-by: Hector Martin <[email protected]>
Signed-off-by: Janne Grunau <[email protected]>
---
Add overlooked "/soc" "dma-ranges" property for t6020 and t6021 missed
in the initial addition of the M2 Pro/Max/Ultra device trees. They are
present in t6022.dtsi.
---
 arch/arm64/boot/dts/apple/t6021.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/apple/t6021.dtsi b/arch/arm64/boot/dts/apple/t6021.dtsi
index 62907ad6a546..1da3c42f6f88 100644
--- a/arch/arm64/boot/dts/apple/t6021.dtsi
+++ b/arch/arm64/boot/dts/apple/t6021.dtsi
@@ -28,6 +28,8 @@ soc {
 
 		ranges;
 		nonposted-mmio;
+		/* Required to get >32-bit DMA via DARTs */
+		dma-ranges = <0 0 0 0 0xffffffff 0xffffc000>;
 
 		// filled via templated includes at the end of the file
 	};

---
base-commit: 8d3ae59288f1e7d58d76558a6ee96d533bc5019f
change-id: 20260819-arm64-dts-apple-t6021-dma-ranges-bf676728374a

Best regards,
-- 
Janne Grunau <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.