dt-bindings: Add new bindings for CPU MPAM

Add new bindings for CPU MPAM.

Change-Id: I856a137958140d1bc34cdfeadf5ddda4030a5c62
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
This commit is contained in:
Huang Yiwei
2024-07-30 18:14:47 +08:00
parent 781cb25b20
commit b7ca0a4904
2 changed files with 79 additions and 30 deletions

View File

@@ -0,0 +1,75 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/soc/qcom/qcom,cpu-mpam.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Qualcomm Technologies, Inc. (QTI) CPU MPAM Driver
maintainers:
- Huang Yiwei <quic_hyiwei@quicinc.com>
description: |
The Qualcomm Technologies, Inc. (QTI) CPU MPAM Driver provides configfs nodes
for userspace clients to set MPAM configuration with CPUCP firmware via
consolidated SCMI protocol.
properties:
compatible:
items:
- const: qcom,cpu-mpam
reg:
items:
- description: address and size of CPUCP DTIM area for CPUCP MPAM monitor data
reg-names:
items:
- const: mon-base
child-node:
description: |
Available components of the CPU MPAM.
type: object
properties:
qcom,msc-id:
$ref: '/schemas/types.yaml#/definitions/uint32'
description: |
MSC id of the child node.
qcom,msc-name:
$ref: '/schemas/types.yaml#/definitions/string'
description: |
MSC name of the child node.
required:
- qcom,msc-id
- qcom,msc-name
additionalProperties: false
required:
- compatible
- reg
- reg-names
additionalProperties: false
examples:
- |
cpu_mpam: qcom,cpu_mpam {
compatible = "qcom,cpu-mpam";
reg = <0x17b6f000 0x400>;
reg-names = "mon-base";
L2_0 {
qcom,msc-id = <0>;
qcom,msc-name = "L2_0";
};
L2_1 {
qcom,msc-id = <1>;
qcom,msc-name = "L2_1";
};
};
...

View File

@@ -12,29 +12,17 @@ maintainers:
- Huang Yiwei <quic_hyiwei@quicinc.com> - Huang Yiwei <quic_hyiwei@quicinc.com>
description: | description: |
The Qualcomm Technologies, Inc. (QTI) MPAM Driver provides sysfs nodes for The Qualcomm Technologies, Inc. (QTI) MPAM Driver provides raw APIs to
userspace clients to communicate MPAM configuration settings with CPUCP communicate MPAM configuration settings with CPUCP firmware via
firmware via consolidated SCMI protocol. consolidated SCMI protocol.
properties: properties:
compatible: compatible:
enum:
- qcom,cpu-mpam
- qcom,platform-mpam
- qcom,mpam
reg:
items: items:
- description: address and size of CPUCP DTIM area for MPAM monitor data - const: qcom,mpam
reg-names:
items:
- const: mon-base
required: required:
- compatible - compatible
- reg
- reg-names
additionalProperties: false additionalProperties: false
@@ -42,19 +30,5 @@ examples:
- | - |
qcom_mpam: qcom,mpam { qcom_mpam: qcom,mpam {
compatible = "qcom,mpam"; compatible = "qcom,mpam";
reg = <0x17b6f000 0x400>;
reg-names = "mon-base";
};
cpu_mpam: qcom,cpu_mpam {
compatible = "qcom,cpu-mpam";
reg = <0x17b6f400 0x400>;
reg-names = "mon-base";
};
noc_bw_mpam: qcom,noc_bw_mpam {
compatible = "qcom,platform-mpam";
reg = <0x17b6f800 0x400>;
reg-names = "mon-base";
}; };
... ...