From patchwork Thu Dec 8 21:33:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 13068958 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 BA26EC10F1B for ; Thu, 8 Dec 2022 21:33:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229828AbiLHVdh (ORCPT ); Thu, 8 Dec 2022 16:33:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbiLHVdg (ORCPT ); Thu, 8 Dec 2022 16:33:36 -0500 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 369F831DE8 for ; Thu, 8 Dec 2022 13:33:35 -0800 (PST) Received: by mail-io1-xd2d.google.com with SMTP id n63so1054309iod.7 for ; Thu, 08 Dec 2022 13:33:35 -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=pIJz44bg8gbS5XQfSjtXD9HXcgnfHmFHyw/W5ROamLy6ahYZtrJwCpIhX0Z4vbSTdF HgVs6KyZp5I4ZiHAPgK2M/g18aEN3VuolIkm01Hhe+HQtwzQ9n18KI3hD37FB9/cYYmg rxXfNSdvmb6WJ3Zol7Q6CKbydrRU51NyGOpQpruUrtaVev1clhJye1rGKGmBnTxH7XK3 sa0s0fK5h//grGjh29YfY3DfsCQEh/RDuXHieIk31LtXPaf50VWUsmL/hoGNyXKUSIEt F8De6wyNglBXqu1HcNaheSsoE8bLP7DUzEBAA4idlTYG20CV2zLZQfkSm8pdUYgJLnJw NCUg== 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=urnJFIyhRD4joebXPl5AatdBT2wnj44p9R9B2LG1J2Yp0mQT3+zASEXYujX+FvE+vG 8Pjz8/EIK6yWcf4/Zz/JOrm2wQfV/wcVRh3bLB4Yn/FxLsSBENUqHfwPYI9PhYWbxKs/ 6lAiMrhHLSEX8aBgjB/UQf2wccKWCC4kN9Yle5YlakwWr0tud+Lc1rIS1bU09l+PVl1V IkIPPrArQh03qt1VYkKOQQwFm3LhLPWyn+861yzFaWh8V5/SVSj8QVM827+vK3HFd9iM hLdIdHxStOj6TqdX2P92QMj3cZZHpYEklfr7boiKv3ikk0g7jjJSlR63Zlqk9j5eGyNW JpHQ== X-Gm-Message-State: ANoB5pk2ny6oo7ndvYLtds+B2jBi1BvuC2vz2kMtcieSMLsNfhQ8gyIw 34Wt0OiitkK1L0PUL70eF/G8Mg== X-Google-Smtp-Source: AA0mqf4yTl76ihYQPyhCijNX4zoOca/AKUlujS/q02e4i7PPKNcywjQgm8pd/wX0FHKyrCiHc5I0wg== X-Received: by 2002:a5d:9657:0:b0:6bc:d71a:2b52 with SMTP id d23-20020a5d9657000000b006bcd71a2b52mr1894808ios.19.1670535214481; Thu, 08 Dec 2022 13:33:34 -0800 (PST) Received: from localhost.localdomain ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id a8-20020a021608000000b003755aa71fffsm9237846jaa.105.2022.12.08.13.33.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 13:33:34 -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 , elder@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: qcom: sm6350: add IPA node Date: Thu, 8 Dec 2022 15:33:29 -0600 Message-Id: <20221208213330.937714-2-elder@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221208213330.937714-1-elder@linaro.org> References: <20221208213330.937714-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 Thu Dec 8 21:33:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 13068959 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 F0FC9C25B04 for ; Thu, 8 Dec 2022 21:33:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229691AbiLHVdk (ORCPT ); Thu, 8 Dec 2022 16:33:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbiLHVdh (ORCPT ); Thu, 8 Dec 2022 16:33:37 -0500 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 339893AC0B for ; Thu, 8 Dec 2022 13:33:36 -0800 (PST) Received: by mail-il1-x129.google.com with SMTP id z18so1776199ils.3 for ; Thu, 08 Dec 2022 13:33:36 -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=VlPWTbCJss1Wa3UIwQqQGPK89+eiS/X8Uksm10Uyh6Y=; b=sPv+Jec7RqY4m+nNl4+gh3qbUH9OdNcZRCr1IS0DhqXcxfj69/UPwmmU3wuMeJgB4c fnx3H7UPp5Jf2nJ318LZ5oHAoCRamZm7g8242lewL8uusEgKxwRRIHN4v8Pv9uHHHxew 32E+OITHQSnMQbriXhFZBv2lx/LZbvb6j1zHYCZNLyGRcVf0vIyfRwAma+Ccelhi0JIf VpleTRL4leLlsxCTknqmXf/Lx7/m+qymLRuWYetV3WpkXs1RaQGBHjZNKOdzwqwKDMGH 7UHikrfM0MMQlBQ04Jzuyxrlj1HaSWgihkb2cEMR4xkITfgAZoVfkhRccBGqnnRN+VP/ ZXIQ== 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=VlPWTbCJss1Wa3UIwQqQGPK89+eiS/X8Uksm10Uyh6Y=; b=u52xMTWPIrFr8VXGeSXbk0d/3PZHKMq3xJNt2cZFpTnnAE8iiJ0wMgqEw2PLG7J5Cq BOfS2QRNeyq3OCp+YmForGtNZzPkRmFMooLcxnrHLg/+N1emUe6H3DnA6/NMM/AKC63u 8hQPJZx+96rUQu4kTBm1XWaqxxOrYFc83uxBdgyh79cZnLsO8GAjcfUcrPUk6rdnCPgN UCukj6UIHb1+LcaP5FdQEyD2alS3XoiXhWHkWPiBbPbOuKn9S3mEUCQV/JdOFlEGvx/x 8nr8ImZVZVutCl4q8qTUgRXVHiL3BC2jhiuIU7tc3XbHXfr+eMC51xQ7AAjY8ehpqfIy E4nQ== X-Gm-Message-State: ANoB5pmmh8CRBmcQxF+rX/RGadk7408KaA1VndkUgEhTQhLs4A2UV9km IXO9U31zMW7O7voFdS/GMgm8Eg== X-Google-Smtp-Source: AA0mqf4bfdd1wX5q7idr1fxwa8VtO0DvVuMASgioAfG+KJjYbOZm2vIuUWP43tyFz5uBrVMBbHcBzA== X-Received: by 2002:a05:6e02:e42:b0:303:92b3:27ec with SMTP id l2-20020a056e020e4200b0030392b327ecmr559095ilk.31.1670535215476; Thu, 08 Dec 2022 13:33:35 -0800 (PST) Received: from localhost.localdomain ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id a8-20020a021608000000b003755aa71fffsm9237846jaa.105.2022.12.08.13.33.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 13:33:35 -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 , elder@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: sm7225-fairphone-fp4: enable IPA Date: Thu, 8 Dec 2022 15:33:30 -0600 Message-Id: <20221208213330.937714-3-elder@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221208213330.937714-1-elder@linaro.org> References: <20221208213330.937714-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..1e199a7898a04 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 { + status = "okay"; + + memory-region = <&pil_ipa_fw_mem>; + firmware-name = "qcom/sm7225/fairphone4/ipa_fws.mdt"; +}; + &mpss { status = "okay"; firmware-name = "qcom/sm7225/fairphone4/modem.mdt";