From patchwork Fri Dec 1 13:50:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 749864 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GiGrVGiD" Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8797010FC for ; Fri, 1 Dec 2023 05:50:50 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40b4f6006d5so20477335e9.1 for ; Fri, 01 Dec 2023 05:50:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701438649; x=1702043449; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ylbvBaCtGkOr9v3ebXBx4OP+NlathOIL8CvJ0tgXpcA=; b=GiGrVGiDZPmnsS8n0nGLo9gtxn6c3d+CXUBjWXg9P7PBb0JjINIRZzVKubnvqC5ZC/ AGaNnIQFxrBNWUn+StE1xPVk/UUTr7bZ91BOQvNaRkCPQj+3CSatt/TQA2cwfhZCu5eu 1g3YlQe8XmBmKA/Hi3abDoTL4OHADMXm3O2jXwp96EmRVAxW04rVACO/J5tkK5CYMgoF ixjwdIpj2r66Icw44Gwqr+HkvuvAoi4FXxEAPmptMy4uio6Qw241lM4LLy4ti0+h/vq8 y3r1RqNlT01K2WYU9MyH7ED6/dW8W3tfO0y0ep46KlUXBeUrIzsVwM6zYN3JYBMNKM7k b5Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701438649; x=1702043449; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ylbvBaCtGkOr9v3ebXBx4OP+NlathOIL8CvJ0tgXpcA=; b=TVSzcDe6Mamt77+qGu7vdsEKp2czekQ/xOEz1zitw5Fa8+FO4QjUSScikx92vneJfB 6otNMwZG9sMkQlU3URFWLj6kJN/kJhvu+2/X580rTCEsQDXBeoDHZr7i7VILHoTLLAif 2UyHXW4ZwQwG/hk9G3OY8PxHuVBN2fiDh4enAh9ciCMtQpAR6zFnngzlXTkx/p55aDvr bBKaVaBXCiYDtrMYbZOEm4iUe7sWgu5FueDmJK5Qv6YW+yIq1xAiyob7fctz/yJ6AJd3 sbRM/1cf7/etE6mG7yKFdjncLsjWpVZYviPBuFC0q9TlmpSV593V/YrNTEkzVhauuLIK kQNw== X-Gm-Message-State: AOJu0YwoygOifTQrBSj945bOE1+fsigYTwwtSrkqv13uYdq3+nSM851S zqnBEB9iR0pxsXEDsgmcUosCmA== X-Google-Smtp-Source: AGHT+IE9CwsDjTl/5hZna/K7kGCFLWqfddeMFWTn3xMop2rQmLvJNTlpHF9HnPxUt+kVNeo7WeU6ng== X-Received: by 2002:a05:600c:1f90:b0:40b:54ef:ff07 with SMTP id je16-20020a05600c1f9000b0040b54efff07mr436220wmb.32.1701438648757; Fri, 01 Dec 2023 05:50:48 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id s8-20020a05600c45c800b00405c7591b09sm5539942wmo.35.2023.12.01.05.50.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 05:50:48 -0800 (PST) From: Neil Armstrong Date: Fri, 01 Dec 2023 14:50:41 +0100 Subject: [PATCH 1/2] arm64: dts: qcom: sm8650: add IPA information Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231201-topic-sm8650-upstream-ipa-v1-1-7e8cf7200cd2@linaro.org> References: <20231201-topic-sm8650-upstream-ipa-v1-0-7e8cf7200cd2@linaro.org> In-Reply-To: <20231201-topic-sm8650-upstream-ipa-v1-0-7e8cf7200cd2@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Alex Elder , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1928; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=d9zg/kzQS8fG7uanCYvaRGQMwgYvhVG1NNJ0Q3b4OrA=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlaeS2lEadsueYkzQ1p1S/dpDPKgM/ebJwp/ev3a8Q SowTmHyJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZWnktgAKCRB33NvayMhJ0XyTD/ 919kZDYpR1wiQPckhxQAfcw2ToPF1BkVILBoTLkGHTEnyrODqHnJ9uWdZr1em/EU/L9LdGCBTsmCNj DqQYkw/cfmPoWhGyz44EyZpahM37oo9xZQ2Yo+N+q4LLHuYJ9+w6Q2oxZso8rN786ZmnstU3fSFWfe mJtSvRbonQWCgGq5XJNmEuFsREoPsO9xl4//AYCbrHT/mFN/U8dy8B4HQLHdi6GiNO+0iL19GL/KDp dJbAYIQKYXdHJZ9pSfnxRGyfFR4pFb4RiXLSz/Ghm4m0fH/4iZItnO0IKq7l/05URqW5rs0zD0EbVF Nk7+yUkEhSznNCrORPTpWAOLlq7otmM4s4VzzSBRdpOpiCo0wMx5OFHyEziqgt5/mlEEQUljMofzeW dqdvaRuCE0r2/epC49bXh0TUmU9OM/v1e+LWTUL3nLfXZosmi3b6zLohPamC1bRwcxU5WJLL2FtwRY BC76yRIKMZv+ZHrUL0vXvfLQgCilCyZupNvP+45wt22wc0aqOLx7qaf2QkMxilsT9grIpfhAR9Ns/E Qv1r7BGs+NRVZsbPlpFY6tAhmjzkxs2qww1MXktU6XRXjPt+NKttw0myBSv5oB7/arTrLbb/ChYtFy 5HKJkfF9vO4qwZHNhuP9aNhzdudtkLgDl7hehNaO6E8VbdpLRqRMnM9qsQqA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Add IPA-related nodes and definitions to SM8650 dtsi, which uses IPA v5.5.1 a minor revision of v5.5 found in the SM8550 SoC. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index 41dfa5e19a15..13dc1305109b 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -2558,6 +2558,45 @@ gpucc: clock-controller@3d90000 { #power-domain-cells = <1>; }; + ipa: ipa@3f40000 { + compatible = "qcom,sm8650-ipa", "qcom,sm8550-ipa"; + + iommus = <&apps_smmu 0x4a0 0x0>, + <&apps_smmu 0x4a2 0x0>; + reg = <0 0x3f40000 0 0x10000>, + <0 0x3f50000 0 0x5000>, + <0 0x3e04000 0 0xfc000>; + reg-names = "ipa-reg", + "ipa-shared", + "gsi"; + + interrupts-extended = <&intc GIC_SPI 654 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 &mc_virt SLAVE_EBI1 0>, + <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_IPA_CFG 0>; + interconnect-names = "memory", + "config"; + + qcom,qmp = <&aoss_qmp>; + + qcom,smem-states = <&ipa_smp2p_out 0>, + <&ipa_smp2p_out 1>; + qcom,smem-state-names = "ipa-clock-enabled-valid", + "ipa-clock-enabled"; + + status = "disabled"; + }; + remoteproc_mpss: remoteproc@4080000 { compatible = "qcom,sm8650-mpss-pas"; reg = <0 0x04080000 0 0x4040>; From patchwork Fri Dec 1 13:50:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 749056 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lIYhwuqH" Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52FE2170B for ; Fri, 1 Dec 2023 05:50:51 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40b2ddab817so20393665e9.3 for ; Fri, 01 Dec 2023 05:50:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701438650; x=1702043450; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=imJHbpmpHY3lf2HGbu59sinv7Vyx+tVX/+ka8ggTt3w=; b=lIYhwuqHhy4lM4pLaug/o4gq0SROltztZHZbcbsj3GvX7+eS4WA/vkfhkG1CZ7WUJ/ oAu/4xR9oSRTZsqYMYTRQ5756DbrPcoQtx0Hmiau0MLrhNnXFEzHsxAhMxtqNSDD/pgv N5SuMyLK1O647aXfjvOiWCvVkspCPHeWKGZCiNY+dGVVD+28Zpnj9N5MumGL/G8R5lny U9k1kmxf6wi+JxYGRYc2Z4EvzhH9Uhh86QGrA5eKeiEDAgR7DF50GQK/duNTlqMUcesd 4hiUZ04StkkgnvOrYnMdBc3bSIl+B3MKoiWnLW93OT4e4WJ2fAI+ncstHaHfGQpnUy9H AroA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701438650; x=1702043450; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=imJHbpmpHY3lf2HGbu59sinv7Vyx+tVX/+ka8ggTt3w=; b=rR+5nWtSQCF8XVBO6XOQHHsFHJ6jnvlBEYI80M8ksD8jTYH1k4PGApU1S4qdhC+yC9 /NNLswZcObNSe9i+z5em0iWirTJjljBJZhPpMNpxSt9ZGjSdBTg/Eymd9X7lXTgjCEf/ rJNO+VuLLxuktggM/d0Vn47/oGkqyUd87+kok78hA5BPlvRwVBP4mzNJF1ra65HQz/dh KxeyzCMyxK4J47mwRi7KHyLMbwOgSGFdnMHVe1Y1rPZZZyDpyt8Cah/LKBTCJhk3u8Un vNquK5IS8Hcp/+jIpyTfm5G0XX4Z1+wumSZwHYqyp8CwQI3qzCTkLpq1yJWpPKyhmcb6 E3mA== X-Gm-Message-State: AOJu0YzGIOlccFaPHFR2fFypnsKhbpN6JXTYoxgySvByJadHEpXk/pB4 k9p2DUQU0IzSkJfOCJ3eGtdt8g== X-Google-Smtp-Source: AGHT+IEkg0ZFPXx0Eods1z6IJk2FLNB94rGE+9E2agLMYm58uuLqxXcavq5Jwr1g0gswx6fiRirHyg== X-Received: by 2002:a05:600c:5129:b0:407:7ea1:e9a4 with SMTP id o41-20020a05600c512900b004077ea1e9a4mr417596wms.5.1701438649582; Fri, 01 Dec 2023 05:50:49 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id s8-20020a05600c45c800b00405c7591b09sm5539942wmo.35.2023.12.01.05.50.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 05:50:49 -0800 (PST) From: Neil Armstrong Date: Fri, 01 Dec 2023 14:50:42 +0100 Subject: [PATCH 2/2] arm64: dts: qcom: sm8650-qrd: enable IPA Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231201-topic-sm8650-upstream-ipa-v1-2-7e8cf7200cd2@linaro.org> References: <20231201-topic-sm8650-upstream-ipa-v1-0-7e8cf7200cd2@linaro.org> In-Reply-To: <20231201-topic-sm8650-upstream-ipa-v1-0-7e8cf7200cd2@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Alex Elder , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=733; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=SO5EMPj5/4o5z1qixmP8r0h1as0YkIYfBDEdRiT4avc=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlaeS2L0/ufnYtbrqHX19JToqOQlT0/ABu76Q3Poux rdLZ//iJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZWnktgAKCRB33NvayMhJ0VxaD/ 9TtFzJYHvVHWCl1or/AgZW5fHbryWqzg+TgkVYO1tthLoCMV9hxWJT+ndKEW8xwf6HpdnC3DK7G/Cm bSQEmrN1ElIAGYYQo8iytbDRXADUbyV2aEi6B+xf6eGf9XpuTkrAfTzGfJCWWPQF8V4W5uino3UYEq hM5hFwninBNa9lM5P48vNsOWvRqmxpR4yR6u6jU13+souV8+YfNC6xnAxjiYjZPOFvUCrMg1BO1T+t FGt97mKWL2AgGmf0fEyMxada0aB9OzFtzDHW1c6PkRI0ZbTj1bgpu5RLb7q/NGABQ0tRUnxFChijjK iH9Zr3lWusYNJk/eZDSbYDkshtiRXYE1hUlr4HndrNUsFwnnrcPidv1jjdZo7MrulySR+eu7Wp4VdX dFUYfovIimhZlj1EEn98xxjHA1Ckhqyd3qIwGLVXSonNNfWl+IyPSHoRWrbC4cIHEGFFv1PYs57qrx gQgv3vB6gtpSD7AdpMZzQtFAQ6G8obNBb0ncIvbOoJRTl3H/zcpam3knWHv0h03F4/5/TsvWG3rKst Hq5yhouOPVhei9mT9f8X5c4/+pwMvBq/iaxkrGeLtnV3omVqXS68GjSd6JzsK1me8g9KkUnE11nL2U 61lrHX+z86pnYQA/NkbYKwdaqOaZaRlR6fJmxTBIIO6Hs3ZvQL5JGrEI5psQ== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Enable IPA on the SM8650 QRD. The GSI firmware on this platform is loaded by the AP. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts index e69ae61b6111..592a67a47c78 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts @@ -446,6 +446,13 @@ &gpi_dma1 { status = "okay"; }; +&ipa { + qcom,gsi-loader = "self"; + memory-region = <&ipa_fw_mem>; + firmware-name = "qcom/sm8650/ipa_fws.mbn"; + status = "okay"; +}; + &mdss { status = "okay"; };