Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1449524rwb; Thu, 15 Dec 2022 10:11:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf6m76tZeYo6FyZvy6Irxo7KGRvK3e2zO+ErFDLL0pfHUtL79DGdKifzsoLQ7Y1sDwO9nXl/ X-Received: by 2002:a17:907:2075:b0:7c1:1c4:5eaf with SMTP id qp21-20020a170907207500b007c101c45eafmr25226777ejb.49.1671127892742; Thu, 15 Dec 2022 10:11:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671127892; cv=none; d=google.com; s=arc-20160816; b=Wi0cpDsE8ngl75+SYZxOZPW12OTwJi6Ik7RmEOnIRiCj4Dq7OekgKrg/EAVo1YW0nS Jt0SGjtu/YmgbYihmWZx/uYNL3XWlTc+lXSCjVkLByxba9XB8u1Wm2kn5h9deidBhcAW 3jLastYLpmhlVB1vypvZWJ3D8KSvCdpK4sj47sOnYuzoRCho/cIiS/xs6aURXtVhCsXO 3XKsdRTwbqydaJftA0r9NgqyU7mmbE0fOuSXhbJoErvBYejyjZV1eE0B9lRJxnJ8u/h1 oD55QhRB4GT/0Bg+GYv+PJWaS+aUsWlZVYqy8C7APu81qi5W/jhwnSi78zScr21WzyYg s7Zg== 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=SwhCKOo8IPcXkXCeJZ70Nz/KmkOkXyK+oiqZUyWA8pI=; b=WboTf1boTauy7D6Tf5xvyj0x3xmHvTMHm6mMjeDJerK9ZiQjYMDl1lLwgkzGs3FBnT 26/K09+0rDiKY5N5wU6ilULezMQZlgIzSj62zJbD16latPkOz9/+Xy/upjNzer9H7aSL QqBv6xluqxMgvLP08a8+uaVIJAogBWUzLMfTdAvbP/ufJ4w+fMr0FJ7jujhUklVxKt1i EhKjciwi+fgVK3ZXo4HpbiFMwQR9rfizs30AsID3O0IXtFKFcw3YuwcbLDnkeeHohUTE kj5Bh8U0IFl94p8RoJXqtPffTkOvC8G8u5Lu1UVPsso5yyR24RVlAtUfUi3pXrPR4sIP mItg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JNxI4S+2; 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 dm12-20020a170907948c00b007429f0c69ccsi9331312ejc.579.2022.12.15.10.11.14; Thu, 15 Dec 2022 10:11:32 -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=JNxI4S+2; 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 S230039AbiLOSBw (ORCPT + 70 others); Thu, 15 Dec 2022 13:01:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbiLOSBt (ORCPT ); Thu, 15 Dec 2022 13:01:49 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C1A11FCF7 for ; Thu, 15 Dec 2022 10:01:48 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id p36so16872489lfa.12 for ; Thu, 15 Dec 2022 10:01:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=SwhCKOo8IPcXkXCeJZ70Nz/KmkOkXyK+oiqZUyWA8pI=; b=JNxI4S+2PBZzWtIaDg3Xv8VR7MLFxF+aCD1UuFOPxJiBlmUhGOmLLqUhjtIsYImLED ZunLl5L7BlrCahB+dTQ6SiXRInH/3V+aCdTIUysVRc/FmRoGgHl7HIjSmZpWZT+iZRxy EdqCdwgu1OovdLQOv/Aj166Jx0oeJHJAyqNNRQPTUcJ6eiUXLGILB9x6UDq/PKmmYdw1 R+5G1AnjlEB+LR6JELYM+kesA+LFq0EZusjIISqO8frEt9Q2Q6EmYCP/P5P6bvGqs0YC zOKeKfDxutzYtBqNm590jShjODlcbJyaDb0LghrjVXSIVLaVnuy1rpD8GdmNqfgL8YJD oatw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=SwhCKOo8IPcXkXCeJZ70Nz/KmkOkXyK+oiqZUyWA8pI=; b=tDfzhutK7rGa3/GrohMtw0RbTm/N3oqDkW567u0iW/yUiSLzxtli6XsxmbGvOqqxsB wDVftajkfcwtrrjgzciAnuTWFcg8zxzF1bj6wbB2EAzRRsihXFVQ1pGesAp7OApfBWW+ oZgq7ohXtX1ZDNUbYYeLaDerSD+1J2t4lYoOPwmPTKgfAgIK0N3qs4uQMqDoqO7aolIG n/YOrmhgLkzkuousD3lcEZVIZMnKoAdqzHz34/jt0LWHc++3jwSc+bRjiTdMHV2ejw0I CBzJTNMHu6DtJ/Wu04t24bZk+D8f0rxa7GsKMMKcDIGlSi5QzwTny00eTp4foXxL4YLW 6r/A== X-Gm-Message-State: ANoB5plhP6xaGALvqS/LafPKwo6wc4dzhhWf9TMWFjCyQNUqPmv49gm1 B7Ob4+LKGiepY/Lh3BtjEmFoeg== X-Received: by 2002:a05:6512:39cf:b0:4b5:3505:d7f9 with SMTP id k15-20020a05651239cf00b004b53505d7f9mr8510474lfu.35.1671127306582; Thu, 15 Dec 2022 10:01:46 -0800 (PST) Received: from [192.168.1.101] (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id 11-20020ac25f0b000000b004a03d5c2140sm1221100lfq.136.2022.12.15.10.01.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Dec 2022 10:01:45 -0800 (PST) Message-ID: <78cd38f1-6ebc-097c-07f1-f7a028f07315@linaro.org> Date: Thu, 15 Dec 2022 19:01:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH] arm64: dts: qcom: sc7280: enable IPA in sc7280-herobrine-lte-sku.dtsi Content-Language: en-US To: Sibi Sankar , Alex Elder , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andersson@kernel.org, agross@kernel.org Cc: elder@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221208183837.505454-1-elder@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.1 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 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 15.12.2022 18:38, Sibi Sankar wrote: > Alex, > > Thanks for the patch. > > On 12/9/22 00:08, Alex Elder wrote: >> IPA is only needed on a platform if it includes a modem, and not all >> SC7280 SoC variants do.  The file "sc7280-herobrine-lte-sku.dtsi" is >> used to encapsulate definitions related to Chrome OS SC7280 devices >> where a modem is present, and that's the proper place for the IPA >> node to be enabled. >> >> Currently IPA is enabled in "sc7280-idp.dtsi", which is included by >> DTS files for Qualcomm reference platforms (all of which include the >> modem).  That also includes "sc7280-herobrine-lte-sku.dtsi", so >> enabling IPA there would make it unnecessary for "sc7280-idp.dtsi" >> to enable it. >> >> The only other place IPA is enabled is "sc7280-qcard.dtsi". >> That file is included only by "sc7280-herobrine.dtsi", which >> is (eventually) included only by these top-level DTS files: >>    sc7280-herobrine-crd.dts >>    sc7280-herobrine-herobrine-r1.dts >>    sc7280-herobrine-evoker.dts >>    sc7280-herobrine-evoker-lte.dts >>    sc7280-herobrine-villager-r0.dts >>    sc7280-herobrine-villager-r1.dts >>    sc7280-herobrine-villager-r1-lte.dts >> All of but two of these include "sc7280-herobrine-lte-sku.dtsi", and >> for those cases, enabling IPA there means there is no need for it to >> be enabled in "sc7280-qcard.dtsi". >> >> The two remaining cases will no longer enable IPA as a result of >> this change: >>    sc7280-herobrine-evoker.dts >>    sc7280-herobrine-villager-r1.dts >> Both of these have "lte" counterparts, and are meant to represent >> board variants that do *not* have a modem. >> >> This is exactly the desired configuration. >> >> Signed-off-by: Alex Elder >> --- >>   arch/arm64/boot/dts/qcom/sc7280-herobrine-lte-sku.dtsi | 5 +++++ >>   arch/arm64/boot/dts/qcom/sc7280-idp.dtsi               | 5 ----- >>   arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi             | 5 ----- >>   3 files changed, 5 insertions(+), 10 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-lte-sku.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine-lte-sku.dtsi >> index ad66e5e9db4ed..956708397f035 100644 >> --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-lte-sku.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-lte-sku.dtsi >> @@ -34,3 +34,8 @@ &remoteproc_mpss { >>   &rmtfs_mem { >>       reg = <0x0 0x9c900000 0x0 0x800000>; >>   }; >> + >> +&ipa { >> +    status = "okay"; >> +    modem-init; >> +}; > > nit; You'll probably want to move the ipa node above remoteproc node to > maintain sorting. > > Reviewed-by: Sibi Sankar > Tested-by: Sibi Sankar That + please flip the property order, as we're trying to keep status last wherever possible. Konrad > >> diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi >> index f7efb9966afd1..0ddbe7f732bd9 100644 >> --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi >> @@ -376,11 +376,6 @@ &gpi_dma1 { >>       status = "okay"; >>   }; >>   -&ipa { >> -    status = "okay"; >> -    modem-init; >> -}; >> - >>   &lpass_cpu { >>       status = "okay"; >>   diff --git a/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi b/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi >> index df49564ae6dc1..cd6ee84b36fd4 100644 >> --- a/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi >> @@ -336,11 +336,6 @@ vreg_bob: bob { >>     /* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */ >>   -&ipa { >> -    status = "okay"; >> -    modem-init; >> -}; >> - >>   &lpass_va_macro { >>       vdd-micb-supply = <&vreg_bob>; >>   };