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: 31506 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp433693wrr; Thu, 8 Dec 2022 13:36:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf62KwsM/lHyFhNAM+OTtXvinVQSSoA6stoS5Fc8CIzwbiN/1Vb2rnhpbk9htBikkTayhm9j X-Received: by 2002:aa7:d5c4:0:b0:46a:af31:7c4f with SMTP id d4-20020aa7d5c4000000b0046aaf317c4fmr51978582eds.320.1670535372977; Thu, 08 Dec 2022 13:36:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670535372; cv=none; d=google.com; s=arc-20160816; b=Lq8MUK51+FP71aL32zxjqijIyS6QiLvRWV+eOdp/B1WzxJx+XeZdsLJ/zrh5UYTrUg /idti1Ond2EDb9m4bGsMMc+y4GfywbDAoPHsSNMgqF45gqIbY4lKxjYUYR2kWljI1tFF fDHg3szetG8lsq8YlClHCZbmhPnuZvem+J3elD050dHrUjswqrVjIHbst9n6Bs4sQrp6 kq6wuyr6PG+UL4JtNWJAc2IzUewkJZ7TjrR/YftuPYk1SG8jUpcFefsQFRjtbhKxv8ry dm8Q4cYJJgnn8Jsbh1bg1ED0R4Sxw4rvrSBAKaKB03buWUWoHmAczkhOJdzdoMdslMX0 VVsw== 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=uw9hx3VY0lHTGfcUz2Yz6UTXriQbScMLfhVdvAj+9QJC8TOA6HxygLXHiOAIGrCUyM T7qFAQm4ZiHgmmiqK4Kak8dsjVIOHLhzAHbwoTw8tL13xKofKtz4Jj0glrZ7YGbferEO 9FZNgC1EgO532qas2WtigjCrTi3RLnSX0kz+nu37yxUiI0ACpyWI757Ufby57YqIWpSD Jg1lIb34cyNHaDZbEHkptuj+MdInYnOA8x9vnOnB0EpSJMW9ZpBGaqFXbJ+mJbf/2PdX 4d/E/0RfBB0tN4YQ/2aKlBLDdbW9/635aH0nj7eLDsFCcFN13PqPgCpM4Tc9iaWHW0cQ CDxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pIJz44bg; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb37-20020a170907162500b007c0fa2e0fa1si11001232ejc.888.2022.12.08.13.35.48; Thu, 08 Dec 2022 13:36:12 -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=pIJz44bg; 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 S229868AbiLHVdm (ORCPT + 99 others); Thu, 8 Dec 2022 16:33:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbiLHVdg (ORCPT ); Thu, 8 Dec 2022 16:33:36 -0500 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36A1931DFA for ; Thu, 8 Dec 2022 13:33:35 -0800 (PST) Received: by mail-io1-xd2c.google.com with SMTP id h6so1049448iof.9 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=cjbrAmfDrC5W4JUptp7O+iZQMeSLDFveqIdQEIHXzxisfSfGSZfg89nxnmoeHGv7zw DiU4Y7SCuysbJGVmLBvoeybYX37ZWnt23FbTH7t+OYs0JNsQiz+g9lYF6jP0OdG5fyEx uJMCyo70AxT7DusxSVD0geS9LQuj7SFIh8fyXqkw/IGoMtsc5ojaz6WoH+zuBNNh5Ska xjCempwXXdPs0DN3zRWYu2aRTAthrQ40M5uD8fVdK+InJYEMVUd0xNGyDwxwHtRtgiEy KsR6lZHrLXwQWRNL0Jj0doprRnrLeFwTf6Ow4xkPh2BACDz3fpKZrA/sUjAv2EGn+rYT 9W6Q== X-Gm-Message-State: ANoB5pnEiBOvagOPUyiF2H5RaX5K5Qnt9iNk87hdXStI7Hhr8suQO68W xRyNjSglRN/m3IGT0cDReozVmw== 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751683299295197045?= X-GMAIL-MSGID: =?utf-8?q?1751683299295197045?= 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>;