From patchwork Sun Apr 10 20:51:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 559531 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 80F4FC43217 for ; Sun, 10 Apr 2022 20:51:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233918AbiDJUxo (ORCPT ); Sun, 10 Apr 2022 16:53:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236047AbiDJUxn (ORCPT ); Sun, 10 Apr 2022 16:53:43 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 537065520C for ; Sun, 10 Apr 2022 13:51:31 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id m8so376403ljc.7 for ; Sun, 10 Apr 2022 13:51:31 -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=t69oCZEW/bMPYdVmTxc6rrv0zm/Oj37WLcE4owOEwKk=; b=whMEjuK1zaCpm1IhGP7myyApuhE1pqdJuOvL49DwftSjGAnbq5cMof+tA1ywZz9+CP rdlHLvozxoLMX5BiyNgNtoXRXq1vZr1x7YWJBXfQ0oScwaJ0FvcBLs6dYo1m6/UQc54E CctMnLzGposyeVCNWAxN2j15NHtPaCVeWdQD9eJk5LJqBfygJQGH0kM6s4ceA6lhCYP/ 0T4dnUwWzlREtFkLe1FzeLZ177E0AmaUM6rVh6cyIQpMRJBuCc2etVYzDp7BUhMGCvJj 5ocJTHYqGxA5ermkGD2XS79U9X0dAcyzYii1zX3OZcp1VBieT6h9qjU7wNLZ8R+IYmt/ td7g== 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=t69oCZEW/bMPYdVmTxc6rrv0zm/Oj37WLcE4owOEwKk=; b=1NAArwXkhtjEURpoZAiVaSBCCX8Jm8B0TOqk5R3+OdzcPaxh49NCvoRXtKj+1e9Ac9 Zhb7PqR6XVmnOJC6MREQ9QrHn2gHBkHnnEkSF2M0QF3TXQFuf5ctCkc1nJoj4VSViITj DK91HW9J5pDHZyibMvAAT+jj/uxPCwH7ipzn1Hf46pqlQu//dqUzBxJ9x3rXCQD1bvuJ 4JbXTOZ0s7JEUWPQ9Ie8UCa+iTdOLMJ+zrRGjIiCePot2KGtosGUFZ73NZd/UGUYWpvS +at094+Sm66sRsudBOYeoBwsZgVxTHJrv2zMxR0j0D5Mto07S+BYzDP+0W1arJK9AQel k/eA== X-Gm-Message-State: AOAM531N0pg8avsMQYc6m7UC7yKldsB6E9THhPQm1O94i4g7ceBNYsTP THP6oEHlYaFeL2yAl1pxh9MWxQ== X-Google-Smtp-Source: ABdhPJy0Bs70ZJnB1BvoxHWUMNter25LRGbIqzLahFMZEmio1TP8zkycEvQM+QgAsFHgOh9/wQ7OYA== X-Received: by 2002:a05:651c:160b:b0:247:f955:1b18 with SMTP id f11-20020a05651c160b00b00247f9551b18mr18726414ljq.427.1649623889369; Sun, 10 Apr 2022 13:51:29 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id t15-20020a19910f000000b0046ba6b39d14sm85244lfd.10.2022.04.10.13.51.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Apr 2022 13:51:28 -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, Vinod Koul Subject: [PATCH 1/2] arm64: dts: qcom: sm8450-qrd: add missing PMIC includes Date: Sun, 10 Apr 2022 23:51:26 +0300 Message-Id: <20220410205127.1670705-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220410205127.1670705-1-dmitry.baryshkov@linaro.org> References: <20220410205127.1670705-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add includes for PMICs used on the SM8450-HDK. This makes GPIO blocks and thermal sensors available to the user of the platform. Co-developed-by: Vinod Koul Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8450-qrd.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450-qrd.dts b/arch/arm64/boot/dts/qcom/sm8450-qrd.dts index 9526632d4029..b7ea92045bc4 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-qrd.dts @@ -7,6 +7,13 @@ #include #include "sm8450.dtsi" +#include "pm8350.dtsi" +#include "pm8350b.dtsi" +#include "pm8350c.dtsi" +#include "pm8450.dtsi" +#include "pmk8350.dtsi" +#include "pmr735a.dtsi" +#include "pmr735b.dtsi" / { model = "Qualcomm Technologies, Inc. SM8450 QRD"; 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: 559529 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 5B0A4C433EF for ; Sun, 10 Apr 2022 20:59:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233232AbiDJVBU (ORCPT ); Sun, 10 Apr 2022 17:01:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242422AbiDJVBT (ORCPT ); Sun, 10 Apr 2022 17:01:19 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26346280 for ; Sun, 10 Apr 2022 13:59:06 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id bn33so17846504ljb.6 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=nIrubtL/d3QRHdJ/E0u2z4Tra4TqD/uWmYpDfBD5kbydZzqOU58Z55JTNTsy8+9Qjs uOJYZ/uCA97srioR3WQ9Kjkq49CUmyvZTMyQS8lOBLjePTRn8FE4XoGBzyuBKrbevgtW Stqiq3w40O67c+mU7fHSmPi2BR/aOBwk3VAx9ZXZVkJdj9jnJ81/QxwQ6m3x0VLx4nYG QzsiqJ4zpu7xd/TeXvS5WNI6OsOIUpW1b2X88d3VsyA+24YGfX00DFXpThw6RAaTd+JL aHMg9KhRzdZIrWYJMDDIwnq871V08upxRpoKkeFJ79b3mML01ZqfY3LB1s/ggDGRrSJC LXLg== X-Gm-Message-State: AOAM531ExuvSY21OnBagD9ZsExRlO4QPuw8ZjsWiUKkOLjCCv27eBdHs qqQVoWIOojDjV7on7Vh0Vq/83g== 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: devicetree@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 */ + }; }; };