From 77db4f167c050bcaa4fb13f17e4b43f2171a5a0e Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Mon, 18 Sep 2023 13:25:25 -0700 Subject: [PATCH] ARM: dts: msm: Add cpucp scmi nodes for sun Add nodes to enable scmi communication to cpucp on sun. Change-Id: I574949e32e397047701f836d54115f56414ea023 Signed-off-by: Amir Vajid --- bindings/soc/qcom/qcom,cpucp.yaml | 4 ++- qcom/sun.dtsi | 46 +++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/bindings/soc/qcom/qcom,cpucp.yaml b/bindings/soc/qcom/qcom,cpucp.yaml index 44d610f7..d00b6306 100644 --- a/bindings/soc/qcom/qcom,cpucp.yaml +++ b/bindings/soc/qcom/qcom,cpucp.yaml @@ -12,7 +12,9 @@ description: | properties: compatible: - const: qcom,cpucp + enum: + - qcom,cpucp + - qcom,cpucp-v2 reg: items: diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index b34a6690..59d50cf5 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -1894,6 +1894,52 @@ thermal_zones: thermal-zones { }; + + mmio_sram: mmio-sram@0x17b4e000 { + #address-cells = <2>; + #size-cells = <2>; + compatible = "mmio-sram"; + reg = <0x0 0x17b4e000 0x0 0x400>; + ranges = <0x0 0x0 0x0 0x17b4e000 0x0 0x400>; + + cpu_scp_lpri: scmi-shmem@0 { + compatible = "arm,scmi-shmem"; + reg = <0x0 0x17b4e000 0x0 0x400>; + }; + }; + + cpucp: qcom,cpucp@0x17830000 { + compatible = "qcom,cpucp-v2"; + reg = <0x17830000 0x300>, + <0x16430000 0x4C08>; + #mbox-cells = <1>; + interrupts = ; + }; + + scmi: qcom,scmi { + #address-cells = <1>; + #size-cells = <0>; + compatible = "arm,scmi"; + mboxes = <&cpucp 0>; + mbox-names = "tx"; + shmem = <&cpu_scp_lpri>; + + scmi_perf: protocol@13 { + reg = <0x13>; + #clock-cells = <1>; + }; + + scmi_qcom: protocol@80 { + reg = <0x80>; + #clock-cells = <1>; + }; + }; + + cpucp_log: qcom,cpucp_log@0x81210000 { + compatible = "qcom,cpucp-log"; + reg = <0x81210000 0x10000>, <0x81220000 0x10000>; + mboxes = <&cpucp 1>; + }; }; &reserved_memory {