1 From 317d4e577ede33f226d24bd12a8edbaafee22e57 Mon Sep 17 00:00:00 2001
2 From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
3 Date: Thu, 17 May 2018 11:56:27 +0300
4 Subject: [PATCH] arm64: dts: ls104x: add iommu-map to pci controllers
6 The pci controllers are also behind the smmu so add the iommu-map
7 property to reflect this. The bootloader needs to patch the stream id
8 ranges to some sane values.
10 Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
12 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 3 +++
13 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 3 +++
14 2 files changed, 6 insertions(+)
16 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
17 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
22 + iommu-map = <0 &smmu 0 1>; /* update by bootloader */
24 bus-range = <0x0 0xff>;
25 ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */
30 + iommu-map = <0 &smmu 0 1>; /* update by bootloader */
32 bus-range = <0x0 0xff>;
33 ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */
38 + iommu-map = <0 &smmu 0 1>; /* update by bootloader */
40 bus-range = <0x0 0xff>;
41 ranges = <0x81000000 0x0 0x00000000 0x50 0x00010000 0x0 0x00010000 /* downstream I/O */
42 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
43 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
48 + iommu-map = <0 &smmu 0 1>; /* update by bootloader */
50 bus-range = <0x0 0xff>;
51 ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */
56 + iommu-map = <0 &smmu 0 1>; /* update by bootloader */
58 bus-range = <0x0 0xff>;
59 ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */
64 + iommu-map = <0 &smmu 0 1>; /* update by bootloader */
66 bus-range = <0x0 0xff>;
67 ranges = <0x81000000 0x0 0x00000000 0x50 0x00010000 0x0 0x00010000 /* downstream I/O */