Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13709928rwl; Wed, 4 Jan 2023 11:52:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXsEd+PHX1MZxZuM5UeP6N83a3sJ1wePPIOEoj50QkC9iMHkcy2dd7Gw7JtkLXyBOHRbAAmD X-Received: by 2002:a17:902:aa85:b0:189:894c:6b48 with SMTP id d5-20020a170902aa8500b00189894c6b48mr53909732plr.59.1672861976419; Wed, 04 Jan 2023 11:52:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672861976; cv=none; d=google.com; s=arc-20160816; b=ADo5wPz40n93an4pBtlNYKwPjld3GXhLlHr8sCwBloe14Vj4/1ai96o4HNP2l4KVSP ZARKQzftyvnnMPR9T67iB4taPx8pxY6NFnyfVEpTzi6kY3LiQ7oU9K6GtH3Cqz5XUFCp ecDwAs+tAGO5Lt8yqkzAdj+CXBpTa8kAqPt7EXBDN8ALdm9EwqpgFaHbXX/EAt5UVoBZ TMpiR8x2RuI9XmSk5wcEJPE/wKPQ7Dm3KEo7HD4GVtFuqIzTtnUhOpz2aSlw+mp6VslS JppsUltAOq3v7vOEwSLF2iK+ogeqVWS8N0LRgUam2uEAYzTZ7WkKTVIeHQvLo79fcHcy TVig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=udCwkO8StA61yER1zDj2O8kMSYGesvjzVzZN5NG0PbI=; b=tNBvP81ZXeg9lA52D3P+qTY1K7RJwLTlPsz5xlrga5/j2B5qAprBkrBOWZ+CKDD3iL rDoW4IrlZbtDqVEu3iXHJQs5nTrMitEYbiLUgHFJ/T45h8m8uyG1fkXx1M+T99pZuSJV PUmU4Dy+XjDQBrYdXIl90xWKomyRGKkM+imLkTq4LtBdVecksYZERfEPDfAK/EjiNOkR RLLObPR+jLv59RpAUYZFLcd3wz3UaU5k2mJWs7k9zEfmQezrG7eDa5KR6eLjBGhcJBg6 dV94qDlOtHz2JR9USbwbuDlGl5uUOVukW7QSprEcIhkwKCjtLFijPwo7k8ieB9sIe38D 3xWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qtz6OjE0; 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 y12-20020a655a0c000000b004404162e5e0si36779123pgs.593.2023.01.04.11.52.49; Wed, 04 Jan 2023 11:52:56 -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=Qtz6OjE0; 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 S239591AbjADTi2 (ORCPT + 56 others); Wed, 4 Jan 2023 14:38:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240250AbjADTiE (ORCPT ); Wed, 4 Jan 2023 14:38:04 -0500 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90E9060DF for ; Wed, 4 Jan 2023 11:38:03 -0800 (PST) Received: by mail-io1-xd33.google.com with SMTP id e129so10004068iof.3 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=Gnt85xykZl53aGSPIyg3Exj0C+Uyo8b5RyOk57Vf715HvdFVOLJ4Wx6MhQ+dfpEoTP K8AOP/SdPt43OanWBw+U7C77fA8bPUm0jnUeF60UWIkffaKk8L7fAvShGfsnqtGSURlM DKnoqyVPK/86/8C8xPHAQkGSXMLF6hpY9MBDYjRWqdesZxLJU/xYLq2jUcwsVAUtSIUt nPeoKXVixZSQM5QajYAHTr2R1k0u/v08gRSzWQhNsmm743wrlDfgZ1ZYzZ7uyhG+dLrF FqhdkPQHEjSMhyo6nbDxNOkqosUD97Fhhsc/Ls9J/YqtTlhmzLhDArVzvDs/TsoOB4gA m8lg== X-Gm-Message-State: AFqh2krDpgkFmLiljPYQzqTaGt3kQD9Lq+QFIabKZIC3t9xYdlq1PNT+ YtzZwfGkpDVBQgQxVnOQ2DIBmA== 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 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,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 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>; -- 2.34.1