From patchwork Wed Jan 4 19:37:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 13088860 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 63B6AC46467 for ; Wed, 4 Jan 2023 19:38:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240175AbjADTiV (ORCPT ); Wed, 4 Jan 2023 14:38:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240252AbjADTiE (ORCPT ); Wed, 4 Jan 2023 14:38:04 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 914C3616F for ; Wed, 4 Jan 2023 11:38:03 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id 3so18535997iou.12 for ; Wed, 04 Jan 2023 11:38:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=udCwkO8StA61yER1zDj2O8kMSYGesvjzVzZN5NG0PbI=; b=Qtz6OjE0+Ue98DAChw8egdd+LgPk2N3iw9NFXaVAfc1AKrLBrMPDdMFiVHR6zjsSph rLj7lbvLo3xuOL+M/LI5YZrR3EVt9zg2FAjexYMQoY9qvWzpAPNBy1Kzl4RtGI5UEEYa 7EchOJSBZSZSVGqmLUDNiCvh0Xq8uxnMur20GI7ju2cSQqXnlSI0Ib17YWdT2AhIDecl AfXvPP72rrGmzhlZcJqp7R+oO8ZGx2b2F9Da/HxIJ5mvXlAIRyOHvZtlrMvs6ern/Cck iGas00OgdicHcnlGu+FXItyhiaKVWSZqTwBtQ0innThXvUdhkwFfyzay4gI1SUOfYYVm m2Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=udCwkO8StA61yER1zDj2O8kMSYGesvjzVzZN5NG0PbI=; b=goA11nkL68waqPagHY328EiuZUZimBBxDrQyQf92wuzRA4VEvacpfnAPAkvnZNfMC8 wvMNwRf0FZtPUyUJHToASGZszmLfYlihQA92dsNdpBOLzshkUsz88Jw7O1Xe3hTRItSL hanhkM3TQPZxQoM1LhJHIupatu9Ckrw+t8I0p294O0LBvOtZGN7nj0fJXdr0Vt/1etM1 4bTu17LYw9QcycWQT4zCMp41Mw3qprBtOIJvfpCnjMmfo9KpKUhDnM733jy400xEHG13 YwVH/G+Et4ig2s50zUgaHE8Y4D+hBV5jg/AKSSNo/wjJ36yHOSWky369L5izJq3QDZLD 9xMg== X-Gm-Message-State: AFqh2kqPynK3B49WZFlOWxWI85l24TSVVWzNtDYAN+GQ+UfPCsDQ4+O9 gpZm+BWw8ESqhTsF35nm5unyCQ== X-Google-Smtp-Source: AMrXdXuKTGMY3y5HrmbYYjnupxuth1oTWPBDo+6OX37UewAqZ4UKmqwlt7rxER0Bwkd60oQ+8aFu9g== X-Received: by 2002:a6b:b4d1:0:b0:6ed:308f:f807 with SMTP id d200-20020a6bb4d1000000b006ed308ff807mr35432843iof.21.1672861082915; Wed, 04 Jan 2023 11:38:02 -0800 (PST) Received: from presto.localdomain ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id h13-20020a056602130d00b006cab79c4214sm6972498iov.46.2023.01.04.11.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 11:38:02 -0800 (PST) From: Alex Elder To: andersson@kernel.org, konrad.dybcio@linaro.org, agross@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: Luca Weiss , caleb.connolly@linaro.org, mka@chromium.org, evgreen@chromium.org, quic_cpratapa@quicinc.com, quic_avuyyuru@quicinc.com, quic_jponduru@quicinc.com, quic_subashab@quicinc.com, elder@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] arm64: dts: qcom: sm6350: add IPA node Date: Wed, 4 Jan 2023 13:37:58 -0600 Message-Id: <20230104193759.3286014-2-elder@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230104193759.3286014-1-elder@linaro.org> References: <20230104193759.3286014-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Luca Weiss IPA is used for mobile data. Add a node describing it. Signed-off-by: Luca Weiss Signed-off-by: Alex Elder --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 47 ++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 43324bf291c30..f622d870bc827 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -432,7 +432,17 @@ modem_smp2p_out: master-kernel { modem_smp2p_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>; }; @@ -847,6 +857,43 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + ipa: ipa@1e40000 { + compatible = "qcom,sm6350-ipa"; + + iommus = <&apps_smmu 0x440 0x0>, + <&apps_smmu 0x442 0x0>; + reg = <0 0x01e40000 0 0x8000>, + <0 0x01e50000 0 0x3000>, + <0 0x01e04000 0 0x23000>; + reg-names = "ipa-reg", + "ipa-shared", + "gsi"; + + interrupts-extended = <&intc GIC_SPI 311 IRQ_TYPE_EDGE_RISING>, + <&intc GIC_SPI 432 IRQ_TYPE_LEVEL_HIGH>, + <&ipa_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&ipa_smp2p_in 1 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "ipa", + "gsi", + "ipa-clock-query", + "ipa-setup-ready"; + + clocks = <&rpmhcc RPMH_IPA_CLK>; + clock-names = "core"; + + interconnects = <&aggre2_noc MASTER_IPA 0 &clk_virt SLAVE_EBI_CH0 0>, + <&aggre2_noc MASTER_IPA 0 &system_noc SLAVE_OCIMEM 0>, + <&gem_noc MASTER_AMPSS_M0 0 &config_noc SLAVE_IPA_CFG 0>; + interconnect-names = "memory", "imem", "config"; + + qcom,smem-states = <&ipa_smp2p_out 0>, + <&ipa_smp2p_out 1>; + qcom,smem-state-names = "ipa-clock-enabled-valid", + "ipa-clock-enabled"; + + status = "disabled"; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x40000>; From patchwork Wed Jan 4 19:37:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 13088859 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 DC257C54EBE for ; Wed, 4 Jan 2023 19:38:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239935AbjADTiS (ORCPT ); Wed, 4 Jan 2023 14:38:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240256AbjADTiF (ORCPT ); Wed, 4 Jan 2023 14:38:05 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8369A10FE for ; Wed, 4 Jan 2023 11:38:04 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id e129so10004120iof.3 for ; Wed, 04 Jan 2023 11:38:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/MPPt/dyVshtWf52UcUhQEVxijzuMl9HV7p2elEFMTA=; b=eqyxZvYHjCwXvkgKa7v/M2xonvPpGUy+2+iDHMfQ0Vd/SGkzHa/FjfzGzMOXjw1oaI UV2uXLgoEScquxsx4YSoTmgeU6uvwCkI8vX0xcG2JXHLe3561OIVYkTnmVaGCKg7Nlwf U1I5zSGA6GMaLJ34l0NGLsrS2LuhmV54zIIwqgQURKPPstnQJBWkgYTXCxMcB9UA4QUD ZI5+rWRDs679zytNwskCX96BDlwd35q4kt9PTYaLLOxLac9IfO44tCDDSRUa0pCsK7oB +OKQgZCb4v4ZSjfet/AxTyp/Wpc3JqUpfPGvAqK9dgIMMKD2GD6vgr9ZPFzzqjmw6kfF YRNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/MPPt/dyVshtWf52UcUhQEVxijzuMl9HV7p2elEFMTA=; b=DmzVCEEN7qjC7IAG6krVJdy32JsGaUSSR3HMOOmBQwO+XR6xUKMgVCAm6acMvkaQV4 yhoNRmqta9YHGicOHWnTZT11EyNDOipmCp9zJcUEDdCfgvMUYGspsKLoacp4SkzB+4b4 C4ttkt53NNT61RvISUnAgNDqoNYy+UCS3Nip56j4Q6EpJBgUs32t/aTHlXPSCBfgUifp XPfK7cBFrc9r7Cb7X1aQl6ccVzm+U4npZ+PS7LB8x8mdIZ3QtAZccYuqUvIFGpDTx+17 eA/dYKsR1b8izhulX4ljHno3PwKFkmn1O1t1edLnmKpP2aoVhR3+pqY4IEvYYG7JRJJb F4Vw== X-Gm-Message-State: AFqh2krmcWjXR7IW01eKZPez7lG1ww52N+ZCjm8gqiMmq2oBSE74pR2I rzLIfChw5l8f6RnZrMaVua9OQg== X-Google-Smtp-Source: AMrXdXvRQe6tLuzyEXgWa5gnD+XHrVmicUvEHRJwC5iLhskJSu7LVljP8rCXm9PXEJm0e9L9vRLVJQ== X-Received: by 2002:a6b:6d15:0:b0:6df:5a5d:5e8b with SMTP id a21-20020a6b6d15000000b006df5a5d5e8bmr38148629iod.9.1672861084157; Wed, 04 Jan 2023 11:38:04 -0800 (PST) Received: from presto.localdomain ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id h13-20020a056602130d00b006cab79c4214sm6972498iov.46.2023.01.04.11.38.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 11:38:03 -0800 (PST) From: Alex Elder To: andersson@kernel.org, konrad.dybcio@linaro.org, agross@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: Luca Weiss , caleb.connolly@linaro.org, mka@chromium.org, evgreen@chromium.org, quic_cpratapa@quicinc.com, quic_avuyyuru@quicinc.com, quic_jponduru@quicinc.com, quic_subashab@quicinc.com, elder@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] arm64: dts: qcom: sm7225-fairphone-fp4: enable IPA Date: Wed, 4 Jan 2023 13:37:59 -0600 Message-Id: <20230104193759.3286014-3-elder@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230104193759.3286014-1-elder@linaro.org> References: <20230104193759.3286014-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Luca Weiss IPA is used for mobile data. Enable it. Signed-off-by: Luca Weiss Signed-off-by: Alex Elder --- arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts index c456e9594ea5b..6f9e59bf43a00 100644 --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts @@ -362,6 +362,13 @@ haptics@5a { }; }; +&ipa { + qcom,gsi-loader = "self"; + memory-region = <&pil_ipa_fw_mem>; + firmware-name = "qcom/sm7225/fairphone4/ipa_fws.mdt"; + status = "okay"; +}; + &mpss { status = "okay"; firmware-name = "qcom/sm7225/fairphone4/modem.mdt";