From patchwork Tue Apr 13 17:05:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 420242 Delivered-To: patch@linaro.org Received: by 2002:a02:c4d2:0:0:0:0:0 with SMTP id h18csp2798801jaj; Tue, 13 Apr 2021 10:06:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiC0MT3iWdlHIYqOas4rYqE9FfbXnsvkCbt/sy8mnF4PZVVE1j4oURwAEVxZo3RxqueSmw X-Received: by 2002:a05:6402:430c:: with SMTP id m12mr37014643edc.138.1618333561371; Tue, 13 Apr 2021 10:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618333561; cv=none; d=google.com; s=arc-20160816; b=j7TO2aozjxsdsg67f212kHeY/YbjFwfbv9O9dOqZ1LucpO4IJW2BR49RyoqQ0kG/Mo SlkTeTQ1pkLA/voWPVnzLtBLXmFoTgUPoDgLg6zTEKp8EQNF3QH9NrvGvpUi2dwwvdLg riizYl2mxN5vNl5nAoVVcv7zL6uncaPmuBRMFkRlx4nIFbP6KqcDNjnUACD1wvVyb7Hq DBQzbpmp3VuTapZt4Cqp9Rp6qea10MXSWnfqwCkDBc1cdYvK2DFx8Ld55B+MzPkZumoW SLqlFrE/5blKQ2thGKaVEKk+KooWUkqm5iG1bqW+uYWT6M74XFvVe0RFanClr4cDS5Lg Mj6A== 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=TjNUJJY0+cXHEeBtx4Z8uVdqiWLKg7YY294aspUGBVs=; b=t8uDSHh1ON1tsB7SkGCoV6rFf0g0yKJboqWFBJ5Ghdy0b0jCe71jFYBtgijS6IUZhR EP2pIFMNF5OrxqdrWU3ndYj6S6gy/JvyUB+KLs5ZKXYJ0oN7099otWHtX5xTS3atR17P XmPaFfyhNaj30HhhNcLsYLlTwrD0RP0wlvnS5WaM9/xuV2th5G2JSY4l4ENhKDIigiGt tBE8rfi3PlbfVwiq3P6JZB36JmW0hZcAXo3JQKQvQheM//eATUyrgFhMVRjV8T3gwRz8 YKSRDBogAXRdDQZBPoKuOEeBL7Lc1yKxsDU8RpiLGvn/1c++kHYNXOFC7LxGXjPGWrYK qbaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iXhBFwCd; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k12si10072563edn.291.2021.04.13.10.06.01; Tue, 13 Apr 2021 10:06:01 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iXhBFwCd; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1347031AbhDMRGT (ORCPT + 6 others); Tue, 13 Apr 2021 13:06:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347026AbhDMRGS (ORCPT ); Tue, 13 Apr 2021 13:06:18 -0400 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 497DBC061574 for ; Tue, 13 Apr 2021 10:05:58 -0700 (PDT) Received: by mail-il1-x129.google.com with SMTP id b17so14691553ilh.6 for ; Tue, 13 Apr 2021 10:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TjNUJJY0+cXHEeBtx4Z8uVdqiWLKg7YY294aspUGBVs=; b=iXhBFwCdcwPpzgfV6UuzfvuBQQk8jFU+6AcMoJFwvBJFQ+GeC8t/GyiIyB2xO2XskU LiWKjpCEqccZ4Y7ayUxpHqGox1pHTjTLLXsYUdk12bpGTGzoRh/rpopt9GBXZLMv3vZp gxjxdiJ4iNaZTV4X73QwJJcW/kFVGhOBruiIGCdczCfXJ3/oykQeGgzT945HUvyUMbMP jUdr3NLhjrA53L4C49yZvoPspWPWohc1dsx4mozWQ0yJEOYhxwh8UORezkYSHwX2RqHs rlOMOCPyZjSjDkNzZnaHwu2Vxyj1AdTMHRBnEZ6VCOoXmYPP5j+XpkvfZxjA24WdJsh6 IXag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TjNUJJY0+cXHEeBtx4Z8uVdqiWLKg7YY294aspUGBVs=; b=bAhRkHkdrmJzg0nws4RlG6QYNjveHgQ7aPKnLP2FLcKby0IiUt44DTjyozRNs9rvDg xYHU5y7B2tQTJMsHUGIWJ/KVoJ8ed9lSOq+Nz767YiARFOGU0Cm26mvYPrJT9jOhmUr3 AZIoWnIQroaZaEWpp1kwlq4NTHMxyw3yw2lTtUQjlNCnhrrBM1K9Pvgfv/t6KiyxOagB 9RqAljcnO7rCUxvcEHcy5MuwxGOxmG5mPSuqFQlhHI8HB8a8B6Pe0UT+IMJ4oGZhs+sq yVVArpPfhHERc6rHs33rczQ83soNeaO53DjobozBUj+GrzHaLcQ90h5yMdng9/oprUqc gVQg== X-Gm-Message-State: AOAM530Exth+vditGqbJYgovzGQFrCKkfb8PIWC7UUquyJjSoTsQMLGM mZ+t1frT+NUUbzm1+NrzLAX9Xw== X-Received: by 2002:a05:6e02:168e:: with SMTP id f14mr8100897ila.292.1618333557805; Tue, 13 Apr 2021 10:05:57 -0700 (PDT) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id 23sm7495842iog.45.2021.04.13.10.05.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 10:05:57 -0700 (PDT) From: Alex Elder To: bjorn.andersson@linaro.org, agross@kernel.org Cc: robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/2] arm64: dts: qcom: sm8350: add IPA information Date: Tue, 13 Apr 2021 12:05:52 -0500 Message-Id: <20210413170553.1778792-2-elder@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210413170553.1778792-1-elder@linaro.org> References: <20210413170553.1778792-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add IPA-related nodes and definitions to "sm8350.dtsi", which uses IPA v4.9. Signed-off-by: Alex Elder --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 51 ++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) -- 2.27.0 diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index ed0b51bc03ea7..2fc23f3d2c75c 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -11,6 +11,7 @@ #include #include #include +#include / { interrupt-parent = <&intc>; @@ -391,6 +392,17 @@ smp2p_modem_in: 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>; + }; }; smp2p-slpi { @@ -629,6 +641,45 @@ compute_noc: interconnect@a0c0000{ qcom,bcm-voters = <&apps_bcm_voter>; }; + ipa: ipa@1e40000 { + compatible = "qcom,sm8350-ipa"; + + iommus = <&apps_smmu 0x5c0 0x0>, + <&apps_smmu 0x5c2 0x0>; + reg = <0 0x1e40000 0 0x8000>, + <0 0x1e50000 0 0x4b20>, + <0 0x1e04000 0 0x23000>; + reg-names = "ipa-reg", + "ipa-shared", + "gsi"; + + interrupts-extended = <&intc GIC_SPI 655 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 &gem_noc SLAVE_LLCC>, + <&mc_virt MASTER_LLCC &mc_virt SLAVE_EBI1>, + <&gem_noc MASTER_APPSS_PROC &config_noc SLAVE_IPA_CFG>; + interconnect-names = "ipa_to_llcc", + "llcc_to_ebi1", + "appss_to_ipa"; + + 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 Tue Apr 13 17:05:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 421271 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45BDAC43462 for ; Tue, 13 Apr 2021 17:06:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0CB14613C8 for ; Tue, 13 Apr 2021 17:06:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347036AbhDMRGU (ORCPT ); Tue, 13 Apr 2021 13:06:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347029AbhDMRGT (ORCPT ); Tue, 13 Apr 2021 13:06:19 -0400 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35464C06138C for ; Tue, 13 Apr 2021 10:05:59 -0700 (PDT) Received: by mail-il1-x12f.google.com with SMTP id r5so6522340ilb.2 for ; Tue, 13 Apr 2021 10:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=w8hxS2oFPKpODRGlmUofbxB7DgkRVhysbFqdjt9eLM8=; b=KJeRkza+4AMdwLLUa9Wy8mO4WCWajek1C7BQ3kkm3zGi4d8RCdc1zs1SVrxLXbbzDJ VRXk/RXPlGv+RklwMm005To05qWaOOEX2EZHvlN2IVBnlp2NlNZWWbyby0PAv/25rpMy 2OgaVXuJx9lrcHnfrpZ1B0UJ/IUqOb4qT4qNBI/U3lU2Z2CmuK42FddC/pK1yd3999Rc UhgmpjMsBptnNVgvvb4hKXPpR/v3akzuMsdW4kprQuebl0g83+MVf+pvrWVD385u+4VH NQ87NTwF0EOyKxe8ihkHItp1f9mWEBJ54+wFw3dV4B9wYZuMlyICsiDS5dYESdBHpEkc KoLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=w8hxS2oFPKpODRGlmUofbxB7DgkRVhysbFqdjt9eLM8=; b=HOLZqKUkYYIVgotpn1ETIiIwuPzQ+E31H376/Ep2fLTZefBAvz09NncwyE+xUiIVfF ELwGHt1WncTsUoX/zaUaSnDkVRaRAl808Yy6a1uSAppmq4/RYOwYO4GMMtD2nkczfsaw PfYKZ9HUgToJV1UOcGmANeAgDNGQIlenO3Ndzw9wvJKMPYA791MS+QC5SIu7hYYXMDCC gzBPAAkNh5miluj9sIvHxrJHiZsulV+YkVvxouX52MBKrjn8qyxDFBKe4zQU4SkO7kVe lVroPrU4ivnCOLrVxvFWbW2pl253GQiHl7uelnksRTEU+lDqAe4x55b+QC4GjDJ8YOS7 e0FQ== X-Gm-Message-State: AOAM533eXLRO6ZqjB7RN/YFJsrDjzIDb9JKY97jiQ151FPzMDFTju6JZ i5vQkr/WkyMwhddiTZa2lm46PQ== X-Google-Smtp-Source: ABdhPJwv6yyWuCTaX646jmpAci3flUez68KVN8En5150X2w0Sv9cW64uxmGjeoXh9jJf2XSEMgsdkg== X-Received: by 2002:a05:6e02:1584:: with SMTP id m4mr28722320ilu.108.1618333558637; Tue, 13 Apr 2021 10:05:58 -0700 (PDT) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id 23sm7495842iog.45.2021.04.13.10.05.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 10:05:58 -0700 (PDT) From: Alex Elder To: bjorn.andersson@linaro.org, agross@kernel.org Cc: robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 2/2] arm64: dts: qcom: sm8350-mtp: enable IPA Date: Tue, 13 Apr 2021 12:05:53 -0500 Message-Id: <20210413170553.1778792-3-elder@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210413170553.1778792-1-elder@linaro.org> References: <20210413170553.1778792-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable IPA for the SM8350 MTP. Signed-off-by: Alex Elder --- arch/arm64/boot/dts/qcom/sm8350-mtp.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350-mtp.dts b/arch/arm64/boot/dts/qcom/sm8350-mtp.dts index 6ca638b4e3213..93740444dd1ea 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-mtp.dts @@ -364,3 +364,9 @@ &usb_2_qmpphy { vdda-phy-supply = <&vreg_l6b_1p2>; vdda-pll-supply = <&vreg_l5b_0p88>; }; + +&ipa { + status = "okay"; + + memory-region = <&pil_ipa_fw_mem>; +};