From 10a6c2d43182f7fb93e3ad13c02d6d10515bc043 Mon Sep 17 00:00:00 2001 From: Naina Mehta Date: Wed, 21 Oct 2020 14:55:15 +0530 Subject: [PATCH 1/5] dt-bindings: LLCC: Add compatible property for Yupik Add "qcom,yupik-llcc" compatible property which matches the driver for Yupik platform. Change-Id: Ie95d00496deeab35bfe42c5c4f9b14b9daee70ce --- bindings/arm/msm/qcom,llcc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/arm/msm/qcom,llcc.txt b/bindings/arm/msm/qcom,llcc.txt index 9d722dcf4c72..64e1fe37e270 100644 --- a/bindings/arm/msm/qcom,llcc.txt +++ b/bindings/arm/msm/qcom,llcc.txt @@ -13,6 +13,7 @@ Properties: Value type: Definition: must be "qcom,sdm845-llcc" or "qcom,lahaina-llcc" or "qcom,shima-llcc" or "qcom,sdxlemur-llcc" + or "qcom,yupik-llcc" "qcom,llcc-v2" must be appended for V2 hardware. - reg: From 2a61ae11a60e8436a9154699cb9eb1910a5d5476 Mon Sep 17 00:00:00 2001 From: Naina Mehta Date: Wed, 21 Oct 2020 15:10:49 +0530 Subject: [PATCH 2/5] ARM: dts: msm: Add LLCC entry for Yupik Add Last Level Cache Controller (LLCC) device tree node for Yupik. Change-Id: Ic6cda9514922f004dc1f8225c03ed0e3f8150855 --- qcom/yupik.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qcom/yupik.dtsi b/qcom/yupik.dtsi index d5d4682d9a13..080c7c5bd909 100644 --- a/qcom/yupik.dtsi +++ b/qcom/yupik.dtsi @@ -700,6 +700,15 @@ }; }; + cache-controller@9200000 { + compatible = "qcom,yupik-llcc","qcom,llcc-v2"; + reg = <0x9200000 0xd0000>, <0x9600000 0x50000>; + reg-names = "llcc_base", "llcc_broadcast_base"; + cap-based-alloc-and-pwr-collapse; + clocks = <&aopcc QDSS_CLK>; + clock-names = "qdss_clk"; + }; + clk_virt: interconnect { compatible = "qcom,yupik-clk_virt"; #interconnect-cells = <1>; From 0883d0ce61866a3ec7f115729acc8569a2de3212 Mon Sep 17 00:00:00 2001 From: Naina Mehta Date: Wed, 21 Oct 2020 19:33:12 +0530 Subject: [PATCH 3/5] ARM: dts: msm: Add ipcc test nodes for Yupik Add IPCC test nodes for adsp, cdsp for Yupik. This allows testing IPCC ping from APPS to these subsystems. Change-Id: Id7a9f5be7d827cf41fbf69d72aa28f4b50c14b79 --- qcom/ipcc-test-yupik.dtsi | 5 +++++ qcom/yupik.dtsi | 1 + 2 files changed, 6 insertions(+) create mode 100644 qcom/ipcc-test-yupik.dtsi diff --git a/qcom/ipcc-test-yupik.dtsi b/qcom/ipcc-test-yupik.dtsi new file mode 100644 index 000000000000..9809b5abf881 --- /dev/null +++ b/qcom/ipcc-test-yupik.dtsi @@ -0,0 +1,5 @@ +#include "ipcc-test.dtsi" + +&soc { + /delete-node/ ipcc-self-ping-slpi; +}; diff --git a/qcom/yupik.dtsi b/qcom/yupik.dtsi index 080c7c5bd909..b12fe24ad080 100644 --- a/qcom/yupik.dtsi +++ b/qcom/yupik.dtsi @@ -773,6 +773,7 @@ #include "shima-gdsc.dtsi" #include "yupik-pinctrl.dtsi" #include "yupik-stub-regulator.dtsi" +#include "ipcc-test-yupik.dtsi" &gcc_pcie_0_gdsc { compatible = "regulator-fixed"; From 95191f2f9d09de66cb90629680a88b502194f028 Mon Sep 17 00:00:00 2001 From: Naina Mehta Date: Thu, 22 Oct 2020 09:59:35 +0530 Subject: [PATCH 4/5] ARM: dts: msm: Add core hang detection for Yupik Add qcom,core-hang-detect to device tree to enable MSM Core Hang Detection for all cores. Change-Id: I90907ab37a8c90512dd99b36c4f6e7b28ec60d08 --- qcom/yupik.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qcom/yupik.dtsi b/qcom/yupik.dtsi index b12fe24ad080..f3308be53bd5 100644 --- a/qcom/yupik.dtsi +++ b/qcom/yupik.dtsi @@ -700,6 +700,15 @@ }; }; + qcom,chd { + compatible = "qcom,core-hang-detect"; + label = "core"; + qcom,threshold-arr = <0x18000058 0x18010058 0x18020058 0x18030058 + 0x18040058 0x18050058 0x18060058 0x18070058>; + qcom,config-arr = <0x18000060 0x18010060 0x18020060 0x18030060 + 0x18040060 0x18050060 0x18060060 0x18070060>; + }; + cache-controller@9200000 { compatible = "qcom,yupik-llcc","qcom,llcc-v2"; reg = <0x9200000 0xd0000>, <0x9600000 0x50000>; From 373317c434752c7235cca3dba536644d9c342ea6 Mon Sep 17 00:00:00 2001 From: Naina Mehta Date: Thu, 22 Oct 2020 10:19:37 +0530 Subject: [PATCH 5/5] ARM: dts: msm: Enable Kryo erp driver for Yupik Add Kryo error reporting device tree node for Yupik SOC. Change-Id: I34247cf9cfe69c3096ce583c4036dc6bc0295832 --- qcom/yupik.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcom/yupik.dtsi b/qcom/yupik.dtsi index f3308be53bd5..1b351a0b7cf8 100644 --- a/qcom/yupik.dtsi +++ b/qcom/yupik.dtsi @@ -709,6 +709,13 @@ 0x18040060 0x18050060 0x18060060 0x18070060>; }; + kryo-erp { + compatible = "arm,arm64-kryo-cpu-erp"; + interrupts = , + ; + interrupt-names = "l1-l2-faultirq","l3-scu-faultirq"; + }; + cache-controller@9200000 { compatible = "qcom,yupik-llcc","qcom,llcc-v2"; reg = <0x9200000 0xd0000>, <0x9600000 0x50000>;