From patchwork Sun Apr 10 20:59:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 559663 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B39DC433FE for ; Sun, 10 Apr 2022 20:59:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243965AbiDJVBT (ORCPT ); Sun, 10 Apr 2022 17:01:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242351AbiDJVBS (ORCPT ); Sun, 10 Apr 2022 17:01:18 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61D5FCE for ; Sun, 10 Apr 2022 13:59:05 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id o2so1767685lfu.13 for ; Sun, 10 Apr 2022 13:59:05 -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=6jtqewFPMsxnLjGRnErtncZ30YDC8tDjxZxlMXPLk1k=; b=b31gxl0p7pDzLjWYuQWUCcocGXkIuaDYEIxiXTYx8MAUFYT5GVKk03IMvs1DUtlhW8 WnOBB0UdhVURZL8WDkXRrIakCKAil4yerDxydVUcFhQZ4IZK/kiNs5istDSQbeVMFeSt Q2RFwHyjzXYi5Eqkz/t98ekU0aJuLtbfes+uvIMl43pIoJhnk9zD89bsa9TSTaRn89F9 4fb30fD6DrR0nyLSNw/Gl5SkVmCc2OqDm99QkHwzk2K0quO4fzEbsfOSn2WSq1gZxa6v 7uwt4Eq4PU56+PjhzDuP+n/F9BcKt0JsvNVSxfqSo+/GQNyZpabgQ0IXmps5Ae+u4tkc BRyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6jtqewFPMsxnLjGRnErtncZ30YDC8tDjxZxlMXPLk1k=; b=Tfxzswtvef5ys+pD5xpRg5APX5/mmMbdvZVjMf4kALkt/4BO2A6r6QRNAZrAZbYe4q PXMJhqH4WUDmjb0H03qPXN/vwG00yIpmFTTM0kbm3M0Dk5hQNGbuavbpGoKTHwqUTYtf XHrVXX9Rh98sfQLk+ZaGbmFp8LnnXZfLng9OJgzxbtQFG7Rta7t9VQXTgB/8TmdxN9Bu CMQl3dzJ9GkmCzuBmyfq5lvcHD2flheM0ay8JxLjORFzsD5mN3iPodY767KcESE04fsO psYvy7GYIfnd5MbJkeNkttj3fvbGEdUAerVATwmDDXgnAe4KajsodaUXen2JSNhLY56h NSfg== X-Gm-Message-State: AOAM530JakBEfE/ISIZRmAeu+N6L05ibfXFLV7KtXGyl36Xmlrbe3qB3 vY1aWVTtmHzfZl/8ww1XTsLdLg== X-Google-Smtp-Source: ABdhPJxWfLcQpsBABdPNsAn/Ia2SJyLFTsSMG9tMe9PdWxcG5stcJt9dz4RSBFKuhLUSd+1evy9yWQ== X-Received: by 2002:a05:6512:3b28:b0:46b:ab15:9f2a with SMTP id f40-20020a0565123b2800b0046bab159f2amr72308lfv.588.1649624343555; Sun, 10 Apr 2022 13:59:03 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id t17-20020a192d51000000b0044a5a9960f9sm3114809lft.236.2022.04.10.13.59.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Apr 2022 13:59:03 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: qcom: sm8450-hdk: Enable remoteproc instances Date: Sun, 10 Apr 2022 23:59:00 +0300 Message-Id: <20220410205901.1672089-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220410205901.1672089-1-dmitry.baryshkov@linaro.org> References: <20220410205901.1672089-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable the audio, compute, sensor and modem remoteproc and specify firmware path for these on the Qualcomm SM8450 HDK. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts index f0fcb1428449..34e37991c0c9 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts @@ -349,6 +349,26 @@ vreg_l7e_2p8: ldo7 { }; }; +&remoteproc_adsp { + status = "okay"; + firmware-name = "qcom/sm8450/adsp.mbn"; +}; + +&remoteproc_cdsp { + status = "okay"; + firmware-name = "qcom/sm8450/cdsp.mbn"; +}; + +&remoteproc_mpss { + status = "okay"; + firmware-name = "qcom/sm8450/modem.mbn"; +}; + +&remoteproc_slpi { + status = "okay"; + firmware-name = "qcom/sm8450/slpi.mbn"; +}; + &qupv3_id_0 { status = "okay"; }; From patchwork Sun Apr 10 20:59:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 559493 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45F3AC433F5 for ; Sun, 10 Apr 2022 20:59:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242351AbiDJVBU (ORCPT ); Sun, 10 Apr 2022 17:01:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242425AbiDJVBT (ORCPT ); Sun, 10 Apr 2022 17:01:19 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2704C296 for ; Sun, 10 Apr 2022 13:59:06 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id r2so2517128ljd.10 for ; Sun, 10 Apr 2022 13:59:06 -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=V6gQlFkX6arSWeceCappRrDDbouyR79OAj94g6yrqM4=; b=ge/T+374NYComgBadZq1vZeaTvSVqPq/NETXmdMMqlwqtdSRrVxawR7+kWg2IVZE+I niK3AY1mvFKCKNbOwhOUjhuDzgLbBjMbA8sDpgAgqXvWy6SgWn7InU3DawuM1bmwY5bE Ra+SRrZzGFSkIOc5WPV9TU7legrYgDxHqt6fgcDhcJ9Z3zp7dS8GVF0Tiu+h+VZV6nWl 3lhx1mTu+Gap+H/gzw4rYJLBcHwjl0qSR8thcHlFRFFw9rWxN91Rd6wQYoSao3B3mHzP i52qEixExJyNW6Cc3/XeF2fG4FhQoY8OXdLjRiHhpRhy0G0LKkYt4bZb8Kl7s6adSf+P OugA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=V6gQlFkX6arSWeceCappRrDDbouyR79OAj94g6yrqM4=; b=OEX00m5RpiqEbp9PlP1rCzUHkjysoQy5uOLXGfCM58Nvelg10SiGo7PuyfDepAqplh MUiHejK7JexqmCZyCNTrOH1MzOlQrzxLqeTDDA7hq99goZKkQbhKNeu1TgwcvA51wC3F 13Q1UVfHlF2d+2cBj+2AoSa3qbpVOlWVnub7dA8YCPLHz0xBrNOCvEYEMawytKteH2ln JsBY4QZJEROrBAuHJC72Z6/RUd9V54uSWk6G/Uox1TorAFPyX/goSJObyaHK1tkXvRh7 POog/oPzIM4guRsjiBogz3mnYLLwhZ1chakUaZItvxov/eKqbMSGnO3ZHjRjmeUmEvJQ qLBg== X-Gm-Message-State: AOAM530GKqMk/GTIhjR0vLzVsHDLu4Npt8BgaOht/JMSucGbEsoITqRt CXHwLQdOqhNVelJiPOVA9RAEoA== X-Google-Smtp-Source: ABdhPJy3P422AYF7b0O9BKynXiNzjxSPMMLN4WUPGlyFiV0NIUUxdu671LH/N/iIxEz2OwGUUFu+/g== X-Received: by 2002:a2e:bd17:0:b0:24b:4c2a:20c5 with SMTP id n23-20020a2ebd17000000b0024b4c2a20c5mr9969055ljq.422.1649624344389; Sun, 10 Apr 2022 13:59:04 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id t17-20020a192d51000000b0044a5a9960f9sm3114809lft.236.2022.04.10.13.59.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Apr 2022 13:59:03 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: sm8450: add fastrpc nodes Date: Sun, 10 Apr 2022 23:59:01 +0300 Message-Id: <20220410205901.1672089-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220410205901.1672089-1-dmitry.baryshkov@linaro.org> References: <20220410205901.1672089-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add fastrpc device tree nodes for aDSP, cDSP and SLPI. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 119 +++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 934e29b9e153..385892330017 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -887,6 +887,33 @@ IPCC_MPROC_SIGNAL_GLINK_QMP label = "slpi"; qcom,remote-pid = <3>; + + fastrpc { + compatible = "qcom,fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "sdsp"; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@1 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <1>; + iommus = <&apps_smmu 0x0541 0x0>; + }; + + compute-cb@2 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <2>; + iommus = <&apps_smmu 0x0542 0x0>; + }; + + compute-cb@3 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <3>; + iommus = <&apps_smmu 0x0543 0x0>; + /* note: shared-cb = <4> in downstream */ + }; + }; }; }; @@ -927,6 +954,32 @@ IPCC_MPROC_SIGNAL_GLINK_QMP label = "lpass"; qcom,remote-pid = <2>; + + fastrpc { + compatible = "qcom,fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "adsp"; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@3 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <3>; + iommus = <&apps_smmu 0x1803 0x0>; + }; + + compute-cb@4 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <4>; + iommus = <&apps_smmu 0x1804 0x0>; + }; + + compute-cb@5 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <5>; + iommus = <&apps_smmu 0x1805 0x0>; + }; + }; }; }; @@ -967,6 +1020,72 @@ IPCC_MPROC_SIGNAL_GLINK_QMP label = "cdsp"; qcom,remote-pid = <5>; + + fastrpc { + compatible = "qcom,fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "cdsp"; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@1 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <1>; + iommus = <&apps_smmu 0x2161 0x0400>, + <&apps_smmu 0x1021 0x1420>; + }; + + compute-cb@2 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <2>; + iommus = <&apps_smmu 0x2162 0x0400>, + <&apps_smmu 0x1022 0x1420>; + }; + + compute-cb@3 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <3>; + iommus = <&apps_smmu 0x2163 0x0400>, + <&apps_smmu 0x1023 0x1420>; + }; + + compute-cb@4 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <4>; + iommus = <&apps_smmu 0x2164 0x0400>, + <&apps_smmu 0x1024 0x1420>; + }; + + compute-cb@5 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <5>; + iommus = <&apps_smmu 0x2165 0x0400>, + <&apps_smmu 0x1025 0x1420>; + }; + + compute-cb@6 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <6>; + iommus = <&apps_smmu 0x2166 0x0400>, + <&apps_smmu 0x1026 0x1420>; + }; + + compute-cb@7 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <7>; + iommus = <&apps_smmu 0x2167 0x0400>, + <&apps_smmu 0x1027 0x1420>; + }; + + compute-cb@8 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <8>; + iommus = <&apps_smmu 0x2168 0x0400>, + <&apps_smmu 0x1028 0x1420>; + }; + + /* note: secure cb9 in downstream */ + }; }; };