From 61cfe245e7465b957e34716b91d9c6fafec9be46 Mon Sep 17 00:00:00 2001 From: Vivek Kumar Date: Thu, 30 Jun 2022 13:16:18 +0530 Subject: [PATCH] ARM: dts: qcom: Add CDSP remoteproc in SDMSHRIKE Add remoteproc device node for CDSP subsystem in SDMSHRIKE target. Change-Id: I0c07df2c32531f214de585f7e4d220eaf4a6d017 --- bindings/remoteproc/qcom,adsp.txt | 1 + qcom/sdmshrike.dtsi | 41 ++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/bindings/remoteproc/qcom,adsp.txt b/bindings/remoteproc/qcom,adsp.txt index 73a0958f..904eebef 100644 --- a/bindings/remoteproc/qcom,adsp.txt +++ b/bindings/remoteproc/qcom,adsp.txt @@ -41,6 +41,7 @@ on the Qualcomm Technologies inc ADSP Hexagon core. "qcom,khaje-cdsp-pas" "qcom,khaje-modem-pas" "qcom,sdmshrike-adsp-pas" + "qcom,sdmshrike-cdsp-pas" - interrupts-extended: Usage: required diff --git a/qcom/sdmshrike.dtsi b/qcom/sdmshrike.dtsi index 986aa2a2..a6fc923e 100644 --- a/qcom/sdmshrike.dtsi +++ b/qcom/sdmshrike.dtsi @@ -414,7 +414,7 @@ reg = <0x0 0x98800000 0x0 0x100000>; }; - pil_cdsp_mem: cdsp_regions@98900000 { + rproc_cdsp_mem: rproc_cdsp_region@98900000 { no-map; reg = <0x0 0x98900000 0x0 0x1400000>; }; @@ -1424,6 +1424,45 @@ qcom,smem-states = <&adsp_smp2p_out 0>; qcom,smem-state-names = "stop"; }; + + cdsp_pas: remoteproc-cdsp@0x8300000 { + compatible = "qcom,sm8150-cdsp-pas"; + reg = <0x8300000 0x100000>; + status = "ok"; + + cx-supply = <&VDD_CX_LEVEL>; + cx-uV-uA = ; + reg-names = "cx"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + qcom,qmp = <&aoss_qmp>; + + interconnects = <&aggre2_noc MASTER_CRYPTO &mc_virt SLAVE_EBI1>; + interconnect-names = "crypto_ddr"; + + memory-region = <&rproc_cdsp_mem>; + + /* Inputs from ssc */ + interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 0 0>, + <&cdsp_smp2p_in 2 0>, + <&cdsp_smp2p_in 1 0>, + <&cdsp_smp2p_in 3 0>, + <&cdsp_smp2p_in 7 0>; + + interrupt-names = "wdog", + "fatal", + "handover", + "ready", + "stop-ack", + "shutdown-ack"; + + /* Outputs to turing */ + qcom,smem-states = <&cdsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + }; }; &firmware {