[PATCH 2/2] dt-bindings: arm: cpus: Add edac-enabled property

From: Vijay Balakrishna
Date: Wed Apr 09 2025 - 19:36:33 EST


From: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>

Some ARM Cortex CPUs like the A53, A57 and A72 have Error Detection And
Correction (EDAC) support on their L1 and L2 caches. This is implemented
in implementation defined registers, so usage of this functionality is
not safe in virtualized environments or when EL3 already uses these
registers. This patch adds a edac-enabled flag which can be explicitly
set when EDAC can be used.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
[vijayb: Added A72 to the commit message]
Signed-off-by: Vijay Balakrishna <vijayb@xxxxxxxxxxxxxxxxxxx>
---
Documentation/devicetree/bindings/arm/cpus.yaml | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml
index 2e666b2a4dcd..18d649a18552 100644
--- a/Documentation/devicetree/bindings/arm/cpus.yaml
+++ b/Documentation/devicetree/bindings/arm/cpus.yaml
@@ -331,6 +331,12 @@ properties:
corresponding to the index of an SCMI performance domain provider, must be
"perf".

+ edac-enabled:
+ $ref: '/schemas/types.yaml#/definitions/flag'
+ description:
+ Some CPUs support Error Detection And Correction (EDAC) on their L1 and
+ L2 caches. This flag marks this function as usable.
+
qcom,saw:
$ref: /schemas/types.yaml#/definitions/phandle
description: |
--
2.49.0