arm64: dts: imx8qm: add smmu
authorPeng Fan <peng.fan@nxp.com>
Thu, 31 Oct 2019 08:42:58 +0000 (16:42 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:20:28 +0000 (11:20 +0800)
Add smmu node, enable smmu for usdhc/fec/usb/sata

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi
arch/arm64/boot/dts/freescale/imx8qm-ss-hsio.dtsi
arch/arm64/boot/dts/freescale/imx8qm.dtsi

index b566b81..00ebdc6 100644 (file)
@@ -6,16 +6,29 @@
 
 &fec1 {
        compatible = "fsl,imx8qm-fec", "fsl,imx6sx-fec";
+       iommus = <&smmu 0x12 0x7f80>;
 };
 
 &fec2 {
        compatible = "fsl,imx8qm-fec", "fsl,imx6sx-fec";
+       iommus = <&smmu 0x12 0x7f80>;
 };
 
 &usdhc1 {
        compatible = "fsl,imx8qm-usdhc", "fsl,imx8qxp-usdhc";
+       iommus = <&smmu 0x11 0x7f80>;
 };
 
 &usdhc2 {
        compatible = "fsl,imx8qm-usdhc", "fsl,imx8qxp-usdhc";
+       iommus = <&smmu 0x11 0x7f80>;
+};
+
+&usdhc3 {
+       compatible = "fsl,imx8qm-usdhc", "fsl,imx8qxp-usdhc";
+       iommus = <&smmu 0x11 0x7f80>;
+};
+
+&usbotg3 {
+       iommus = <&smmu 0x4 0x7f80>;
 };
index 4cd5a17..7dce914 100644 (file)
                                <&pd IMX_SC_R_SERDES_0>,
                                <&pd IMX_SC_R_SERDES_1>,
                                <&pd IMX_SC_R_HSIO_GPIO>;
+               iommus = <&smmu 0x13 0x7f80>;
                status = "disabled";
        };
 };
index 85cf878..d435042 100755 (executable)
                clock-output-names = "xtal_24MHz";
        };
 
+       smmu: iommu@51400000 {
+               compatible = "arm,mmu-500";
+               interrupt-parent = <&gic>;
+               reg = <0 0x51400000 0 0x40000>;
+               #global-interrupts = <1>;
+               #iommu-cells = <2>;
+               interrupts = <0 32 4>,
+                            <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>,
+                            <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>,
+                            <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>,
+                            <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>,
+                            <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>,
+                            <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>,
+                            <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>,
+                            <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>;
+       };
+
        scu {
                compatible = "fsl,imx-scu";
                mbox-names = "tx0", "tx1", "tx2", "tx3",