1 From ad5077a8da6e8aad01b7b6ad979b52c39118969d Mon Sep 17 00:00:00 2001
2 From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
3 Date: Tue, 17 Dec 2019 13:26:37 +0200
4 Subject: [PATCH] arm64: dts: lx2160a: add iommu-map property to pci nodes
6 Add the iommu-map property to the pci nodes so that the firmware
7 fixes it up with the required values thus enabling iommu for
8 devices connected over pci.
10 Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
11 Acked-by: Li Yang <leoyang.li@nxp.com>
13 arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 6 ++++++
14 1 file changed, 6 insertions(+)
16 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
17 +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
19 bus-range = <0x0 0xff>;
20 ranges = <0x82000000 0x0 0x40000000 0x80 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
22 + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */
23 #interrupt-cells = <1>;
24 interrupt-map-mask = <0 0 0 7>;
25 interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
27 bus-range = <0x0 0xff>;
28 ranges = <0x82000000 0x0 0x40000000 0x88 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
30 + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */
31 #interrupt-cells = <1>;
32 interrupt-map-mask = <0 0 0 7>;
33 interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
35 bus-range = <0x0 0xff>;
36 ranges = <0x82000000 0x0 0x40000000 0x90 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
38 + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */
39 #interrupt-cells = <1>;
40 interrupt-map-mask = <0 0 0 7>;
41 interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
43 bus-range = <0x0 0xff>;
44 ranges = <0x82000000 0x0 0x40000000 0x98 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
46 + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */
47 #interrupt-cells = <1>;
48 interrupt-map-mask = <0 0 0 7>;
49 interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
51 bus-range = <0x0 0xff>;
52 ranges = <0x82000000 0x0 0x40000000 0xa0 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
54 + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */
55 #interrupt-cells = <1>;
56 interrupt-map-mask = <0 0 0 7>;
57 interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>,
59 bus-range = <0x0 0xff>;
60 ranges = <0x82000000 0x0 0x40000000 0xa8 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
62 + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */
63 #interrupt-cells = <1>;
64 interrupt-map-mask = <0 0 0 7>;
65 interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,