提交 119e1fda 编写于 作者: D Daode Huang 提交者: Xie XiuQi

dts: hisi: add support of hns smmu

Adds iommu1 node for hns smmu, and the lower level hns node named dsaf
will add the device id. The device id is the default value for host.
Signed-off-by: NKejian Yan <yankejian@huawei.com>
Signed-off-by: NDaode Huang <huangdaode@hisilicon.com>
上级 93569201
...@@ -298,6 +298,14 @@ ...@@ -298,6 +298,14 @@
#interrupt-cells = <2>; #interrupt-cells = <2>;
num-pins = <10>; num-pins = <10>;
}; };
mbigen_smmu_pcie_intc: intc_smmu_pcie {
msi-parent = <&its_dsa 0x40b0c>;
interrupt-controller;
#interrupt-cells = <2>;
num-pins = <3>;
};
}; };
mbigen_dsa@c0080000 { mbigen_dsa@c0080000 {
...@@ -317,6 +325,13 @@ ...@@ -317,6 +325,13 @@
#interrupt-cells = <2>; #interrupt-cells = <2>;
num-pins = <128>; num-pins = <128>;
}; };
mbigen_smmu_dsa_intc: intc_smmu_dsa {
msi-parent = <&its_dsa 0x40b20>;
interrupt-controller;
#interrupt-cells = <2>;
num-pins = <3>;
};
}; };
/** /**
...@@ -344,6 +359,20 @@ ...@@ -344,6 +359,20 @@
status = "disabled"; status = "disabled";
}; };
smmu1: smmu_dsa {
compatible = "arm,smmu-v3";
reg = <0x0 0xc0040000 0x0 0x20000>;
interrupt-parent = <&mbigen_smmu_dsa_intc>;
interrupts = <733 1>,
<734 1>,
<735 1>;
interrupt-names = "eventq", "gerror", "priq";
#iommu-cells = <1>;
dma-coherent;
smmu-cb-memtype = <0x0 0x1>;
hisilicon,broken-prefetch-cmd;
};
soc { soc {
compatible = "simple-bus"; compatible = "simple-bus";
#address-cells = <2>; #address-cells = <2>;
...@@ -448,6 +477,7 @@ ...@@ -448,6 +477,7 @@
reg-names = "ppe-base", "dsaf-base"; reg-names = "ppe-base", "dsaf-base";
interrupt-parent = <&mbigen_dsaf0>; interrupt-parent = <&mbigen_dsaf0>;
subctrl-syscon = <&dsa_subctrl>; subctrl-syscon = <&dsa_subctrl>;
iommus = <&smmu1 0x0>;
reset-field-offset = <0>; reset-field-offset = <0>;
interrupts = interrupts =
<576 1>, <577 1>, <578 1>, <579 1>, <580 1>, <576 1>, <577 1>, <578 1>, <579 1>, <580 1>,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册