From patchwork Tue Sep 5 05:47:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 720463 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 24180CA0FFA for ; Tue, 5 Sep 2023 16:04:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233567AbjIEQEn (ORCPT ); Tue, 5 Sep 2023 12:04:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352425AbjIEFsT (ORCPT ); Tue, 5 Sep 2023 01:48:19 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBC781AD; Mon, 4 Sep 2023 22:48:12 -0700 (PDT) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id A8BD040901; Tue, 5 Sep 2023 10:48:04 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1693892885; bh=xzBsIM1fOfN3WiR0egrK5klaE/EyIqqTyt08MjK+7GU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=QZDDt0CfQ8beU87Vew+Rncs34gUPN/6Vl/D9/krJ+4SdPlkum8aBB0DAwBtoHFh20 l6Ek+TMJtfZTxGMUNyYLsgpfByimB7PQsVI+c99IQtsua6K3bPHe+tBAeH1B0B7sq9 SSCkmxsv4AGVGKxxVQwRiY8V0AyJ1BWtFYkV8K8nRsNx83txS+5aSz2pR655b4sCDH UoV9CmhP17e5J0uG7gwlWGLAOYl2pUwYSKl6Z7Io/Hgond9v/iZTDc1dCxjJqsQXdT pCXLZJmpT+zn65WW8CNG4GGWcRIo+lmfnSoJshjqJ2bnGjYb4g8q/1R6/2Cx0+idYL 5wbUAebtPfM5w== From: Nikita Travkin Date: Tue, 05 Sep 2023 10:47:20 +0500 Subject: [PATCH 1/4] dt-bindings: remoteproc: qcom: sc7180-pas: Add ADSP compatible MIME-Version: 1.0 Message-Id: <20230905-sc7180-adsp-rproc-v1-1-dfea7699da7b@trvn.ru> References: <20230905-sc7180-adsp-rproc-v1-0-dfea7699da7b@trvn.ru> In-Reply-To: <20230905-sc7180-adsp-rproc-v1-0-dfea7699da7b@trvn.ru> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , cros-qcom-dts-watchers@chromium.org Cc: David Wronek , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin X-Developer-Signature: v=1; a=openpgp-sha256; l=1140; i=nikita@trvn.ru; h=from:subject:message-id; bh=xzBsIM1fOfN3WiR0egrK5klaE/EyIqqTyt08MjK+7GU=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBk9sESW73sc+qIsY8R2iF/ppissAEcRLqnSvQbo /FOREoR8ZuJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZPbBEgAKCRBDHOzuKBm/ df75D/wOi1Z/IX0nTp+322VAZRFpSqt2JXG3TaVFbDzIYddUNb2Dz3Mq0rNHRTmsNz+bgBY4tlg 1xv3/27xv50ZLJ38fvU6Nq7mP/ARiPyCmNHX0U2LbF6fjhSkDdT3emNfGkHHgRAptPLzaTslNiS IYG72fZNzjB4f8jcdE4nsxODcpxnYZ4J/FT1PrLJPazNHOkuL0/u99DxybQPkQ2LIBYp/dWzmHT 1eDBfKkbPwxqxIeFuTSqyj/HoEPBzcyjUwvHj0z0EXOJHN+pDJi2eEhrVOlImtMQqUFp2xU2v2C 2X85PnQVlzQtuAzvrh350IDGgtlp+Q01K3ahh/UH0m+PitjTIAUCk4flqOJOC35iSxwZM9nNHGX 5xaPKg3leybAGoIlnQd8hfs1/6b4jSzPgwJrUBS84eAXVNVVHKnhtxIDk/aK6P9KRZoEIZfFqzA P12wZFox7iT8mvEoAB7WmF4Sv2RgfDWbDsMVfTvBXjFa6UEvIBKGBpKx+w4gzqiUbgnnW6TgSs3 B6zAmSbm8f/FFknyhcvQpq3RnoH6cbCb1rEjo+uDf4XH79OaRmSUWUNyDEJBZyPCpOiiWh3B6QL mFUYGQ2jP5bWaFpYOiO4zR58dEN/pBKvsreBfHgd2ekl1vQN/3Q8wXNJhSo4dnyW7kzD7r3XAuP PHtp5yBwT25NcsA== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SC7180 has an ADSP remoteproc. Add it's compatible to the bindings. Signed-off-by: Nikita Travkin --- .../devicetree/bindings/remoteproc/qcom,sc7180-pas.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sc7180-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sc7180-pas.yaml index 689d5d535331..37eeb51b849e 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,sc7180-pas.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sc7180-pas.yaml @@ -16,6 +16,7 @@ description: properties: compatible: enum: + - qcom,sc7180-adsp-pas - qcom,sc7180-mpss-pas - qcom,sc7280-mpss-pas @@ -88,6 +89,17 @@ allOf: maxItems: 2 power-domain-names: maxItems: 2 + - if: + properties: + compatible: + enum: + - qcom,sc7180-adsp-pas + then: + properties: + interrupts: + minItems: 5 + interrupt-names: + minItems: 5 unevaluatedProperties: false From patchwork Tue Sep 5 05:47:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 720458 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 F1C41CA0FE2 for ; Tue, 5 Sep 2023 16:05:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238096AbjIEQFZ (ORCPT ); Tue, 5 Sep 2023 12:05:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352421AbjIEFsT (ORCPT ); Tue, 5 Sep 2023 01:48:19 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA9D3CCB; Mon, 4 Sep 2023 22:48:14 -0700 (PDT) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 813A042438; Tue, 5 Sep 2023 10:48:05 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1693892886; bh=FNIibyarmPCAlhz6Ut7njgzIVJSbI2KFycVZdOK+Y8k=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ZlMQIahqivMg5qgf4HoCWwNlGJ03pf471cQDuEwJx7eg2FFqLsfB+p6Dn9jLI1ohH q7aGcA7ag4Rzpa1fSjoYQSZQqH4jtO2ynnx6vL06jcQVg3VyeoSM61Ekm7KlpE8V3v 8N6olMj+YTBh+Kc3q/NqLD5m57tUuLjKP7MLcTxNl+oRIAVfbCquRTOaKc7sgHzcI5 9OQLvd/3+anY8jPRVFPvFJ3BhdZNfh9PB7aQN4IDPlAWY0QFZZt4Uz8wm9jlKVdwqs vZZaiem5q2TGK4OWeKe1cslsD7i5HTBN4AwfhBQTvOiUfneXkIOZ2ewWHQBnszLo2E GRoO0WQVC3D0g== From: Nikita Travkin Date: Tue, 05 Sep 2023 10:47:21 +0500 Subject: [PATCH 2/4] remoteproc: qcom: pas: Add sc7180 adsp MIME-Version: 1.0 Message-Id: <20230905-sc7180-adsp-rproc-v1-2-dfea7699da7b@trvn.ru> References: <20230905-sc7180-adsp-rproc-v1-0-dfea7699da7b@trvn.ru> In-Reply-To: <20230905-sc7180-adsp-rproc-v1-0-dfea7699da7b@trvn.ru> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , cros-qcom-dts-watchers@chromium.org Cc: David Wronek , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin X-Developer-Signature: v=1; a=openpgp-sha256; l=1130; i=nikita@trvn.ru; h=from:subject:message-id; bh=FNIibyarmPCAlhz6Ut7njgzIVJSbI2KFycVZdOK+Y8k=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBk9sES7EB1wq5B6UO4nxi+pLIbjxoV1BRiWJzeX okiqqJyVpuJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZPbBEgAKCRBDHOzuKBm/ dbCxD/90/GNdCviEIycmofOnR8rYkSftPyXtRHnzgUntdy8H20yUGhHe0q1UmN2flbrbw6ZhV7d k+sj71GUx4CWh8/VjFGLA4bY7e6t6HXocvoRPa6bfeawLfLC1wRQ8965NUN562a7XxhV6yo7ev4 RYU2O7qYMW6RI11DWigOkiowBKNYMa4pT6d0C/zF5fBmBerUp7me3NZRU5OFmS/HLMDX2EO8amD V61jjzE/SHXlsY5AZx7h+PlhPuDH6ZcXBcnzEIP1qR2I4rI0Dxlg5GDZ+uaItPnfq/G+vvQZwmW ju4kFtIVJkW0xN0ghJCybu4PCaSMpmmFaJzJ6NWj6o+a9+dDCNaCHUQfXJwfHsED6F/4eY54zW8 KTN/GqXZMmBV20SfzYaKn4yeH21mb4mDXwTklM7Q2jYTtAsCPszqpM7KD6+BnC2/WDyNAfSapSh dzDt8YZde6XCu4bMx4oHRilaXI2YZqYzChQPhL/Y4CmZFUB7dC+I3aa6c4kVREB+6X09Xs7AQ3z sVNly0RjFQq1HS4+O9TYj+QY6qhk40SW82qsNmu/3VDxvhZunTeid8ss8whTRBruDIjFTMWytGT QMSHWXgPFyl+128+BY85pASUoIEf5h7KxRgeApWVlpa5SCo2+572EGCIUoh8LSDLnX4mEz6ARw8 Mwil35HAz196peg== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org sc7180 has a dedicated ADSP similar to the one found in sm8250. Add it's compatible to the driver reusing the existing config so the devices that use the adsp can probe it. Signed-off-by: Nikita Travkin --- drivers/remoteproc/qcom_q6v5_pas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index b5447dd2dd35..55fafc68200e 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -1161,6 +1161,7 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,qcs404-adsp-pas", .data = &adsp_resource_init }, { .compatible = "qcom,qcs404-cdsp-pas", .data = &cdsp_resource_init }, { .compatible = "qcom,qcs404-wcss-pas", .data = &wcss_resource_init }, + { .compatible = "qcom,sc7180-adsp-pas", .data = &sm8250_adsp_resource}, { .compatible = "qcom,sc7180-mpss-pas", .data = &mpss_resource_init}, { .compatible = "qcom,sc7280-mpss-pas", .data = &mpss_resource_init}, { .compatible = "qcom,sc8180x-adsp-pas", .data = &sm8150_adsp_resource}, From patchwork Tue Sep 5 05:47:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 720174 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 CC254CA0FF3 for ; Tue, 5 Sep 2023 16:05:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238322AbjIEQFu (ORCPT ); Tue, 5 Sep 2023 12:05:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352448AbjIEFsV (ORCPT ); Tue, 5 Sep 2023 01:48:21 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B5D312E; Mon, 4 Sep 2023 22:48:18 -0700 (PDT) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 6338B4243A; Tue, 5 Sep 2023 10:48:08 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1693892889; bh=94WYtO7i7RiviKXkVzwc9KKusQ2/IejlQ7IgqMIIY1A=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Xxobzq4e56Z/axil1YXKVBtmxkgQnPwkEmrYnwH4JP96sEru1rhQ+GT+qo096OK+k 5uc2zPZkW9193QUh/xbQgo2Y3Fzane4PrIt2RulTpWIQ33f6TZgAR/ehXuwdlgli+U l9l9k5caZSoHl6aBJjM0sM4LlFUo8rJw1guiKhzhdq6IyZPbUGyCw5q6BqxwiDM0PI G6JYliotfKeMJ+TC4pDnR+y3ypfH7GZNMIxCk8PFnAmTjVEE3tFeX/211DnR4FYbFk rSUj9o429TiPMOZVxt3Ekh00AyRrcTK1Ozdo97NzbErXQBWLZN0WuemkafUFPW92Jm el3wcGpbMKckw== From: Nikita Travkin Date: Tue, 05 Sep 2023 10:47:22 +0500 Subject: [PATCH 3/4] arm64: dts: qcom: sc7180: Add tertiary mi2s pinctrl MIME-Version: 1.0 Message-Id: <20230905-sc7180-adsp-rproc-v1-3-dfea7699da7b@trvn.ru> References: <20230905-sc7180-adsp-rproc-v1-0-dfea7699da7b@trvn.ru> In-Reply-To: <20230905-sc7180-adsp-rproc-v1-0-dfea7699da7b@trvn.ru> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , cros-qcom-dts-watchers@chromium.org Cc: David Wronek , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin X-Developer-Signature: v=1; a=openpgp-sha256; l=900; i=nikita@trvn.ru; h=from:subject:message-id; bh=94WYtO7i7RiviKXkVzwc9KKusQ2/IejlQ7IgqMIIY1A=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBk9sESU0L+EdBYL1kTsdO/1Nw58Zav86S5JiNIZ sYf2KS7ViuJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZPbBEgAKCRBDHOzuKBm/ dRKWD/4tG5iumQ0FRqT3xRYJEgsOGxa+st3+/TACrblG7ryPFTIWqnOED4TWIpvi0TJJrMjTCRB G8LvRpgheE8jzdoHQ8Ma1b1WWx4NDBQh/Ugw64KbuMZSjju7ZX4sRdKc2kmntTibyy2/RADNdRy +vxPlCbk65DqbmWkmihIM0NGvjidajE55CJDUv2Oq2aquuAQ29n3kW2t3H22rhqb3GSJa0xzmlS UYVWr8i9zuCr0H/KnmxAybAes41nUJTRFvL37ZI49w7hlbeoqwQvD5UuKfmpSRPus2sfMEPCs9C TDHR6y9wH5TfDfE7qIbBIhAYMz+KX2LTCmhSrh5BhIxyN5FVezovQXG5xp0QMNwYpnhFA4A0Hh4 Qtu2AaMrWt15laoELeLr1G25qGEP0i5bw05PLzGmZHcsR7mk5Ro7YvcgbIlQUxF4ZBG134yrxYh eB7PxCP7qyFR8zslOntNYqNnwYch+JZ+VkYjHjrk0eMC1GdM72Dj9ZOCtjU/LCYRnZpEBFDlnb9 iQXej1cyWLIr4H4fdqvMK82NgSkF0yGS2llkxkRskZW5sjfjm8xeBSg8AqEN/bwL0gFPfHh33YO DRgOqHoPZ7b8EU7UL6soVCc0JOkAVLzNAdAC8yRo7WUOngqnaIVCJk32sjHcqXYHrpdxdsyT9p8 za68eIcLj6TMmHQ== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Some devices use tertiary mi2s to connect external audio codec. Add it near the other two i2s pinctrl definitions so the devices don't have to duplicate it. Signed-off-by: Nikita Travkin --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index a79c0f2e1879..9f68b5ff0030 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -2033,6 +2033,11 @@ sec_mi2s_active: sec-mi2s-active-state { function = "mi2s_1"; }; + ter_mi2s_active: ter-mi2s-active-state { + pins = "gpio63", "gpio64", "gpio65", "gpio66"; + function = "mi2s_2"; + }; + pri_mi2s_active: pri-mi2s-active-state { pins = "gpio53", "gpio54", "gpio55", "gpio56"; function = "mi2s_0"; From patchwork Tue Sep 5 05:47:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 720460 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 4ACEBCA0FF3 for ; Tue, 5 Sep 2023 16:05:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231963AbjIEQFQ (ORCPT ); Tue, 5 Sep 2023 12:05:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352453AbjIEFsX (ORCPT ); Tue, 5 Sep 2023 01:48:23 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D29812E; Mon, 4 Sep 2023 22:48:19 -0700 (PDT) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id ECA5742444; Tue, 5 Sep 2023 10:48:11 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1693892892; bh=wAuaJLhjPcRFdx6t9Gz0AhRtHiLNO8hfsMHaHITa5So=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=YVElSKZjLW727lxP8uVtwgKmze3bpUkpnM1SCcAYY+5HZMeDnta7TgXVaha6rKdsJ DrCO4ZqV7rPu3qFpGIH8GJzwd37S7gcoFUOFMTsY9vxs5G+rgEEN2qRpnVfBpksBPe Axtxu1IGY7Tqn9yX/Np7JJADklr6dTwa7/r9nELknwfJ39yzAXddYvtz5IxO0veKpN XlqYRb/1IvEp+5WDJJ3cqH49CLHTOlxdTUNYa+dVboQtj3ZuuzDRUEyMjjZwpRUoEq f1ouxpkYjdJXEYMd8nLGruEReZkX4GmOYnuUW7jt/UmAhZK/Phy1sk/BPvhZoLLNSM iECXRjwIP6lKw== From: Nikita Travkin Date: Tue, 05 Sep 2023 10:47:23 +0500 Subject: [PATCH 4/4] arm64: dts: qcom: sc7180: Add ADSP MIME-Version: 1.0 Message-Id: <20230905-sc7180-adsp-rproc-v1-4-dfea7699da7b@trvn.ru> References: <20230905-sc7180-adsp-rproc-v1-0-dfea7699da7b@trvn.ru> In-Reply-To: <20230905-sc7180-adsp-rproc-v1-0-dfea7699da7b@trvn.ru> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , cros-qcom-dts-watchers@chromium.org Cc: David Wronek , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin X-Developer-Signature: v=1; a=openpgp-sha256; l=4272; i=nikita@trvn.ru; h=from:subject:message-id; bh=wAuaJLhjPcRFdx6t9Gz0AhRtHiLNO8hfsMHaHITa5So=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBk9sETu7ptQNZMsIhrHe2sebPNY5ZWc8nampQd1 MqDNP0vwOqJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZPbBEwAKCRBDHOzuKBm/ dXgKD/sF0PRhjkDK5pa/Bq73qltDf6YNa4veyquiRzUDlIQbD8+mpocQUC1V8mrMk8b7WM99Jea SEB56pTz47IxmZRP2KTb0aPHws8ZWvtU2LiBam1HjUQJ/ZVcpd6qUdgUEURFtxErZsxOXNAyxZU pxYgBTLIPum0mQCCRX+jWYQYlUbj94E0uT5VKSPOpkBNOly5vFQnDbYnHgB8HevtQJcAg9tb48Z zxacix3nXaBtrZxOTy0bTfM0UoGgp31J0E9ObfO1FLTIydUWWEYq6M1qKgaRQ46gnkmnkDqPNwy N7i4XsR5zYmMz6bkiaXbqyefUEn4eGL0Tkr/OLSAwjfUMQMSxNwgQt389ztG/EOLnQC8SmKiaL5 WtgvA269NyM9eSvzpdnA3icXZJlXDZZhoK44uB/tSm94Slr/JiA1MsHQheKYA/0zI06UVIEHNp/ KI82iZEn9EOmIDht3gHpOVQO9E2WK4RQd+lmsdvt4GXEHqAeP03H7MNQJkspoiyavABi4vr5OHD la2Wq3rFmDnm9ZqcYs4U3xSFBh2JriUeXlyzE96Vd2ZVzttFT23n12FOSOUN1jb9cQdcJ/AqgXV lyVKn/OUyvBSwyfKNHAywpIfMc4WsJSlideTBPEugtNR56VUXPLpUWFse0AEyU/IzJZ11xL0Uvv AFwnMQSet4dFbXg== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org sc7180 has an ADSP remoteproc that exclusively controls the audio hardware on devices that use Qualcomm firmware. Add it along with the relevant audio services. Signed-off-by: Nikita Travkin --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 122 +++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index 9f68b5ff0030..30c58186900a 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -20,6 +20,8 @@ #include #include #include +#include +#include #include / { @@ -3781,6 +3783,126 @@ wifi: wifi@18800000 { status = "disabled"; }; + remoteproc_adsp: remoteproc@62400000 { + compatible = "qcom,sc7180-adsp-pas"; + reg = <0 0x62400000 0 0x100>; + + interrupts-extended = <&intc GIC_SPI 162 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", + "fatal", + "ready", + "handover", + "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + power-domains = <&rpmhpd SC7180_LCX>, + <&rpmhpd SC7180_LMX>; + power-domain-names = "lcx", "lmx"; + + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&adsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts = ; + label = "lpass"; + qcom,remote-pid = <2>; + mboxes = <&apss_shared 8>; + + apr { + compatible = "qcom,apr-v2"; + qcom,glink-channels = "apr_audio_svc"; + qcom,apr-domain = ; + #address-cells = <1>; + #size-cells = <0>; + + apr-service@3 { + reg = ; + compatible = "qcom,q6core"; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + }; + + q6afe: apr-service@4 { + compatible = "qcom,q6afe"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + q6afedai: dais { + compatible = "qcom,q6afe-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + }; + + q6afecc: cc { + compatible = "qcom,q6afe-clocks"; + #clock-cells = <2>; + }; + }; + + q6asm: apr-service@7 { + compatible = "qcom,q6asm"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + q6asmdai: dais { + compatible = "qcom,q6asm-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + iommus = <&apps_smmu 0x1001 0x0>; + }; + }; + + q6adm: apr-service@8 { + compatible = "qcom,q6adm"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + q6routing: routing { + compatible = "qcom,q6adm-routing"; + #sound-dai-cells = <0>; + }; + }; + }; + + 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 0x1003 0x0>; + }; + + compute-cb@4 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <4>; + iommus = <&apps_smmu 0x1004 0x0>; + }; + + compute-cb@5 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <5>; + iommus = <&apps_smmu 0x1005 0x0>; + qcom,nsessions = <5>; + }; + }; + }; + }; + lpasscc: clock-controller@62d00000 { compatible = "qcom,sc7180-lpasscorecc"; reg = <0 0x62d00000 0 0x50000>,