Skip to content

Commit 88c531b

Browse files
YongWu-HFjoergroedel
authored andcommitted
arm64: dts: mt8195: Add dma-ranges for the parent "soc" node
After commit f1ad533 ("of: Fix "dma-ranges" handling for bus controllers"), the dma-ranges property is not allowed for the leaf node. But our iommu/dma-ranges is 16GB, we still expect separate the 16GB dma-range like: a) display is in 0 - 4GB; b) vcodec is in 4GB - 8GB; c) camera is in 8GB - 12GB. We can not expect all the masters add a parent node for them, especial for the existed drivers/nodes. Thus, we add whole the 16GB dma-ranges in the parent "soc" node. Signed-off-by: Yong Wu <yong.wu@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20230411093144.2690-14-yong.wu@mediatek.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 2aa6e5f commit 88c531b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@
364364
#size-cells = <2>;
365365
compatible = "simple-bus";
366366
ranges;
367+
dma-ranges = <0x0 0x0 0x0 0x0 0x4 0x0>;
367368

368369
gic: interrupt-controller@c000000 {
369370
compatible = "arm,gic-v3";

0 commit comments

Comments
 (0)