Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06649C6FD19 for ; Mon, 13 Mar 2023 20:59:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229790AbjCMU7M (ORCPT ); Mon, 13 Mar 2023 16:59:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjCMU7K (ORCPT ); Mon, 13 Mar 2023 16:59:10 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1482BEB54 for ; Mon, 13 Mar 2023 13:58:24 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id cn6so713850pjb.2 for ; Mon, 13 Mar 2023 13:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678741102; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=r2U9HWf+sA0AVg4GQ6mhyf88FiJRsJOROsFvX9o9iAQ=; b=qiMZqhnHJoEkAcldGIp5VLSoiJ1HoRNLJpTkAcL606wau+CZ5F50xtoQNfzoh+Dr20 WQAVwPVtZ+h5JR2HZO9NZ44x2WFz5D/a73+Nh1NbnEH0cmfu9nOrIbA47XAxgNBndD7x Ile+yocu1jqQxeD6M/W30bU3Lmkjur6lr3OTjHIQqg9ZHg37GoeVi6dLCcrUqtSs3neL rKLieywLiDBp/ey1kIVLiL0wO2K2Y5722s3ZFR9bxXNH/rcPIGf0va5LkklNxksQ4/yR bbxYRKKZbTjsNGiycvaTAiFP8TbOXgDnLhwMidTchh82UtZPHCGTFo/mzRaN9AxA866K jWig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678741102; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=r2U9HWf+sA0AVg4GQ6mhyf88FiJRsJOROsFvX9o9iAQ=; b=tWfFaP9pJWddVWYRqLIMqDF2nBiRQSfiRuW3Bvvwtzid51tbxW0m1pgNlWXMJ3TEaK V57lWfvtljcQB8C32Sus0gn1tR9cvE0aw6V8LaGef/+6ZRA+n9AmewCCIJ5rcktzP9+g OoC9xv1gfWLS68WpHf8D55Wf1vm9vzGkg8vKaWHDZKVShTakbToZh20Q3Z1QeuFeL03I gs+HLVgw0AD4vspesxnhwVJFCSF8WIgFs/4XdaMpwpLr2PeFs3fhfGFZiVQDswCNHpyN J8CYcqTzIUu9HYKawUuUTGZzxnqLJRZxqTYYq6RykUg1mst1PqDlam79qXe0L3CEXJ0J aHyQ== X-Gm-Message-State: AO0yUKUSFaLk4/icX9ECnszrqSVaLJKbaGQ91lR8zMA5BHPxKY0SMv/q lB6vygDn6tVgXPbfQ6iebF8KLqG1vDOqP/zVVuc= X-Google-Smtp-Source: AK7set8T/NTAAjk73Imef5Nz7v59fZZ963ggOdpW0Lw4pjUXEgdffVMNaSKrNZzqy9OcJFcuXyfHvQ== X-Received: by 2002:a05:6a20:7f8f:b0:d0:15c9:4e67 with SMTP id d15-20020a056a207f8f00b000d015c94e67mr31698886pzj.19.1678741102356; Mon, 13 Mar 2023 13:58:22 -0700 (PDT) Received: from ?IPV6:2401:4900:1c5e:4a3e:15d0:d540:3861:ef0e? ([2401:4900:1c5e:4a3e:15d0:d540:3861:ef0e]) by smtp.gmail.com with ESMTPSA id z22-20020aa791d6000000b005ac8a51d591sm163626pfa.21.2023.03.13.13.58.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Mar 2023 13:58:21 -0700 (PDT) Message-ID: <5922cd55-060c-d1b1-0eb2-0875439e4268@linaro.org> Date: Tue, 14 Mar 2023 02:28:16 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH] arm64: dts: qcom: sm6115: Add remoteproc nodes Content-Language: en-US To: linux-arm-msm@vger.kernel.org, andersson@kernel.org Cc: agross@kernel.org, konrad.dybcio@linaro.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com, linux-remoteproc@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org References: <20230128054256.2100501-1-bhupesh.sharma@linaro.org> From: Bhupesh Sharma In-Reply-To: <20230128054256.2100501-1-bhupesh.sharma@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On 1/28/23 11:12 AM, Bhupesh Sharma wrote: > Add the adsp, cdsp and modem remoteproc nodes to sm6115. > > Signed-off-by: Bhupesh Sharma > --- > - Depends on the dt-binding and driver change submitted via [1]. > [1]. https://lore.kernel.org/linux-arm-msm/20230128053504.2099620-1-bhupesh.sharma@linaro.org Gentle Ping. Since the dependencies (dt-bindings and driver changes) have already been merged into linux-next, this patch can now be applied. Thanks, Bhupesh > arch/arm64/boot/dts/qcom/sm6115.dtsi | 184 +++++++++++++++++++++++++++ > 1 file changed, 184 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi > index 3c66f998a81b..3540cd24af5c 100644 > --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi > @@ -1309,6 +1309,39 @@ dispcc: clock-controller@5f00000 { > #power-domain-cells = <1>; > }; > > + remoteproc_mpss: remoteproc@6080000 { > + compatible = "qcom,sm6115-mpss-pas"; > + reg = <0x06080000 0x100>; > + > + interrupts-extended = <&intc GIC_SPI 307 IRQ_TYPE_EDGE_RISING>, > + <&modem_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, > + <&modem_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, > + <&modem_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, > + <&modem_smp2p_in 3 IRQ_TYPE_EDGE_RISING>, > + <&modem_smp2p_in 7 IRQ_TYPE_EDGE_RISING>; > + interrupt-names = "wdog", "fatal", "ready", "handover", > + "stop-ack", "shutdown-ack"; > + > + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; > + clock-names = "xo"; > + > + power-domains = <&rpmpd SM6115_VDDCX>; > + > + memory-region = <&pil_modem_mem>; > + > + qcom,smem-states = <&modem_smp2p_out 0>; > + qcom,smem-state-names = "stop"; > + > + status = "disabled"; > + > + glink-edge { > + interrupts = ; > + label = "mpss"; > + qcom,remote-pid = <1>; > + mboxes = <&apcs_glb 12>; > + }; > + }; > + > stm@8002000 { > compatible = "arm,coresight-stm", "arm,primecell"; > reg = <0x08002000 0x1000>, > @@ -1921,6 +1954,157 @@ funnel_apss1_in: endpoint { > }; > }; > > + remoteproc_adsp: remoteproc@ab00000 { > + compatible = "qcom,sm6115-adsp-pas"; > + reg = <0x0ab00000 0x100>; > + > + interrupts-extended = <&intc GIC_SPI 282 IRQ_TYPE_EDGE_RISING>, > + <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, > + <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, > + <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, > + <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; > + interrupt-names = "wdog", "fatal", "ready", > + "handover", "stop-ack"; > + > + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; > + clock-names = "xo"; > + > + power-domains = <&rpmpd SM6115_VDD_LPI_CX>, > + <&rpmpd SM6115_VDD_LPI_MX>; > + > + memory-region = <&pil_adsp_mem>; > + > + qcom,smem-states = <&adsp_smp2p_out 0>; > + qcom,smem-state-names = "stop"; > + > + status = "disabled"; > + > + glink-edge { > + interrupts = ; > + label = "lpass"; > + qcom,remote-pid = <2>; > + mboxes = <&apcs_glb 8>; > + > + fastrpc { > + compatible = "qcom,fastrpc"; > + qcom,glink-channels = "fastrpcglink-apps-dsp"; > + label = "adsp"; > + qcom,non-secure-domain; > + #address-cells = <1>; > + #size-cells = <0>; > + > + compute-cb@3 { > + compatible = "qcom,fastrpc-compute-cb"; > + reg = <3>; > + iommus = <&apps_smmu 0x01c3 0x0>; > + }; > + > + compute-cb@4 { > + compatible = "qcom,fastrpc-compute-cb"; > + reg = <4>; > + iommus = <&apps_smmu 0x01c4 0x0>; > + }; > + > + compute-cb@5 { > + compatible = "qcom,fastrpc-compute-cb"; > + reg = <5>; > + iommus = <&apps_smmu 0x01c5 0x0>; > + }; > + > + compute-cb@6 { > + compatible = "qcom,fastrpc-compute-cb"; > + reg = <6>; > + iommus = <&apps_smmu 0x01c6 0x0>; > + }; > + > + compute-cb@7 { > + compatible = "qcom,fastrpc-compute-cb"; > + reg = <7>; > + iommus = <&apps_smmu 0x01c7 0x0>; > + }; > + }; > + }; > + }; > + > + remoteproc_cdsp: remoteproc@b300000 { > + compatible = "qcom,sm6115-cdsp-pas"; > + reg = <0x0b300000 0x100000>; > + > + interrupts-extended = <&intc GIC_SPI 265 IRQ_TYPE_EDGE_RISING>, > + <&cdsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, > + <&cdsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, > + <&cdsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, > + <&cdsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; > + interrupt-names = "wdog", "fatal", "ready", > + "handover", "stop-ack"; > + > + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; > + clock-names = "xo"; > + > + power-domains = <&rpmpd SM6115_VDDCX>; > + > + memory-region = <&pil_cdsp_mem>; > + > + qcom,smem-states = <&cdsp_smp2p_out 0>; > + qcom,smem-state-names = "stop"; > + > + status = "disabled"; > + > + glink-edge { > + interrupts = ; > + label = "cdsp"; > + qcom,remote-pid = <5>; > + mboxes = <&apcs_glb 28>; > + > + fastrpc { > + compatible = "qcom,fastrpc"; > + qcom,glink-channels = "fastrpcglink-apps-dsp"; > + label = "cdsp"; > + qcom,non-secure-domain; > + #address-cells = <1>; > + #size-cells = <0>; > + > + compute-cb@1 { > + compatible = "qcom,fastrpc-compute-cb"; > + reg = <1>; > + iommus = <&apps_smmu 0x0c01 0x0>; > + }; > + > + compute-cb@2 { > + compatible = "qcom,fastrpc-compute-cb"; > + reg = <2>; > + iommus = <&apps_smmu 0x0c02 0x0>; > + }; > + > + compute-cb@3 { > + compatible = "qcom,fastrpc-compute-cb"; > + reg = <3>; > + iommus = <&apps_smmu 0x0c03 0x0>; > + }; > + > + compute-cb@4 { > + compatible = "qcom,fastrpc-compute-cb"; > + reg = <4>; > + iommus = <&apps_smmu 0x0c04 0x0>; > + }; > + > + compute-cb@5 { > + compatible = "qcom,fastrpc-compute-cb"; > + reg = <5>; > + iommus = <&apps_smmu 0x0c05 0x0>; > + }; > + > + compute-cb@6 { > + compatible = "qcom,fastrpc-compute-cb"; > + reg = <6>; > + iommus = <&apps_smmu 0x0c06 0x0>; > + }; > + > + /* note: secure cb9 in downstream */ > + }; > + }; > + }; > + > apps_smmu: iommu@c600000 { > compatible = "qcom,sm6115-smmu-500", "qcom,smmu-500", "arm,mmu-500"; > reg = <0x0c600000 0x80000>;