Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16091113rwd; Mon, 26 Jun 2023 05:46:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6K8ueXvvocISQsxYsVN3DRgb8ToHpQC9hDkFgCgupprpstj+hydChPeOPxrClshvPgxHnD X-Received: by 2002:a05:6a20:1590:b0:122:e7d:99c0 with SMTP id h16-20020a056a20159000b001220e7d99c0mr18837654pzj.31.1687783583362; Mon, 26 Jun 2023 05:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687783583; cv=none; d=google.com; s=arc-20160816; b=LG8Ih4Yzn6G5aWhQq9muUpex6r8gNzfaSbGAZlD8nJOg5MS76hreeMoKR38FgkIrm0 3qmd9OGHASLS96jszd3XjYdwmBa+SG+1+TYn2/e+Z1Gu4dVcuD3NRseW1GNTLhLvJ+SX W2Pt1HgUuQm/KdTWd2XnmpsCDExB+o8QDW/RLM5mBxc/Fn3Zp16j9NvlVk/YghRFn8ZD 2l1Lq8yRHY6yoCgrcF+6ScolWv9cPlkpEUTp7gh7UiWaA/ieF4eUL25Vc8n3QArivBB1 UnwJXWmkIe1uGy3jJaWWHUKFCTeuj+9pIxlWBttriTLci+QB3t6sggHxnwDuMw6eLDqI 6TZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2hW2XWePew0FaBfSk0kn2Xd1wwZNr5FFaq2x3qcrQ0E=; fh=yVk8787B5jNTOFqIYXIOWbk+l6zdRkQWfwx4ENv+qnY=; b=L2VtKHB+w91qL1WxFekL8iokrse80YtOrdHKZlm1lpH6YbBvaM9EnZGkBVj/7XqhjN zrhUTuUAoBu4j0C15zw4PBLg5kxQMHHWaJUBokoM3X+hI8+s9MfkBy6vUbrmVJwOUyRQ RbRZq2e6cKqIyTv96M96nxFbOKE2npek4TFEIgsvuIcASpnmo80aXALkUMVn51R52go7 J2DTIg32OVHAhLaClL2oCcTBxkKuslvxb16mn2b72R2mmk1+UqDrcwieM8xjj6/9IKdP prqTAN+aThswa2gkhyy2Ns3RNnRTE3alko54zjlMfXiUIdnNJFK7VmXikptN7OD/YtdJ /mrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XL4iiJYx; 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 d18-20020a056a00199200b00648019bae38si4880689pfl.277.2023.06.26.05.46.11; Mon, 26 Jun 2023 05:46:23 -0700 (PDT) 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=XL4iiJYx; 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 S230076AbjFZMR7 (ORCPT + 99 others); Mon, 26 Jun 2023 08:17:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjFZMR4 (ORCPT ); Mon, 26 Jun 2023 08:17:56 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDCF4E71 for ; Mon, 26 Jun 2023 05:17:28 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2b69f1570b2so17035391fa.0 for ; Mon, 26 Jun 2023 05:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687781836; x=1690373836; 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=2hW2XWePew0FaBfSk0kn2Xd1wwZNr5FFaq2x3qcrQ0E=; b=XL4iiJYximrR10AfQw9NpMIuARprgWMdDcyUyu5GQVRIW2gWruK4ksuVWvdIYbtFjz /L+nwmeQ7TCoWeWWLjRlSmD8J0L76h/4J9LPc2pI76IkEPQsYeMhV6WY10wzMcSmISoV ZohmtMscdhJtmAU/e8FaGbKv9BSEOdGc6X9ku+fcOwUQSgVv8FBVaq+GUmOfLszJEF+J Sq+zuctXU2H7GvrnO9zDIWfatqQv7sMETZn1VfHAXNH5x4T6F+OdT0cCEV1jAjwQx6+b hvTe3Ijn3jrD6+yZHjuXC/lDkXwxT1O10pAr1CFmHkhvR6o4nmgDcBDqkB0zODeh6chk YvGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687781836; x=1690373836; 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=2hW2XWePew0FaBfSk0kn2Xd1wwZNr5FFaq2x3qcrQ0E=; b=fDxFMSTEhJ8oQZBDz1/ZilM2x2OqjpU4yGRrfMEV/rO47tzyzld+iz3bwolpUN64th S2SyoU3sFoYRdt6uvyajxu/0vdK9f8jbrPJIJFexTt9tLQVjIeweGb6jO6av21YKPOEc SZRjWMcSMyho0ZkABkza7PrxgsVxtGR5W1ynR2GFF+fvTQ4bdAsnZxmEBnkh5mlpw5kV deTIdlf+L2Wng8UEHms9BzMfB/K7FlnnpvRcOlEYgGx95X7R1H9zZV3hdlh3oltnoTse Y+vk6pfVqBsYn65TIiBDkrumRIDgSM3XdgNmqusvQAlz9pEx9KAzbCE3TyoHKeczrgqn AGCw== X-Gm-Message-State: AC+VfDzyuwh2QhZ9BcwP1OPDSm6Ohcaaw5gYtLB9tsOneZqfAaDsvuqH IK37ctYNqCAmTzhmiJTCceLPKw== X-Received: by 2002:a2e:96c3:0:b0:2b6:9909:79cb with SMTP id d3-20020a2e96c3000000b002b6990979cbmr3041934ljj.42.1687781836098; Mon, 26 Jun 2023 05:17:16 -0700 (PDT) Received: from [192.168.1.101] (abyk179.neoplus.adsl.tpnet.pl. [83.9.30.179]) by smtp.gmail.com with ESMTPSA id a12-20020a2eb16c000000b002b69f64b08asm664247ljm.37.2023.06.26.05.17.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jun 2023 05:17:15 -0700 (PDT) Message-ID: <64ccb614-51e4-9b04-247a-4abc2b60d965@linaro.org> Date: Mon, 26 Jun 2023 14:17:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [RESEND v6 5/8] arm64: dts: qcom: sc7280: Add LPASS PIL node Content-Language: en-US To: Mohammad Rafi Shaik , krzysztof.kozlowski+dt@linaro.org, swboyd@chromium.org, andersson@kernel.org, broonie@kernel.org, agross@kernel.org Cc: robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_rohkumar@quicinc.com, srinivas.kandagatla@linaro.org, dianders@chromium.org, judyhsiao@chromium.org, quic_visr@quicinc.com, Srinivasa Rao Mandadapu References: <20230616103534.4031331-1-quic_mohs@quicinc.com> <20230616103534.4031331-6-quic_mohs@quicinc.com> <353fe482-62f7-6252-5123-6907f84762b9@linaro.org> From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 26.06.2023 13:07, Mohammad Rafi Shaik wrote: > > On 6/16/2023 4:55 PM, Konrad Dybcio wrote: >> On 16.06.2023 12:35, Mohammad Rafi Shaik wrote: >>> From: Srinivasa Rao Mandadapu >>> >>> Add LPASS PIL node for sc7280 based audioreach platforms. >>> >>> Signed-off-by: Srinivasa Rao Mandadapu >>> Signed-off-by: Mohammad Rafi Shaik >>> --- >> The node should reside in the SoC DTSI, ideally the bindings should >> be compatible with the PAS setup to the point where only a compatible >> swap is needed.. >> >> Konrad > Thanks for comment, > > The base SOC DTSI file already has an entry with the same physical base address which is using for ADSP BYPASS solution. > For Audioreach solution required the same base address for the remoteproc device tree node. > > Will create a new common dtsi file for Audioreach as suggested by you in previous patch and add this in that common dtsi file. > > Please confirm is it okay ? Let me copypaste the same answer I gave you to your off-list reply because you seem to not have read it: Taking a closer look, the qdsp6ss region is only used in combination with PIL mode.. Perhaps it could be remodeled such that: lpasscc only maps the top_cc region and the single clock within (which lets us remove the pil-mode property) qcom_q6v5_adsp takes care of everything inside the qdsp6ss region (so, toggling the branches) This would prevent us from trying to map the block @ 0x03000000 twice. Konrad > > Rafi. > >>>   .../sc7280-herobrine-audioreach-wcd9385.dtsi  | 90 +++++++++++++++++++ >>>   1 file changed, 90 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-audioreach-wcd9385.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine-audioreach-wcd9385.dtsi >>> index 95d3aa08ebde..9daea1b25656 100644 >>> --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-audioreach-wcd9385.dtsi >>> +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-audioreach-wcd9385.dtsi >>> @@ -7,6 +7,8 @@ >>>    */ >>>     #include >>> +#include >>> +#include >>>     /{ >>>       /* BOARD-SPECIFIC TOP LEVEL NODES */ >>> @@ -105,4 +107,92 @@ platform { >>>               }; >>>           }; >>>       }; >>> + >>> +    remoteproc_adsp: remoteproc@3000000 { >>> +        compatible = "qcom,sc7280-adsp-pil"; >>> +        reg = <0 0x03000000 0 0x5000>, <0 0x0355b000 0 0x10>; >>> +        reg-names = "qdsp6ss_base", "lpass_efuse"; >>> + >>> +        interrupts-extended = <&pdc 6 IRQ_TYPE_LEVEL_HIGH>, >>> +                      <&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>, >>> +                      <&adsp_smp2p_in 7 IRQ_TYPE_EDGE_RISING>; >>> + >>> +        interrupt-names = "wdog", "fatal", "ready", >>> +                  "handover", "stop-ack", >>> +                  "shutdown-ack"; >>> + >>> +        qcom,qmp = <&aoss_qmp>; >>> + >>> +        clocks = <&rpmhcc RPMH_CXO_CLK>, >>> +             <&gcc GCC_CFG_NOC_LPASS_CLK>; >>> +        clock-names = "xo", "gcc_cfg_noc_lpass"; >>> + >>> +        iommus = <&apps_smmu 0x1800 0x0>; >>> + >>> +        power-domains =    <&rpmhpd SC7280_CX>; >>> +        power-domain-names = "cx"; >>> + >>> +        required-opps = <&rpmhpd_opp_nom>; >>> + >>> +        resets = <&pdc_reset PDC_AUDIO_SYNC_RESET>, >>> +             <&aoss_reset AOSS_CC_LPASS_RESTART>; >>> +        reset-names =  "pdc_sync", "cc_lpass"; >>> + >>> +        qcom,halt-regs = <&tcsr_1 0x3000 0x5000 0x8000 0x13000>; >>> + >>> +        memory-region = <&adsp_mem>; >>> + >>> +        qcom,smem-states = <&adsp_smp2p_out 0>; >>> +        qcom,smem-state-names = "stop"; >>> + >>> +        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>; >>> + >>> +            gpr { >>> +                compatible = "qcom,gpr"; >>> +                qcom,glink-channels = "adsp_apps"; >>> +                qcom,domain = ; >>> +                qcom,intents = <512 20>; >>> +                #address-cells = <1>; >>> +                #size-cells = <0>; >>> + >>> +                q6apm: service@1 { >>> +                    compatible = "qcom,q6apm"; >>> +                    reg = ; >>> +                    #sound-dai-cells = <0>; >>> + >>> +                    q6apmdai: dais { >>> +                        compatible = "qcom,q6apm-dais"; >>> +                        iommus = <&apps_smmu 0x1801 0x0>; >>> +                    }; >>> + >>> +                    q6apmbedai: bedais { >>> +                        compatible = "qcom,q6apm-lpass-dais"; >>> +                        #sound-dai-cells = <1>; >>> +                    }; >>> +                }; >>> + >>> +                q6prm: service@2 { >>> +                    compatible = "qcom,q6prm"; >>> +                    reg = ; >>> + >>> +                    q6prmcc: clock-controller { >>> +                        compatible = "qcom,q6prm-lpass-clocks"; >>> +                        #clock-cells = <2>; >>> +                    }; >>> +                }; >>> +            }; >>> +        }; >>> +    }; >>>   };