Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2598148pxm; Mon, 28 Feb 2022 02:17:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyf4jfZsZ5wOXq8NT3hJ7fBB9IcN/JpXmU7P31Mnbn4nY7UCZfCobOJjiD6lzvpltDQlBKm X-Received: by 2002:aa7:d28b:0:b0:3f8:81dd:f383 with SMTP id w11-20020aa7d28b000000b003f881ddf383mr18409916edq.263.1646043432756; Mon, 28 Feb 2022 02:17:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646043432; cv=none; d=google.com; s=arc-20160816; b=YW7hF99qvkK/UoFjYStQ3de8P8kYS9AbP9IQx/C3BhthGyRGTxymbzb9RYFfbHOuqZ s4HYy+JsAnAdm3m7+eh2cv4p+ly48uGLMW+rnSI8fE/azibuXp6dyFfvZcYxm8jnhHuV fs3sieMHg009BvXCJjzXFmY6vVk2of2pN776E1ZPzRH5LFQqeQ1P4Pwqvqi0bcIiMRb1 kR40XsYFB6XdweiVq292P1gQUc7LpDO8i/8EfwWX05M9UgL6Fhx0ffOHy5ST1v/B6atI XOeiFpwIj5fGcLXAEJdjBdoLsPUzWnTg/M+KwT6NI9sa1YXWKo9xZhXCGD57EMEbsWSl jr5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kjU0aFLU81J7x3+xreJKb7q7VvFD5zjHGbYMGBTbZiI=; b=CClDGDRcTgPf4sEfJU65SSYKo5aOAossiD8yC72F6xA7kH7Pm/AbREnCz8j3JcF4yZ 4PR3u19VGWTA0z3OIKC2GWvKdJp3cHyGadOYebT6ZU3mj/+/jlsIfvZO+zA0wZAoaSOq aNG3UvGwK7mAhGK5pAh73WrjakasmkIH5J2vw4dYSxYt6nNuJ6wtWl5WcnwV4m59laxP /IXHXWc5vI+VAsnQzu1461okQ51TLEpzy0geJH0usmMgz4SOXiNO/UbcFO4yUQg5f5eq kOvbW1O6tyJdWDTdj54X0LePXcquNuT9zZILUJJ8TfBO8T8q2+iR266ivEf9EYRDZucZ lqNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vOEm3/8N"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e20-20020a170906749400b006caa6111d78si5552502ejl.283.2022.02.28.02.16.48; Mon, 28 Feb 2022 02:17:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vOEm3/8N"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234049AbiB1IO4 (ORCPT + 99 others); Mon, 28 Feb 2022 03:14:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233982AbiB1IOb (ORCPT ); Mon, 28 Feb 2022 03:14:31 -0500 Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF57E4DF6E for ; Mon, 28 Feb 2022 00:13:41 -0800 (PST) Received: by mail-qv1-xf31.google.com with SMTP id d3so11718135qvb.5 for ; Mon, 28 Feb 2022 00:13:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kjU0aFLU81J7x3+xreJKb7q7VvFD5zjHGbYMGBTbZiI=; b=vOEm3/8NROInhW5wkSI1sTjn3qTNLqX8Hmvff+eQvOYSwustZxbn6MRueIdQd6nlfC kHXPAz7zQM5e1XDFDNgOoHZJccAxfUV8TMUfDfMslarY6k+nRWU1x6X8tn9P1ALMjmt2 Xlld1b2lVGxdhiOPRaJ+K1bB5d5gDwfuxty3RDD4OFZu8kSnQkFOTiDVA5+DRVr1X3Q4 bPjGtXAcakxauQLJ9ACzwdoUsD30TNUKPZaNiDZSGOdz/7Gk2TQvHtq0gDq0iWVfRB22 WviHrneSPclLj2FF88oyBuTtHVi3C6XYafe6UoNxtqGN0l/Q1uidtKnVR3NUTYqZdg3W kpcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kjU0aFLU81J7x3+xreJKb7q7VvFD5zjHGbYMGBTbZiI=; b=ZJg42kJzuq0hDmZWQp/kovL8PLIpDiXb1ka0fBc2fePDSG0tkaP57nd4iCXp323Q4o WBiwKDdtwkkqm5uJBQiYzdsEw7Mb8VnBmwKp7+cOL70UWyOfEsPfPbsPt+dgKa5mPhcV E2n8AaKC+Ck8ViqYZslFJPF3EaBtCWiR9t6U3GqyKw/JMe2VKEfQOMD/TjvVtZ7bv3B4 a5DsB+q3/mSE5TC+BeBIwsRliV4ri7vu21kPuzlpyBvVvGPTYx2prsvnTGE7nmJ2Xodt MYINWh85cBNMb1yncOwcg9osbdt2pooxnGUr1oLAmp0Zw25E5GrEAHmdMXDRKFWHiMKR OtkQ== X-Gm-Message-State: AOAM532hw/qZS7pc/7F/K9Q4jGQvSfg3IA8y8HahZkZEWI/Jxxxs4TfL NmilE/93CZqY7dvmou8VVhSlRpXu/LO9wQJ7yw4GGQ== X-Received: by 2002:ad4:4490:0:b0:432:fe1b:6e66 with SMTP id m16-20020ad44490000000b00432fe1b6e66mr4732864qvt.122.1646036020854; Mon, 28 Feb 2022 00:13:40 -0800 (PST) MIME-Version: 1.0 References: <20220128025513.97188-1-bjorn.andersson@linaro.org> <20220128025513.97188-13-bjorn.andersson@linaro.org> In-Reply-To: <20220128025513.97188-13-bjorn.andersson@linaro.org> From: Dmitry Baryshkov Date: Mon, 28 Feb 2022 11:13:30 +0300 Message-ID: Subject: Re: [PATCH 12/13] arm64: dts: qcom: sm8450: Add remoteproc enablers and instances To: Bjorn Andersson Cc: Mathieu Poirier , Rob Herring , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 28 Jan 2022 at 05:55, Bjorn Andersson wrote: > > The Qualcomm SM8450 carries the familiar set of audio, compute, sensor > and modem remoteprocs. Add these and their dependencies. > > Signed-off-by: Bjorn Andersson > --- > arch/arm64/boot/dts/qcom/sm8450.dtsi | 297 +++++++++++++++++++++++++++ > 1 file changed, 297 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi > index 10c25ad2d0c7..24fb3d3e667b 100644 > --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi > @@ -7,6 +7,7 @@ > #include > #include > #include > +#include > #include > #include > > @@ -460,6 +461,15 @@ cvp_mem: memory@9ee00000 { > no-map; > }; > > + rmtfs_mem: memory@9fd00000 { > + compatible = "qcom,rmtfs-mem"; > + reg = <0x0 0x9fd00000 0x0 0x280000>; > + no-map; > + > + qcom,client-id = <1>; > + qcom,vmid = <15>; > + }; > + > global_sync_mem: memory@a6f00000 { > reg = <0x0 0xa6f00000 0x0 0x100000>; > no-map; > @@ -540,6 +550,113 @@ trusted_apps_ext_mem: memory@ed900000 { > }; > }; > > + smp2p-adsp { > + compatible = "qcom,smp2p"; > + qcom,smem = <443>, <429>; > + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS > + IPCC_MPROC_SIGNAL_SMP2P > + IRQ_TYPE_EDGE_RISING>; > + mboxes = <&ipcc IPCC_CLIENT_LPASS > + IPCC_MPROC_SIGNAL_SMP2P>; > + > + qcom,local-pid = <0>; > + qcom,remote-pid = <2>; > + > + smp2p_adsp_out: master-kernel { > + qcom,entry-name = "master-kernel"; > + #qcom,smem-state-cells = <1>; > + }; > + > + smp2p_adsp_in: slave-kernel { > + qcom,entry-name = "slave-kernel"; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > + > + smp2p-cdsp { > + compatible = "qcom,smp2p"; > + qcom,smem = <94>, <432>; > + interrupts-extended = <&ipcc IPCC_CLIENT_CDSP > + IPCC_MPROC_SIGNAL_SMP2P > + IRQ_TYPE_EDGE_RISING>; > + mboxes = <&ipcc IPCC_CLIENT_CDSP > + IPCC_MPROC_SIGNAL_SMP2P>; > + > + qcom,local-pid = <0>; > + qcom,remote-pid = <5>; > + > + smp2p_cdsp_out: master-kernel { > + qcom,entry-name = "master-kernel"; > + #qcom,smem-state-cells = <1>; > + }; > + > + smp2p_cdsp_in: slave-kernel { > + qcom,entry-name = "slave-kernel"; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > + > + smp2p-modem { > + compatible = "qcom,smp2p"; > + qcom,smem = <435>, <428>; > + interrupts-extended = <&ipcc IPCC_CLIENT_MPSS > + IPCC_MPROC_SIGNAL_SMP2P > + IRQ_TYPE_EDGE_RISING>; > + mboxes = <&ipcc IPCC_CLIENT_MPSS > + IPCC_MPROC_SIGNAL_SMP2P>; > + > + qcom,local-pid = <0>; > + qcom,remote-pid = <1>; > + > + smp2p_modem_out: master-kernel { > + qcom,entry-name = "master-kernel"; > + #qcom,smem-state-cells = <1>; > + }; > + > + smp2p_modem_in: slave-kernel { > + qcom,entry-name = "slave-kernel"; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + > + ipa_smp2p_out: ipa-ap-to-modem { > + qcom,entry-name = "ipa"; > + #qcom,smem-state-cells = <1>; > + }; > + > + ipa_smp2p_in: ipa-modem-to-ap { > + qcom,entry-name = "ipa"; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > + > + smp2p-slpi { > + compatible = "qcom,smp2p"; > + qcom,smem = <481>, <430>; > + interrupts-extended = <&ipcc IPCC_CLIENT_SLPI > + IPCC_MPROC_SIGNAL_SMP2P > + IRQ_TYPE_EDGE_RISING>; > + mboxes = <&ipcc IPCC_CLIENT_SLPI > + IPCC_MPROC_SIGNAL_SMP2P>; > + > + qcom,local-pid = <0>; > + qcom,remote-pid = <3>; > + > + smp2p_slpi_out: master-kernel { > + qcom,entry-name = "master-kernel"; > + #qcom,smem-state-cells = <1>; > + }; > + > + smp2p_slpi_in: slave-kernel { > + qcom,entry-name = "slave-kernel"; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > + > soc: soc@0 { > #address-cells = <2>; > #size-cells = <2>; > @@ -672,6 +789,167 @@ usb_1_ssphy: phy@88e9200 { > }; > }; > > + remoteproc_slpi: remoteproc@2400000 { > + compatible = "qcom,sm8350-slpi-pas"; I think this should be sm8450-slpi-pas. Otherwise: Reviewed-by: Dmitry Baryshkov > + reg = <0 0x02400000 0 0x4000>; > + > + interrupts-extended = <&pdc 9 IRQ_TYPE_LEVEL_HIGH>, > + <&smp2p_slpi_in 0 IRQ_TYPE_EDGE_RISING>, > + <&smp2p_slpi_in 1 IRQ_TYPE_EDGE_RISING>, > + <&smp2p_slpi_in 2 IRQ_TYPE_EDGE_RISING>, > + <&smp2p_slpi_in 3 IRQ_TYPE_EDGE_RISING>; > + interrupt-names = "wdog", "fatal", "ready", > + "handover", "stop-ack"; > + > + clocks = <&rpmhcc RPMH_CXO_CLK>; > + clock-names = "xo"; > + > + power-domains = <&rpmhpd SM8450_LCX>, > + <&rpmhpd SM8450_LMX>; > + power-domain-names = "lcx", "lmx"; > + > + memory-region = <&slpi_mem>; > + > + qcom,qmp = <&aoss_qmp>; > + > + qcom,smem-states = <&smp2p_slpi_out 0>; > + qcom,smem-state-names = "stop"; > + > + status = "disabled"; > + > + glink-edge { > + interrupts-extended = <&ipcc IPCC_CLIENT_SLPI > + IPCC_MPROC_SIGNAL_GLINK_QMP > + IRQ_TYPE_EDGE_RISING>; > + mboxes = <&ipcc IPCC_CLIENT_SLPI > + IPCC_MPROC_SIGNAL_GLINK_QMP>; > + > + label = "slpi"; > + qcom,remote-pid = <3>; > + }; > + }; > + > + remoteproc_adsp: remoteproc@30000000 { > + compatible = "qcom,sm8450-adsp-pas"; > + reg = <0 0x030000000 0 0x100>; > + > + interrupts-extended = <&pdc 6 IRQ_TYPE_LEVEL_HIGH>, > + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, > + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, > + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, > + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; > + interrupt-names = "wdog", "fatal", "ready", > + "handover", "stop-ack"; > + > + clocks = <&rpmhcc RPMH_CXO_CLK>; > + clock-names = "xo"; > + > + power-domains = <&rpmhpd SM8450_LCX>, > + <&rpmhpd SM8450_LMX>; > + power-domain-names = "lcx", "lmx"; > + > + memory-region = <&adsp_mem>; > + > + qcom,qmp = <&aoss_qmp>; > + > + qcom,smem-states = <&smp2p_adsp_out 0>; > + qcom,smem-state-names = "stop"; > + > + status = "disabled"; > + > + remoteproc_adsp_glink: glink-edge { > + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS > + IPCC_MPROC_SIGNAL_GLINK_QMP > + IRQ_TYPE_EDGE_RISING>; > + mboxes = <&ipcc IPCC_CLIENT_LPASS > + IPCC_MPROC_SIGNAL_GLINK_QMP>; > + > + label = "lpass"; > + qcom,remote-pid = <2>; > + }; > + }; > + > + remoteproc_cdsp: remoteproc@32300000 { > + compatible = "qcom,sm8450-cdsp-pas"; > + reg = <0 0x032300000 0 0x1400000>; > + > + interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_LEVEL_HIGH>, > + <&smp2p_cdsp_in 0 IRQ_TYPE_EDGE_RISING>, > + <&smp2p_cdsp_in 1 IRQ_TYPE_EDGE_RISING>, > + <&smp2p_cdsp_in 2 IRQ_TYPE_EDGE_RISING>, > + <&smp2p_cdsp_in 3 IRQ_TYPE_EDGE_RISING>; > + interrupt-names = "wdog", "fatal", "ready", > + "handover", "stop-ack"; > + > + clocks = <&rpmhcc RPMH_CXO_CLK>; > + clock-names = "xo"; > + > + power-domains = <&rpmhpd SM8450_CX>, > + <&rpmhpd SM8450_MXC>; > + power-domain-names = "cx", "mxc"; > + > + memory-region = <&cdsp_mem>; > + > + qcom,qmp = <&aoss_qmp>; > + > + qcom,smem-states = <&smp2p_cdsp_out 0>; > + qcom,smem-state-names = "stop"; > + > + status = "disabled"; > + > + glink-edge { > + interrupts-extended = <&ipcc IPCC_CLIENT_CDSP > + IPCC_MPROC_SIGNAL_GLINK_QMP > + IRQ_TYPE_EDGE_RISING>; > + mboxes = <&ipcc IPCC_CLIENT_CDSP > + IPCC_MPROC_SIGNAL_GLINK_QMP>; > + > + label = "cdsp"; > + qcom,remote-pid = <5>; > + }; > + }; > + > + remoteproc_mpss: remoteproc@4080000 { > + compatible = "qcom,sm8450-mpss-pas"; > + reg = <0x0 0x04080000 0x0 0x4040>; > + > + interrupts-extended = <&intc GIC_SPI 264 IRQ_TYPE_LEVEL_HIGH>, > + <&smp2p_modem_in 0 IRQ_TYPE_EDGE_RISING>, > + <&smp2p_modem_in 1 IRQ_TYPE_EDGE_RISING>, > + <&smp2p_modem_in 2 IRQ_TYPE_EDGE_RISING>, > + <&smp2p_modem_in 3 IRQ_TYPE_EDGE_RISING>, > + <&smp2p_modem_in 7 IRQ_TYPE_EDGE_RISING>; > + interrupt-names = "wdog", "fatal", "ready", "handover", > + "stop-ack", "shutdown-ack"; > + > + clocks = <&rpmhcc RPMH_CXO_CLK>; > + clock-names = "xo"; > + > + power-domains = <&rpmhpd 0>, > + <&rpmhpd 12>; > + power-domain-names = "cx", "mss"; > + > + memory-region = <&mpss_mem>; > + > + qcom,qmp = <&aoss_qmp>; > + > + qcom,smem-states = <&smp2p_modem_out 0>; > + qcom,smem-state-names = "stop"; > + > + status = "disabled"; > + > + glink-edge { > + interrupts-extended = <&ipcc IPCC_CLIENT_MPSS > + IPCC_MPROC_SIGNAL_GLINK_QMP > + IRQ_TYPE_EDGE_RISING>; > + mboxes = <&ipcc IPCC_CLIENT_MPSS > + IPCC_MPROC_SIGNAL_GLINK_QMP>; > + interrupts = ; > + label = "modem"; > + qcom,remote-pid = <1>; > + }; > + }; > + > pdc: interrupt-controller@b220000 { > compatible = "qcom,sm8450-pdc", "qcom,pdc"; > reg = <0 0x0b220000 0 0x30000>, <0 0x174000f0 0 0x64>; > @@ -682,6 +960,25 @@ pdc: interrupt-controller@b220000 { > interrupt-controller; > }; > > + aoss_qmp: power-controller@c300000 { > + compatible = "qcom,sm8450-aoss-qmp", "qcom,aoss-qmp"; > + reg = <0 0x0c300000 0 0x400>; > + interrupts-extended = <&ipcc IPCC_CLIENT_AOP IPCC_MPROC_SIGNAL_GLINK_QMP > + IRQ_TYPE_EDGE_RISING>; > + mboxes = <&ipcc IPCC_CLIENT_AOP IPCC_MPROC_SIGNAL_GLINK_QMP>; > + > + #clock-cells = <0>; > + }; > + > + ipcc: mailbox@ed18000 { > + compatible = "qcom,sm8450-ipcc", "qcom,ipcc"; > + reg = <0 0x0ed18000 0 0x1000>; > + interrupts = ; > + interrupt-controller; > + #interrupt-cells = <3>; > + #mbox-cells = <2>; > + }; > + > tlmm: pinctrl@f100000 { > compatible = "qcom,sm8450-tlmm"; > reg = <0 0x0f100000 0 0x300000>; > -- > 2.33.1 > -- With best wishes Dmitry