Commit 8cfa786d authored by Xingang Wang's avatar Xingang Wang Committed by Zheng Zengkai
Browse files

dt-bindings: mpam: refactor device tree node structure

arm64/mpam: refactor device tree structure to support multiple
devices

ascend inclusion
category: feature
bugzilla:
https://gitee.com/openeuler/kernel/issues/I49RB2


CVE: NA

---------------------------------------------------

To support multiple mpam device nodes, all nodes should be organized
as child of the same parent nodes. This makes sure that the mpam
discovery start and complete procedure in the right execution order.
Add modification in the devicetree documentation to record this.

Signed-off-by: default avatarXingang Wang <wangxingang5@huawei.com>
Signed-off-by: default avatarWang ShaoBo <bobo.shaobowang@huawei.com>
Reviewed-by: default avatarCheng Jian <cj.chengjian@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent c0ec28ac
Loading
Loading
Loading
Loading
+24 −21
Original line number Diff line number Diff line
@@ -28,8 +28,10 @@ and Monitoring (MPAM), for Armv8-A", MPAM interrupts(section 8.8).

Example:

mpam_memory0 {
mpam {
	compatible = "arm,mpam";

	mpam_memory0 {
		reg = <0x0 0x10000000 0x0 0x10000>;
		type = <2>; /* memory type */
		numa-node-id = <0>;
@@ -41,7 +43,6 @@ mpam_memory0 {
	};

	mpam_cache0 {
	compatible = "arm,mpam";
		reg = <0x0 0x20000000 0x0 0x10000>;
		type = <1>; /* cache type */
		cache-id = <0>;
@@ -52,3 +53,5 @@ mpam_cache0 {
		error-interrupt-flags = <0>;
		not-ready-max = <0>;
	};

};