From patchwork Fri Feb 12 11:55:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 381800 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2868095jah; Fri, 12 Feb 2021 03:57:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzK6kAkgibBEtAcadF5CRY8DNj3y5db0aghJBQl7zi9T2ipDx5bszLNPfJgTW/lksa76A/P X-Received: by 2002:a17:906:70d4:: with SMTP id g20mr2650515ejk.361.1613131020064; Fri, 12 Feb 2021 03:57:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613131020; cv=none; d=google.com; s=arc-20160816; b=JvVzHZM2uH0GVKSeqWIBnKIN9s8nrW9NvZX7Z4WoVTO165CVDCESfIcqsE9VPvO68E KT2PR60tiKVnLXKBm8tUJrfa5wcF4JF04NCttZqmPqE1WV/7oh+ZDf6uJRevt5x2naTj qKmYqoMqLRxebbgy6BT/NZew1IpMn1/PhpsMmqicvKOvf/Ggy1IoJZoktckSG6ibxbzn Ock5GBBKjwIzyVsG0Q/M1SX4s75ksgw3hYf340TlayMTgIWFSvmQO6b7Z1lSD2w+7BzY lj9dx608tRknrCd3rr9axdiAqfpGfcmWo8Om8psLyjl9+0/FNTJTOE7cNtTiEqi1GyCy Ctdg== 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=miW1Ms4KF+/OqBXgaUOhqrMBPcmR6fduxbGE0JFQLyk=; b=tAq5s7gu9SDPH+irXmPanU7OkxY5Dp4iOBaSLGjDvqDfJlBRxhJZM8ZDs+DwytkaIv YiQTJkxXnqUKF4mDXaZYOcIfLnZjbroRsiRXF0v053Ede9AGZPcfn1IxonvoAfjPCI65 UQ9fAHHystvk74VyMQUMRDY7347kEgU9Kb85PcFIx/HnIvgtG4pApX8Zbp9qokI37RNV FZKeanOkUOcRgPWIILar6Kh10L+5XiBqbbM14XIeNb/fGrvtO+aWe+P6k/R2O5R18MtS mQjVzJC1KHJT1xe90MSJl2aj4IFfawEFFf8pw3216MSPz0LO5NptRKMxeR8GBPDcpRM1 o/JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xzb0yq7V; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c4si6017130edy.405.2021.02.12.03.56.59; Fri, 12 Feb 2021 03:57:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@kernel.org header.s=k20201202 header.b=Xzb0yq7V; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231150AbhBLL4u (ORCPT + 16 others); Fri, 12 Feb 2021 06:56:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:47786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230342AbhBLL4W (ORCPT ); Fri, 12 Feb 2021 06:56:22 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 44C2C64E8A; Fri, 12 Feb 2021 11:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613130942; bh=Kn2W7CYVAvREocCydapzoFsAV91gfj0UMuQXWUE4FHY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xzb0yq7Vi4RNVPSZQ8G3avCwDhvo5BjPHZfbyxjJLr0DTlHjwhz6MRtMiSKZ/Y5bO 6/vmdOFR78O3FogPs4nT5evMeNtJHbF36/8z+NNlK8Y76FCiE1+IzKzpi+EFUUYouI Z+rspfrEN34XMpKJQY8rznFovDGkEaI2HgxTnblUPFt4rxRuY4bHAyU4WBAoNeXXWa LY9B2QBfvf4hDtjWj+Gx4s9UV+pHbR0NlDGjmBbpp4GBtSez4E/aqsiNj4Y+6ALiOe mD52htSupzdRFisaBlrYQ3x/z488MkP3Wwco03uSAKaWixUiRepmkBZijge1EzjVFK rd8kZiMOvbwFQ== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH 1/7] arm64: dts: qcom: sm8350: fix typo Date: Fri, 12 Feb 2021 17:25:26 +0530 Message-Id: <20210212115532.1339942-2-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210212115532.1339942-1-vkoul@kernel.org> References: <20210212115532.1339942-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix the typo s/Limaited/Limited Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 188f4011352c..b53744618102 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2020, Linaro Limaited + * Copyright (c) 2020, Linaro Limited */ #include From patchwork Fri Feb 12 11:55:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 381802 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2868165jah; Fri, 12 Feb 2021 03:57:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnYwlEh1TIwTgKt12vvWuUeX+sA3iS6pcJ9Om9o5hUOQFYWae+OGIT+hHBYMzRZpgs0CVm X-Received: by 2002:a17:907:9483:: with SMTP id dm3mr2647610ejc.120.1613131029182; Fri, 12 Feb 2021 03:57:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613131029; cv=none; d=google.com; s=arc-20160816; b=KPLx19Bad38gohbLWxjmK+BBqWdkgKk2rruyImx16wcrxggcYDCsdrUoov/psdfDuH m/BzLBCUlP2d7CY97ijHtq+lC9c5wVpN/nQXtBjVlIW0zlYj3X+gyheRpK0uXHy+5m5F YUBXp9J9i2iqL7yrAb+G11EkTkQwRPHvXi9A6hM11luzK7liS5Hxo2Dh2UYpTLCAETsK S8+zpy320xQ00WpR6ExDSpI9RrcFRruGXnTdKRrw3JBvDrCBrx3/yK8yuU0WUH9wyt1x NLBGnqWztZsjBywFwYC4WxC9Jj/dSyv+/L5FYswmVChnWh20W24WvfGxuKUp9pW3Slxs byxQ== 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=h8qMwn98G/5v8I2f1VW6vf8icgN8R+ZF6/sA6W+v7PE=; b=mfrvDjkXSabGkBzbPWBxh+OSJVUFsuXeoe6TXy2AzG/KmELkteI/JTUCeYQ8fMz0E3 JV+rfD9UTtNjhos6wwJt5MVtIuf2qo91Ghomr2nkwRz/W1OG58xvQes6JXuBvUXttL8d uSaDNVnkClrS6ygjk18DQxndTcr5TS0iMG0AwA3sE8EO5k0nogA6JbcC+Bcf3x4p+/i0 Tg7xAiqfezqLB7ZQFNh3RamEmU8FDTu8kMc6S00nVpTbP4WmTps4NK4YcdB6N9HIh8iA T88FtasRTHUXB6OOgYpUb7v52si/pjM0DF8QU/oYXV7TV+jNOG0HT02R8mJwUj8X1PUZ IvVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YSjvTPsK; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c4si6017130edy.405.2021.02.12.03.57.08; Fri, 12 Feb 2021 03:57:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@kernel.org header.s=k20201202 header.b=YSjvTPsK; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230360AbhBLL47 (ORCPT + 16 others); Fri, 12 Feb 2021 06:56:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:47798 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230515AbhBLL4b (ORCPT ); Fri, 12 Feb 2021 06:56:31 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id F051864E89; Fri, 12 Feb 2021 11:55:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613130945; bh=+ksclk1VuPRdokZ1JA/IoRHQrZPGa+MYaPpavLQzyR0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YSjvTPsKwrvqD/5Txof71gk3+AjkpfGrmAKWy4bk4ZPbG9Vp4eh3A7BvDbIAo/tAB CIpsoLGaf9bpUbf9+Wk+dk8ns3zLv6L0D9bNL+RCbi5Dc+aMgq3SslRvsGsk9JZfu6 3T+vnkPbC7a7yehId+eCPryI5lJ/j4nDSa12U4x8DIoTzGy6qN5vaC7u85UeSo5/ET w4syXS3BjycRoHbTltTYLMYQDl1szrNW9pAOCyz40bQWum7L5wjQPLt72V5IVrJS5j gfUPU2bv1obJmGS2zdxSaeH3weQtNYCWspOFUk2RWmZKyT+hlC/nonm1ntfD4/ugf4 Kh0OZgwGtCLGg== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH 2/7] arm64: dts: qcom: sm8350: Add rpmhpd node Date: Fri, 12 Feb 2021 17:25:27 +0530 Message-Id: <20210212115532.1339942-3-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210212115532.1339942-1-vkoul@kernel.org> References: <20210212115532.1339942-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This adds RPMH power domain found in SM8350 SoC Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index b53744618102..0bf5cec3a2aa 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -591,6 +591,55 @@ rpmhcc: clock-controller { clocks = <&xo_board>; }; + rpmhpd: power-controller { + compatible = "qcom,sm8350-rpmhpd"; + #power-domain-cells = <1>; + operating-points-v2 = <&rpmhpd_opp_table>; + + rpmhpd_opp_table: opp-table { + compatible = "operating-points-v2"; + + rpmhpd_opp_ret: opp1 { + opp-level = ; + }; + + rpmhpd_opp_min_svs: opp2 { + opp-level = ; + }; + + rpmhpd_opp_low_svs: opp3 { + opp-level = ; + }; + + rpmhpd_opp_svs: opp4 { + opp-level = ; + }; + + rpmhpd_opp_svs_l1: opp5 { + opp-level = ; + }; + + rpmhpd_opp_nom: opp6 { + opp-level = ; + }; + + rpmhpd_opp_nom_l1: opp7 { + opp-level = ; + }; + + rpmhpd_opp_nom_l2: opp8 { + opp-level = ; + }; + + rpmhpd_opp_turbo: opp9 { + opp-level = ; + }; + + rpmhpd_opp_turbo_l1: opp10 { + opp-level = ; + }; + }; + }; }; ufs_mem_hc: ufshc@1d84000 { From patchwork Fri Feb 12 11:55:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 381801 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2868145jah; Fri, 12 Feb 2021 03:57:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJydtOaZuU0Np3YVxhYbgd8wWlVZ2xkFRoZPguE8bID5VcEaWU4/kMzO/oCBtIcQWcmFhILM X-Received: by 2002:a17:906:2353:: with SMTP id m19mr2687229eja.13.1613131027450; Fri, 12 Feb 2021 03:57:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613131027; cv=none; d=google.com; s=arc-20160816; b=Hw8FBoagf8qb7YbHF16WdqE8u7ovLmUHxKXAgNI3SSiQbRlL8A6vNtTxxKR1HubTv4 19Fkff2KNhW2LBZ5B43LjzEz4vn5KOWeFhZhm5MJwsytB43jt1IFexADQUbq3vKsSLtr K7eiTV7cSe7VBc5j98OLRKNn2vtO4O4fRoOzpPqu3L5e8wLyfnsybhsZhp0kLjF3aMzU ae8pIgzPT8gezAFWj6qSXz0jSDSG6xafbnOcfz0sxZ1ZIbVN66McjzfcKwJ90wUDVdOR e/We5N/R6SZSqgYT0rF0b4mDvxaPbx1YCbEnXlPyXYBVkOSsyuEKXeFvRB6xZwu+gJ+T irhw== 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=qA/QRohfaUQSRbPhcmusAkk7lvBLqU4yWphH9kvDQWA=; b=ZokQWtTvtKzQPbdGTpxItYPWetE2Tv9jHWKp8v+IH8a0OhXs3weDKckYLGTaGy0csM DwOUdh55qQkQqzs3nxgINxeLJoN9DF67Pr5/hQodKyQ7wI0ZHlxdxlvudmHLPC3yHd6t HxhkflpnvhCfcVdTqpMSjdev/UP5ItQbj2auf+plDTgngRYEziv58vU+e2EQuDDcNSGn EEGp9t3LbOXKH4YS1P1aJCFNyPNlL7Q69nQoiCtp8g0hgHj0RXZKBwivpv1jmwq/pGK5 xypPFusTRl5RF+fV1WM2NmpUaBxdkjqb5/K4r0jgCvQ2RSXeawrvk8UZyZ2QlOW5rQ9v mLEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gMfPzeOE; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c4si6017130edy.405.2021.02.12.03.57.07; Fri, 12 Feb 2021 03:57:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@kernel.org header.s=k20201202 header.b=gMfPzeOE; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230301AbhBLL44 (ORCPT + 16 others); Fri, 12 Feb 2021 06:56:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:47812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230393AbhBLL4b (ORCPT ); Fri, 12 Feb 2021 06:56:31 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9F0F864E85; Fri, 12 Feb 2021 11:55:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613130947; bh=KxTKgsrMvYQ0Phr6A2o33KDZz4oR9NMMnjDgVXyBQ6g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gMfPzeOEG5DgdCZICywyQqq5ISG3YINWFTk9v4pQWulVwTFYNSpfiLx8iTiZ38z+r 2fNIXOMaCT386GrAIlu1Rm/0OvujM996vByj0gFpx1zWrSIPegLvwVkC/xgRCJp5YR S+CQX2xPiqq0jGXVNjbNPzVpTlTgY9yj9W/q75HbB1byK2VPrd+TaKCycir72L/Xur jy/54Ep7sZDROCwfOr5kDblQiGd+htLSL9hVoxjFyG6/WvEbzUAs4nfhNpGjpGdbfD VGZFkNh1WWNOywdqExLkzVRmG8bED3ioHmWOdaYxeyBfkr7Znx6U7KzrG/BX6EUclB cJAWrFz+7tJ3g== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH 3/7] arm64: dts: qcom: sm8350: Add rmtfs node Date: Fri, 12 Feb 2021 17:25:28 +0530 Message-Id: <20210212115532.1339942-4-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210212115532.1339942-1-vkoul@kernel.org> References: <20210212115532.1339942-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the rmtfs as a reserved memory node. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 0bf5cec3a2aa..faa0d0a716e6 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -257,6 +257,16 @@ pil_modem_mem: memory@8b800000 { no-map; }; + rmtfs_mem: memory@9b800000 { + compatible = "qcom,rmtfs-mem"; + reg = <0x0 0x9b800000 0x0 0x280000>; + no-map; + + qcom,client-id = <1>; + qcom,vmid = <15>; + }; + + hyp_reserved_mem: memory@d0000000 { reg = <0x0 0xd0000000 0x0 0x800000>; no-map; From patchwork Fri Feb 12 11:55:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 381804 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2869708jah; Fri, 12 Feb 2021 04:00:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJz261epnmsQR0ky3XBAp7DnYTU9Y7RG9uF7PwAyz+CQrptKR+uzZtw5gy077XPOIw14i0rr X-Received: by 2002:a17:907:2705:: with SMTP id w5mr2721431ejk.136.1613131212292; Fri, 12 Feb 2021 04:00:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613131212; cv=none; d=google.com; s=arc-20160816; b=jzs3tWM3rGhUVVCdEEUgLlweZxh8k5MP18qS/bSoCiGxAOmwRwbLN+DUcqeeQoDlsG /iZxe4b2a1waYJByk5g31xlevDqOmrmXKwXoV93K2TTVAFTn9cjB7yEuKUh9MK98tnQR 9bwd3ZBWhlshp1g4lGBn59dz1DNfffs0qcPGtUM8qEewrB4CgrAa/X5SfUJwR2i6kxle 6M4329QI2jw2RwHAN15JZJXn1R8tWx9c6tD8oTjFPY9tbV5VzgTGJ2Y0nRlKGjmtm8Iy NOBz5NAU+nVGS1FaHI2j86lQouUq/pcX4v5LqAJTXEmKDgLesFG2vtsvZzInmMxRnNf0 KLkQ== 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=t/3DxtZBi3WOZmyNClluvvECQyVfNYYwJkeMD/xJPb8=; b=oBGsJv5lxDF1LTgkbND945SL+T8vMiMou6syFjV4XxBCgUwLo+RxW4B0Hi7WdKOU5g Y+DU9QxzWhMZwSdwdMbaYpD4ikkQWG97nPH9owVJjWkBUZc62qDr93oywgxWUdy/yW+L mOQunckH6ClSP4wsAeh36XKsBUALGzDR8wauf1j+1VhgQTtfFYdJzygwPqvxskyz/hKr Y8+wThSHHEikZF5+OoIYvfCqIIv6lN8uzdAl8BYtoyYECYMe8ReIxsdOcl1D2hJKGQny Oy0MCpBvq/soWebSmlGhNfUXqceCpoAfiwSEafS1eBD3bwbqjTOYHVMcQ6KQMIcGwb8q jEig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HZne2W+j; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz22si5927835ejc.658.2021.02.12.04.00.12; Fri, 12 Feb 2021 04:00:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@kernel.org header.s=k20201202 header.b=HZne2W+j; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231254AbhBLL6y (ORCPT + 16 others); Fri, 12 Feb 2021 06:58:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:48064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbhBLL5j (ORCPT ); Fri, 12 Feb 2021 06:57:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7D9DE64E8C; Fri, 12 Feb 2021 11:55:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613130950; bh=hbNe8n/nOJZWhdmBB+ff/tqK4Qphz4Ib3NZgc4F601A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HZne2W+jDxQvGFKa4u6ELvd9XvUkxbcg4ptThzNGIrBTTb3zagJoYu4n/y+PWQHxM KfZ/YDKLEXYPLxj1Wg2FmY7GM13OTtN+vCRlSYdj8Ms70cUd9PnN5vvtYxbEY1Np8W xiqFb61yyb28MDQ4tWt7KrLrl0V3pM/BKm4euNNbvN4nac71h5WPeXLniYqzrWDS5i +WjynE+O1r0oaaevQELXpkAJHftcHtoJjPTjMHMRyGHY8RIUYzIWXWS1zfm1iqCQXl /cdjkCGUbqOfEIaTJivdULrm8I/V76h1QwZtbZQ1wGwzbRzTxzubyPzP0q36QTQ90l fTrJvEoL8jEaQ== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH 4/7] arm64: dts: qcom: sm8350: Add SMP2P nodes Date: Fri, 12 Feb 2021 17:25:29 +0530 Message-Id: <20210212115532.1339942-5-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210212115532.1339942-1-vkoul@kernel.org> References: <20210212115532.1339942-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SMP2P is used for interrupting and being interrupted about remoteproc state changes related to the audio, compute, modem and sensor subsystems. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 96 ++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index faa0d0a716e6..1ea72f30ea5a 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -304,6 +304,102 @@ smem: qcom,smem { hwlocks = <&tcsr_mutex 3>; }; + smp2p-adsp { + compatible = "qcom,smp2p"; + qcom,smem = <443>, <429>; + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_SMP2P + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_SMP2P>; + + qcom,local-pid = <0>; + qcom,remote-pid = <2>; + + smp2p_adsp_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_adsp_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + smp2p-cdsp { + compatible = "qcom,smp2p"; + qcom,smem = <94>, <432>; + interrupts-extended = <&ipcc IPCC_CLIENT_CDSP + IPCC_MPROC_SIGNAL_SMP2P + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_CDSP + IPCC_MPROC_SIGNAL_SMP2P>; + + qcom,local-pid = <0>; + qcom,remote-pid = <5>; + + smp2p_cdsp_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_cdsp_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + smp2p-modem { + compatible = "qcom,smp2p"; + qcom,smem = <435>, <428>; + interrupts-extended = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_SMP2P + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_SMP2P>; + + qcom,local-pid = <0>; + qcom,remote-pid = <1>; + + smp2p_modem_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_modem_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + smp2p-slpi { + compatible = "qcom,smp2p"; + qcom,smem = <481>, <430>; + interrupts-extended = <&ipcc IPCC_CLIENT_SLPI + IPCC_MPROC_SIGNAL_SMP2P + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_SLPI + IPCC_MPROC_SIGNAL_SMP2P>; + + qcom,local-pid = <0>; + qcom,remote-pid = <3>; + + smp2p_slpi_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_slpi_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + soc: soc@0 { #address-cells = <2>; #size-cells = <2>; From patchwork Fri Feb 12 11:55:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 381805 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2869718jah; Fri, 12 Feb 2021 04:00:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUuCrDjj50xaM9h+bOT/X350NJo3kBXshaaPQAE2Ra37zenduDxPKN1NzhR7RNrkp5zUKQ X-Received: by 2002:a17:906:17d5:: with SMTP id u21mr2669650eje.541.1613131212791; Fri, 12 Feb 2021 04:00:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613131212; cv=none; d=google.com; s=arc-20160816; b=bK3b6vX2aiZb3CA0w1FUGGOinognt7igwD3jFxObEehUehV8i8JImJbnCWgTnGrMGD FGrGNrnFU0E2gQl4ZHNkHOaLrTL0v1nOgbqRobMoNAVxskZw5FHuwOJiojTX7wEQ4vkR 6l5D6ScttY5vl9RPCWxLN3Eo1zZEt4hqjwJhrYQ4iGOZdmsa/q47dORO4HM2wlo+9Lg/ GIvb4V2HyYgjxzjBddePRQcVGhqZ6D5xHqer1V/l+o2LcRRrrwKIVsa2YgP+msSzmw/q pceEq41UX87Tuvskhz2lSAsql7jaVA9FOawEgCxApBF0rLIQkhnXUpA7rUHQ44RGkzbK kydA== 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=iTjMg/D6ZC7iuVF88yoM56/OGr4inYvSPPMfmK+mWOg=; b=0eEhkGBKqyZ90kY8GYP2ok5fNNnoDUd0B31ndsSIRaQCCwNhTZheiC9VoR/rf4dNoE UFzYqo05TYMRLbbZrDjbTkq0Lt94D5uZhtfJRBzm9QQWu01LSH5AAwQca8pJz43dflaL Du1xwWh85F9S8jVPvNgTicAguLBFqVAAOEPCQmBENoGaLHggXlswtpKKi9llKwiJB/sL AiYxG6wIdJG5xujRQBD4HWIhcW0yLudrM61q5/potrXBEfnkVoZFzvSb7l42jihBV0om rG2cVH2f06dZj/gaW+bO6PpRV0El07bMbbu+q1SRKzuJdcAYnyo0ZIJxZEVVCd3xn5Wt n94Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HwnTirQc; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz22si5927835ejc.658.2021.02.12.04.00.12; Fri, 12 Feb 2021 04:00:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@kernel.org header.s=k20201202 header.b=HwnTirQc; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231258AbhBLL65 (ORCPT + 16 others); Fri, 12 Feb 2021 06:58:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:48066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230334AbhBLL5j (ORCPT ); Fri, 12 Feb 2021 06:57:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9464164E8E; Fri, 12 Feb 2021 11:55:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613130953; bh=ewxZhv3U7pa8r7MtiCJXlh08z9muV7qnsB1Cyv07P+4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HwnTirQcV7KDoEfm0uQYDjkKH4DHKU2Yu3XEhq15IITM/FTs46cLDajlqYcynBfRQ lJUGHwzQ9j7viGFy1xSnqA7x2NevItGR6NREzRNuZqconJj9vmJ3VKUAZLrRdRPIxZ XOXeKlJjT3WSPxLqU+s/vuLPGhnRNdYNTRy1ScjypInvgKgHt3ak+s49TgyhX8sq+L RTx2P+TfDmCTtXomay1daCUdQcWN74eh/xrYmCz4oh9rPuwmaOl9SnqDG5A8T1GZPW LPOaa2xVtAZcKjsa3YCZaGQ4mwm7aMTsA2ACxKvgcMuXq99xROxv/eCpjnfg2lmqss pTqNcrH4xe/CA== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH 5/7] arm64: dts: qcom: sm8350: Add remoteprocs Date: Fri, 12 Feb 2021 17:25:30 +0530 Message-Id: <20210212115532.1339942-6-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210212115532.1339942-1-vkoul@kernel.org> References: <20210212115532.1339942-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add remoteproc nodes for the audio, compute and sensor cores, define glink for each one. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 158 +++++++++++++++++++++++++++ 1 file changed, 158 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 1ea72f30ea5a..6e366653eeab 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -562,6 +562,46 @@ tcsr_mutex: hwlock@1f40000 { #hwlock-cells = <1>; }; + mpss: remoteproc@4080000 { + compatible = "qcom,sm8350-mpss-pas"; + reg = <0x0 0x04080000 0x0 0x4040>; + + interrupts-extended = <&intc GIC_SPI 264 IRQ_TYPE_LEVEL_HIGH>, + <&smp2p_modem_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 3 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", + "stop-ack", "shutdown-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + power-domains = <&aoss_qmp AOSS_QMP_LS_MODEM>, + <&rpmhpd SM8350_CX>, + <&rpmhpd SM8350_MSS>; + power-domain-names = "load_state", "cx", "mss"; + + memory-region = <&pil_modem_mem>; + + qcom,smem-states = <&smp2p_modem_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + interrupts = ; + label = "modem"; + qcom,remote-pid = <1>; + }; + }; + pdc: interrupt-controller@b220000 { compatible = "qcom,sm8350-pdc", "qcom,pdc"; reg = <0 0x0b220000 0 0x30000>, <0 0x17c000f0 0 0x60>; @@ -824,6 +864,85 @@ ufs_mem_phy_lanes: lanes@1d87400 { }; }; + slpi: remoteproc@5c00000 { + compatible = "qcom,sm8350-slpi-pas"; + reg = <0 0x05c00000 0 0x4000>; + + interrupts-extended = <&pdc 9 IRQ_TYPE_LEVEL_HIGH>, + <&smp2p_slpi_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_slpi_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_slpi_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_slpi_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + power-domains = <&aoss_qmp AOSS_QMP_LS_SLPI>, + <&rpmhpd SM8350_LCX>, + <&rpmhpd SM8350_LMX>; + power-domain-names = "load_state", "lcx", "lmx"; + + memory-region = <&pil_slpi_mem>; + + qcom,smem-states = <&smp2p_slpi_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_SLPI + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_SLPI + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "slpi"; + qcom,remote-pid = <3>; + + }; + }; + + cdsp: remoteproc@98900000 { + compatible = "qcom,sm8350-cdsp-pas"; + reg = <0 0x098900000 0 0x1400000>; + + interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_LEVEL_HIGH>, + <&smp2p_cdsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_cdsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_cdsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_cdsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + power-domains = <&aoss_qmp AOSS_QMP_LS_CDSP>, + <&rpmhpd SM8350_CX>, + <&rpmhpd SM8350_MXC>; + power-domain-names = "load_state", "cx", "mxc"; + + memory-region = <&pil_cdsp_mem>; + + qcom,smem-states = <&smp2p_cdsp_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_CDSP + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_CDSP + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "cdsp"; + qcom,remote-pid = <5>; + }; + }; + usb_1_hsphy: phy@88e3000 { compatible = "qcom,sm8350-usb-hs-phy", "qcom,usb-snps-hs-7nm-phy"; @@ -1002,6 +1121,45 @@ usb_2_dwc3: dwc3@a800000 { phy-names = "usb2-phy", "usb3-phy"; }; }; + + adsp: remoteproc@17300000 { + compatible = "qcom,sm8350-adsp-pas"; + reg = <0 0x17300000 0 0x100>; + + interrupts-extended = <&pdc 6 IRQ_TYPE_LEVEL_HIGH>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + power-domains = <&aoss_qmp AOSS_QMP_LS_LPASS>, + <&rpmhpd SM8350_LCX>, + <&rpmhpd SM8350_LMX>; + power-domain-names = "load_state", "lcx", "lmx"; + + memory-region = <&pil_adsp_mem>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + }; + }; }; timer { From patchwork Fri Feb 12 11:55:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 381803 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2869690jah; Fri, 12 Feb 2021 04:00:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfzCiLCSmSihfE1vrEJqFn5g8e/jCzvc1nWx+vI+JLgHRFqmliFqJzRP1bc0pkRJZbbrmB X-Received: by 2002:a17:906:1457:: with SMTP id q23mr840085ejc.43.1613131211305; Fri, 12 Feb 2021 04:00:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613131211; cv=none; d=google.com; s=arc-20160816; b=eSnDG4/d2UCYGM0vET0b+U/Bor5CTRhvzDYRfJUQDO5ZBNGnIDGUr7tSscIyY0YDcB CqRdx/pPR2yQNas6onCbqToy252G54miwrW68j3LmT3+aBiMvnGTLgkdEaK1ilhQchmL spBgMDo5CngYYSnnMrdZsWZm/kfoQABcIIa6DISlHEJs5lp0l7whDgE+qZZE0rzG24iI 2XvciYFcLkPTSIZiKN0V6dj15aUNfhZKPiqXA5qkI7KdT9CnzL3oNq1ycMBhI8E5uGUz klt4VmErWvM7cT2bQVO++bBfL0k4vP9x7NQznvfN4koKZYHnlYqH3/8ADHRJg4Faz7Li 85pA== 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=j26fPrsZHuTtAeaD91NOX3c/cV5PdhrNau6VRUD3zRQ=; b=Vl/jECmHqYc8knQEvGsu+wmPWQg8FylFCkZK2zo/YcXU/pIJggEoSL6GbQfDL5FUkL nTf4kOp7PhkCmQfoezKZKDQzCJKoaC8UHY/IAAJ131nrwDlOdsvKG0GJchQkFaosNvtL raCy05i1wDlsMnLjkm+ZSts/UncN8FLVwSqSnYGEOWNcJKea3eAaUx03zQvPhSSvmiPU qjdeMxMVS4NA2Adzx7IeEl9F5HFheo7rp6V5iyZRaqGWjEQRlS/xRIsC7KxJS96JYccb m7vBX2J5wj/qLCf186A3JCP4Pn1UWDjo+N2gpFaSL+WMsJckgTOgg2WZEZYaZcvjtIN7 0s2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Hza/tt5t"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz22si5927835ejc.658.2021.02.12.04.00.09; Fri, 12 Feb 2021 04:00:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@kernel.org header.s=k20201202 header.b="Hza/tt5t"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230376AbhBLL6t (ORCPT + 16 others); Fri, 12 Feb 2021 06:58:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:48106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230489AbhBLL5j (ORCPT ); Fri, 12 Feb 2021 06:57:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A08C564E8D; Fri, 12 Feb 2021 11:55:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613130956; bh=BZbq1M5bjr9QYOvOIsPom3qEPjAu2wT+b3Bsb7DCFGI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hza/tt5t/m79EaoZbAKdPu4uMZ2KyhfzD4+5aQfX+UFDlPkWpja6KCXvO9xNgiPAj fDaH1fX667jJYYjqEBsreF3XRv68+DjqbKECCShQqZPNGaHJoOzyb/R6tDZFQthyJZ iku52+8kRcKinip2mYyiNueJiSL+tTF8+ugLgOWKTvya+VAn4CqeCDD3vt4/hNC9b2 CZPpuq5UqMYBW+4/E7+QOHpEKRLmCTYPCqlaEYSmvDdtx+0wSUXYlpuVWVy0v9w6Ji fFBRsMV525U68muSHdSc+nWgMyRF/O+bRu9IuwaR+vwR2xwF0iBslBuI2IxIvnnLje rNksGULoNZVrw== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH 6/7] arm64: dts: qcom: sm8350-mtp: Enable remoteprocs Date: Fri, 12 Feb 2021 17:25:31 +0530 Message-Id: <20210212115532.1339942-7-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210212115532.1339942-1-vkoul@kernel.org> References: <20210212115532.1339942-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This enabled the four remoteprocs found in SM8350, audio, compute, modem and sensor for MTP platform and adds firmware for them. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350-mtp.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350-mtp.dts b/arch/arm64/boot/dts/qcom/sm8350-mtp.dts index e544fe6b421f..98a517edd442 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-mtp.dts @@ -32,6 +32,11 @@ vph_pwr: vph-pwr-regulator { }; }; +&adsp { + status = "okay"; + firmware-name = "qcom/sm8350/adsp.mbn"; +}; + &apps_rsc { pm8350-rpmh-regulators { compatible = "qcom,pm8350-rpmh-regulators"; @@ -265,10 +270,25 @@ vreg_l13c_3p0: ldo13 { }; }; +&cdsp { + status = "okay"; + firmware-name = "qcom/sm8350/cdsp.mbn"; +}; + +&mpss { + status = "okay"; + firmware-name = "qcom/sm8350/modem.mbn"; +}; + &qupv3_id_1 { status = "okay"; }; +&slpi { + status = "okay"; + firmware-name = "qcom/sm8350/slpi.mbn"; +}; + &tlmm { gpio-reserved-ranges = <52 8>; }; From patchwork Fri Feb 12 11:55:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 381806 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2869727jah; Fri, 12 Feb 2021 04:00:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJx22Jf/9uYnEOiroiIEEuh1vGJBscY9NZEo2O+y9WEry/FucB1hD8pc05+ST4fxQytkdTCU X-Received: by 2002:a05:6402:786:: with SMTP id d6mr2967999edy.270.1613131213406; Fri, 12 Feb 2021 04:00:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613131213; cv=none; d=google.com; s=arc-20160816; b=JotwxyRmzvkV+Y5RE7L9MbD6Yg+SxE/AyRrBvb8nmCtu1ypzstctJtuHdS0qJsXhug 809nEKaUb69C6Xa6mDjKE6ZkK5Wf4RnEY4IPCmlqI4PiuO+SvXjC9qNBTtJ0Sg7KG+Kp mJuMzPCH7PfRQ3QP220HDzhSsngXTLMudqCfKxweDfQDXBp8jo7Gv3KWMceu2GnbOjE0 aa4cWZpOvstejIQWVQxizFT2c6+FOXzCTS5H99IWBlajyk8DCoEs4Vh7n6kmpzBoXSkK 69KDbOEPsxX30bWIB+R0QBUdJm9CTvS/UVxUqGpouF5ocNlcNu/E1sn9+JUa7zwldaw6 j0rg== 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=J7hvY/Xu38KTQFEOvB6eH5kyLzcKtNDdec1jnlPY+94=; b=zsQvYKGBHm3F1bSlsSFtpCQpcvO/Qg66ZDOxPZE1Tw6Va6ZJNnJzgDEeGRNB4s2Ysb 9hLDR8gdV9EWn5i6xXsXk69nwjGdXtOjmy98RwTFpw1JYs19WRWpYaCKcxV0jeD0HimD KrayREwmVrZFB2CWfiRvrdkbiaOrv+3SxpFdSTWD0qcxX18rkS4ZFBfjT0iahlgxJs/j gnYu9fkyyaqXAY+yIcirRJ/yZ/B+HvtfTN90zIlhUFYSTy/G3lUdT8XVfkRaz+CA7nst dLYAi94xpN26Mgf1JNEHMvAxT6OyGUjaixvzhcxEXqaM1UZYGsPFTtsFQkeoQq5XiFOB ZJBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=edACfUbm; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz22si5927835ejc.658.2021.02.12.04.00.13; Fri, 12 Feb 2021 04:00:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@kernel.org header.s=k20201202 header.b=edACfUbm; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230204AbhBLL7D (ORCPT + 16 others); Fri, 12 Feb 2021 06:59:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:48108 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230353AbhBLL5o (ORCPT ); Fri, 12 Feb 2021 06:57:44 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8C68764E92; Fri, 12 Feb 2021 11:55:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613130959; bh=1zM+YAaUNx/tKQm4lACoXEGNavAL6zvyw26UsWjD0F0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=edACfUbmQyhI0AueB7TdhmlRYYLqqMUzRESc/PWs43BxSBJbsRfb6Yc9VJulYcZqF swaRicg8XNqSwt5W+SWwS63WmSCsKZvD1ZzVMMNPqFotPJSQI9QXSjdb6ZuxeVNujl UbIIAH+c+lmYJ9Ov74gxl76xiPBLcfecClgJBKwfIQJtxM266LrAgQqY84wcjeKfJk 3pthorP0li0fYH6BE8zOFylmtP8+ViCp7AcJ5621Ggpg8Fx5fTW5t2V86ZHGctz6ug YLrAet6X1GNmB2S/s/u3/tlDwNZsnBs1yI1kQ9POWWgzq68OVk2XLnKiD+h+YU4r4X p/kheuOA/IslQ== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH 7/7] arm64: dts: qcom: sm8350: Use enums for GCC Date: Fri, 12 Feb 2021 17:25:32 +0530 Message-Id: <20210212115532.1339942-8-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210212115532.1339942-1-vkoul@kernel.org> References: <20210212115532.1339942-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Now that we have GCC define, use the enums instead of numbers in the DTS Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 91 ++++++++++++++-------------- 1 file changed, 46 insertions(+), 45 deletions(-) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 6e366653eeab..d19ed7b5aae0 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -4,6 +4,7 @@ */ #include +#include #include #include #include @@ -430,8 +431,8 @@ qupv3_id_1: geniqup@9c0000 { compatible = "qcom,geni-se-qup"; reg = <0x0 0x009c0000 0x0 0x6000>; clock-names = "m-ahb", "s-ahb"; - clocks = <&gcc 121>, - <&gcc 122>; + clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, + <&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; #address-cells = <2>; #size-cells = <2>; ranges; @@ -441,7 +442,7 @@ uart2: serial@98c000 { compatible = "qcom,geni-debug-uart"; reg = <0 0x0098c000 0 0x4000>; clock-names = "se"; - clocks = <&gcc 83>; + clocks = <&gcc GCC_QUPV3_WRAP0_S3_CLK>; pinctrl-names = "default"; pinctrl-0 = <&qup_uart3_default_state>; interrupts = ; @@ -797,10 +798,10 @@ ufs_mem_hc: ufshc@1d84000 { phy-names = "ufsphy"; lanes-per-direction = <2>; #reset-cells = <1>; - resets = <&gcc 25>; + resets = <&gcc GCC_UFS_PHY_BCR>; reset-names = "rst"; - power-domains = <&gcc 3>; + power-domains = <&gcc UFS_PHY_GDSC>; iommus = <&apps_smmu 0xe0 0x0>; @@ -816,14 +817,14 @@ ufs_mem_hc: ufshc@1d84000 { "rx_lane1_sync_clk"; clocks = <&rpmhcc RPMH_CXO_CLK>, - <&gcc 155>, - <&gcc 16>, - <&gcc 154>, - <&gcc 170>, + <&gcc GCC_UFS_PHY_AXI_CLK>, + <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, + <&gcc GCC_UFS_PHY_AHB_CLK>, + <&gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>, <&rpmhcc RPMH_CXO_CLK>, - <&gcc 168>, - <&gcc 164>, - <&gcc 166>; + <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; freq-table-hz = <75000000 300000000>, <75000000 300000000>, @@ -847,7 +848,7 @@ ufs_mem_phy: phy@1d87000 { clock-names = "ref", "ref_aux"; clocks = <&rpmhcc RPMH_CXO_CLK>, - <&gcc 161>; + <&gcc GCC_UFS_PHY_PHY_AUX_CLK>; resets = <&ufs_mem_hc 0>; reset-names = "ufsphy"; @@ -953,7 +954,7 @@ usb_1_hsphy: phy@88e3000 { clocks = <&rpmhcc RPMH_CXO_CLK>; clock-names = "ref"; - resets = <&gcc 20>; + resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; }; usb_2_hsphy: phy@88e4000 { @@ -966,7 +967,7 @@ usb_2_hsphy: phy@88e4000 { clocks = <&rpmhcc RPMH_CXO_CLK>; clock-names = "ref"; - resets = <&gcc 21>; + resets = <&gcc GCC_QUSB2PHY_SEC_BCR>; }; usb_1_qmpphy: phy-wrapper@88e9000 { @@ -980,13 +981,13 @@ usb_1_qmpphy: phy-wrapper@88e9000 { #size-cells = <2>; ranges; - clocks = <&gcc 187>, + clocks = <&gcc GCC_USB3_PRIM_PHY_AUX_CLK>, <&rpmhcc RPMH_CXO_CLK>, - <&gcc 189>; + <&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>; clock-names = "aux", "ref_clk_src", "com_aux"; - resets = <&gcc 28>, - <&gcc 30>; + resets = <&gcc GCC_USB3_DP_PHY_PRIM_BCR>, + <&gcc GCC_USB3_PHY_PRIM_BCR>; reset-names = "phy", "common"; usb_1_ssphy: phy@88e9200 { @@ -998,7 +999,7 @@ usb_1_ssphy: phy@88e9200 { <0 0x088e9a00 0 0x100>; #phy-cells = <0>; #clock-cells = <1>; - clocks = <&gcc 190>; + clocks = <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>; clock-names = "pipe0"; clock-output-names = "usb3_phy_pipe_clk_src"; }; @@ -1013,14 +1014,14 @@ usb_2_qmpphy: phy-wrapper@88eb000 { #size-cells = <2>; ranges; - clocks = <&gcc 193>, + clocks = <&gcc GCC_USB3_SEC_PHY_AUX_CLK>, <&rpmhcc RPMH_CXO_CLK>, - <&gcc 192>, - <&gcc 195>; + <&gcc GCC_USB3_SEC_CLKREF_EN>, + <&gcc GCC_USB3_SEC_PHY_COM_AUX_CLK>; clock-names = "aux", "ref_clk_src", "ref", "com_aux"; - resets = <&gcc 33>, - <&gcc 31>; + resets = <&gcc GCC_USB3PHY_PHY_SEC_BCR>, + <&gcc GCC_USB3_PHY_SEC_BCR>; reset-names = "phy", "common"; usb_2_ssphy: phy@88ebe00 { @@ -1029,7 +1030,7 @@ usb_2_ssphy: phy@88ebe00 { <0 0x088eb200 0 0x1100>; #phy-cells = <0>; #clock-cells = <1>; - clocks = <&gcc 196>; + clocks = <&gcc GCC_USB3_SEC_PHY_PIPE_CLK>; clock-names = "pipe0"; clock-output-names = "usb3_uni_phy_pipe_clk_src"; }; @@ -1043,16 +1044,16 @@ usb_1: usb@a6f8800 { #size-cells = <2>; ranges; - clocks = <&gcc 23>, - <&gcc 173>, - <&gcc 18>, - <&gcc 176>, - <&gcc 179>; + clocks = <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>, + <&gcc GCC_USB30_PRIM_MASTER_CLK>, + <&gcc GCC_AGGRE_USB3_PRIM_AXI_CLK>, + <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>, + <&gcc GCC_USB30_PRIM_SLEEP_CLK>; clock-names = "cfg_noc", "core", "iface", "mock_utmi", "sleep"; - assigned-clocks = <&gcc 176>, - <&gcc 173>; + assigned-clocks = <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>, + <&gcc GCC_USB30_PRIM_MASTER_CLK>; assigned-clock-rates = <19200000>, <200000000>; interrupts-extended = <&intc GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>, @@ -1062,9 +1063,9 @@ usb_1: usb@a6f8800 { interrupt-names = "hs_phy_irq", "dp_hs_phy_irq", "dm_hs_phy_irq", "ss_phy_irq"; - power-domains = <&gcc 4>; + power-domains = <&gcc USB30_PRIM_GDSC>; - resets = <&gcc 26>; + resets = <&gcc GCC_USB30_PRIM_BCR>; usb_1_dwc3: dwc3@a600000 { compatible = "snps,dwc3"; @@ -1086,17 +1087,17 @@ usb_2: usb@a8f8800 { #size-cells = <2>; ranges; - clocks = <&gcc 24>, - <&gcc 180>, - <&gcc 19>, - <&gcc 183>, - <&gcc 186>, - <&gcc 192>; + clocks = <&gcc GCC_CFG_NOC_USB3_SEC_AXI_CLK>, + <&gcc GCC_USB30_SEC_MASTER_CLK>, + <&gcc GCC_AGGRE_USB3_SEC_AXI_CLK>, + <&gcc GCC_USB30_SEC_MOCK_UTMI_CLK>, + <&gcc GCC_USB30_SEC_SLEEP_CLK>, + <&gcc GCC_USB3_SEC_CLKREF_EN>; clock-names = "cfg_noc", "core", "iface", "mock_utmi", "sleep", "xo"; - assigned-clocks = <&gcc 183>, - <&gcc 180>; + assigned-clocks = <&gcc GCC_USB30_SEC_MOCK_UTMI_CLK>, + <&gcc GCC_USB30_SEC_MASTER_CLK>; assigned-clock-rates = <19200000>, <200000000>; interrupts-extended = <&intc GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>, @@ -1106,9 +1107,9 @@ usb_2: usb@a8f8800 { interrupt-names = "hs_phy_irq", "dp_hs_phy_irq", "dm_hs_phy_irq", "ss_phy_irq"; - power-domains = <&gcc 5>; + power-domains = <&gcc USB30_SEC_GDSC>; - resets = <&gcc 27>; + resets = <&gcc GCC_USB30_SEC_BCR>; usb_2_dwc3: dwc3@a800000 { compatible = "snps,dwc3";