From 0bfe522f14206a5edb6b2f6e1adf1fc82bfb058c Mon Sep 17 00:00:00 2001 From: Shadab Naseem Date: Fri, 9 Aug 2019 01:26:21 +0530 Subject: [PATCH] ARM: dts: msm: add arm64-cpu-erp node for Bengal Add arm64-cpu-erp node for cortex_arm64_edac driver. Also add Documentation file for the cortex_arm64_edac driver. Change-Id: I771883daecd818eeee114e9b1da8dc3de772e389 --- bindings/edac/arm64_cache_erp.txt | 34 +++++++++++++++++++++++++++++++ qcom/bengal.dtsi | 13 ++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 bindings/edac/arm64_cache_erp.txt diff --git a/bindings/edac/arm64_cache_erp.txt b/bindings/edac/arm64_cache_erp.txt new file mode 100644 index 000000000000..8b600be55787 --- /dev/null +++ b/bindings/edac/arm64_cache_erp.txt @@ -0,0 +1,34 @@ +* ARM Cortex A53 / A57 cache error reporting driver + +Required properties: +- compatible: Should be "arm,arm64-cpu-erp" +- interrupts: List of hardware interrupts that may indicate an error condition + in the CPU subsystem, or in the L1 / L2 caches. At least one interrupt entry + is required. +- interrupt-names: Must contain one or more of the following IRQ types: + "pri-dbe-irq" - double-bit error interrupt for primary cluster + "sec-dbe-irq" - double-bit error interrupt for secondary cluster + "pri-ext-irq" - external bus error interrupt for primary cluster + "sec-ext-irq" - external bus error interrupt for secondary cluster + "cci-irq" - CCI error interrupt. If this property is present, having + the 'cci' reg-base defined using the 'reg' property is + recommended. + At least one irq entry is required. + +Optional properties: +- reg: Should contain physical address of the CCI register space +- reg-names: Should contain 'cci'. Must be present if 'reg' property is present +- poll-delay-msec: Indicates how often the edac check callback should be called. Time in msec. + +Example: + cpu_cache_erp { + compatible = "arm,arm64-cpu-erp"; + interrupt-names = "pri-dbe-irq", + "sec-dbe-irq", + "pri-ext-irq", + "sec-ext-irq"; + interrupts = <0 92 0>, + <0 91 0>, + <0 96 0>, + <0 95 0>; + }; diff --git a/qcom/bengal.dtsi b/qcom/bengal.dtsi index 53e7e648543e..ee69ac90270d 100644 --- a/qcom/bengal.dtsi +++ b/qcom/bengal.dtsi @@ -585,6 +585,19 @@ }; }; + arm64_cpu_erp { + compatible = "arm,arm64-cpu-erp"; + interrupt-names = "pri-dbe-irq", + "sec-dbe-irq", + "pri-ext-irq", + "sec-ext-irq"; + interrupts = <0 43 4>, + <0 44 4>, + <0 41 4>, + <0 42 4>; + poll-delay-ms = <5000>; + }; + qcom,msm-imem@c125000 { compatible = "qcom,msm-imem"; reg = <0xc125000 0x1000>;