From patchwork Mon Jul 19 21:24:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 480070 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4531762jao; Mon, 19 Jul 2021 15:04:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCv+9CfevSblF1hq7VTjfaHZRTs37ZnZ/SdaMbRA3bMjjNK++ZFT8L5dC0LAXfHXbdA8aS X-Received: by 2002:a05:6402:1d2d:: with SMTP id dh13mr18980252edb.90.1626732241596; Mon, 19 Jul 2021 15:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626732241; cv=none; d=google.com; s=arc-20160816; b=Jm5Cb4q7hk+sRaEuhNo5VzeSkjCCm2ywDuU7FoW7EuI1RKzGcIqiFqKwHWK7ElW1bj ad/t0Jjqvv+8ptcMtYKqkxxJugITJ1Sb2yaqeFBrcKaAla6sjblLM1idZF5K/naKmfJk VmbkJOY3t6UiMyK3UkXUYsOUxXROB/Dv96swY9mYuXXh+B++QbkZEytWygFyIr9ocT5f MJM0saOzjpVvmwQla8m5x6P5VlLjPwf1GT9+ENym5y+nTIA8nhOvLuIkRs/Euqr7ILMa P/e+u2PcbOHfXxeqlnzp0CVdCpJsbqwMy6N8ex+4Q0SxqD92H0MHi8cYPhvABKhxRuP6 9Ukg== 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=46RsDietiFjiFAmxHIYkL76FeOwDdqdmSCbTGG461UY=; b=mO4LOm7kOWQ5ufYfY9wW4hkioQz8PtCGN3mSEpPiy2Hh9vp0B4jW6WEiUdbrIwANy3 7JDqIKWatxbOqdo+y3BxtdqT5UDUUL7quJ+2Q8cGjtbJY5SJvOQDqxJp2/1I9yoW3uAP UN2m9gbapJK+untQvPmu6e/DYDdD3kKRjsMbX2uoOMAYMa2dnLEfBhEU6kGCifBJ/Tm0 +Up46usiIsyXpPWcgdMmgU9jZArjsu2GWcBp8/+YNb3+Z/QIaE06rs0pVJDQ3huwi3Jg ciqqunIuCm9ALDm10eXBtkajHUuHwFifDeTQxuJA4aiBBPm4qhgCW19IQde8qXywePeY pObA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u0YJcFOF; 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 p26si22115036ejf.481.2021.07.19.15.04.01; Mon, 19 Jul 2021 15:04: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=u0YJcFOF; 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 S1389202AbhGSVRz (ORCPT + 7 others); Mon, 19 Jul 2021 17:17:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388278AbhGSUsq (ORCPT ); Mon, 19 Jul 2021 16:48:46 -0400 Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95AE3C0613E1 for ; Mon, 19 Jul 2021 14:25:01 -0700 (PDT) Received: by mail-il1-x12e.google.com with SMTP id a7so17333646iln.6 for ; Mon, 19 Jul 2021 14:25:01 -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=46RsDietiFjiFAmxHIYkL76FeOwDdqdmSCbTGG461UY=; b=u0YJcFOFHDFPhKL9n6v8T/fbiThMvb5VJ6ffhsL620e5jzPAZUV/Eov+IK3LPGgsKb sxS8HETu5mv093AOYUgGHq66GXQrufK5aAjGBwjIgnYZfqlRJxQReyMWrEV8R9rbpEJD KnPA6GaZN2ATQ0SN7Fq2LdHZpFaCD9elKkwlfFzn1EdvlrccIVxTNWj23qVAEs5dtbGW ouo8n/+Uyq74CogfkvXXRHZVwGkWksNxWJ5p77IfOp24wQgXvdZM2W9QS0v9LRJlq3tR Kr64yw2ZlE4nCLdK7wuTLyof7bDxQOLsU+9+STUGvCOSbaMtdiHCgHndpQrow6eWW/c9 PqBQ== 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=46RsDietiFjiFAmxHIYkL76FeOwDdqdmSCbTGG461UY=; b=nz0RFuA+38S2hfPBy+btdKmuORG2+Z7MQ7wp/W7Uv7Q6t5Hdt4Wjso8DNRh16i52QT oGXmpdKTIB2n7MU/j7xHlpq8IG9Py53FXCzkfh7/YmeVWvvRy23f8YuUux81lY942sJP yiodWZxRIq/slKGhhC1BqmiR9hW7rj0d+vneD4dCVMTQuCJpu650ha0dkvodJ8Y/Jc47 fM5K/coY+6bZJLtvS7jYtsc5KodnALDSu3sx1gWG66EkrnRBrmBryiVLshLE4pnCG1BR kL+84DI+vbJ8ia4mi8qpBx5W7Bb5nQuqy7whCbjM8p5UMEdXPgkJtCvvLVchNFK/VoLq l8Uw== X-Gm-Message-State: AOAM531SH4AdGBHG04gaJkQslvLBVF5H6E/m7aD8+12Ri6XehpET2q32 bcwkcEBkuthPvPs9e74UToBudQ== X-Received: by 2002:a92:c10c:: with SMTP id p12mr17775712ile.92.1626729901039; Mon, 19 Jul 2021 14:25:01 -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 f16sm10365634ilc.53.2021.07.19.14.25.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jul 2021 14:25:00 -0700 (PDT) From: Alex Elder To: bjorn.andersson@linaro.org, agross@kernel.org Cc: robh+dt@kernel.org, davem@davemloft.net, kuba@kernel.org, evgreen@chromium.org, cpratapa@codeaurora.org, subashab@codeaurora.org, elder@kernel.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 2/3] arm64: dts: qcom: sc7280: add IPA information Date: Mon, 19 Jul 2021 16:24:55 -0500 Message-Id: <20210719212456.3176086-3-elder@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210719212456.3176086-1-elder@linaro.org> References: <20210719212456.3176086-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 "sc7280.dtsi", including the reserved memory area used for AP-based IPA firmware loading. Signed-off-by: Alex Elder --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) -- 2.27.0 diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index a8c274ad74c47..5eb2b58ea23be 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -63,6 +64,11 @@ cpucp_mem: memory@80b00000 { no-map; reg = <0x0 0x80b00000 0x0 0x100000>; }; + + ipa_fw_mem: memory@8b700000 { + reg = <0 0x8b700000 0 0x10000>; + no-map; + }; }; cpus { @@ -508,6 +514,43 @@ mmss_noc: interconnect@1740000 { qcom,bcm-voters = <&apps_bcm_voter>; }; + ipa: ipa@1e40000 { + compatible = "qcom,sc7280-ipa"; + + iommus = <&apps_smmu 0x480 0x0>, + <&apps_smmu 0x482 0x0>; + reg = <0 0x1e40000 0 0x8000>, + <0 0x1e50000 0 0x4ad0>, + <0 0x1e04000 0 0x23000>; + reg-names = "ipa-reg", + "ipa-shared", + "gsi"; + + interrupts-extended = <&intc 0 654 IRQ_TYPE_EDGE_RISING>, + <&intc 0 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 &mc_virt SLAVE_EBI1 0>, + <&gem_noc MASTER_APPSS_PROC 0 &cnoc2 SLAVE_IPA_CFG 0>; + interconnect-names = "memory", + "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", "syscon"; reg = <0 0x01f40000 0 0x40000>;