From patchwork Wed Sep 18 18:21:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13807084 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 71E55CDD54D for ; Wed, 18 Sep 2024 18:24:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mSJkyW7PtmsR3xBcC4s2dK8tXSEoVtyj6mYraRaugmc=; b=jsg7o7Oiuy0nJDMfhtGU215ZED TFjeRnfL79X3weD8YKK6FEn0+kq9DXCIP1XpTrtVVNj2Rt2xsX91soF2O+1fpXV5nriJtfn14MXkW videIl1tlhE/a8PNvnjt8s5nWiIoNyh6yuVjXgnOUnhO3W9kPEUsIjeDffTbeq9UCon+q77iUCGh2 A4KoIG1gbuXpwx5psD74b5EpRhFO9aqdDjYJ7UmndnNEeYJlRT6A94MnggPxL8so+pmoaSNrp4LdC AWweojGiBRVbKC07QpuHgHlfjl7I1r34IS0Ulx0adHutfzyJqSyEvTa5ok9h8XwQtdmKgCLkNz8sm 07QaZcog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqzLk-00000008o48-1LaX; Wed, 18 Sep 2024 18:24:24 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqzJf-00000008ndZ-3a3x for linux-arm-kernel@lists.infradead.org; Wed, 18 Sep 2024 18:22:17 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-53653ee23adso6479951e87.3 for ; Wed, 18 Sep 2024 11:22:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726683734; x=1727288534; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mSJkyW7PtmsR3xBcC4s2dK8tXSEoVtyj6mYraRaugmc=; b=N7FAPXBuqySDt+NFHRPAigm65LGoEyypCO2SsONpQw7E4bv9+I1ebaX7j73gQ5EtzU F6H5xAsypNmR9Ef6WB7Pn9/QWeqSM8L69iyuqzBqlPvPFZpf9RdYW7Kn7kV6zWc3UNDB 3dIlepF6HvkjKnVLjKkYdjvtz1WM6ed9pt1OUk4AWISTj6ExD01c4tiQuPJEic64ERYt eFsLvV0JfcjD+OofKUmyWyCwcre+A0+qFnzOn3saRbA1dalsEohA14lbrdthREO1RbFv tNXGji+0OFtBMh76Qdyt4F9pHHLNRqONS5TEFgOcCWLVq2oZ1OCGcIQcYGVCKhaF9dQd kiaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726683734; x=1727288534; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mSJkyW7PtmsR3xBcC4s2dK8tXSEoVtyj6mYraRaugmc=; b=j/14de8ih+UpriWhWePnvye3I2VOOEQiDDQsO8edP0w7QzWAivhPhL5LdEv6BcjeiW mRTraW1VmQqQntsLqcdg7EWQbvpKscu35eaVque3KXyJe9xjTta7wNqF8koCutjKblAA jv8lA+77z7WzSI5iebLyDTOSpENe2RZ8hbjk5NwIui4eyL3a0pDqY+/NTwAR6DSlmjEO YeiHHZHLiEuQAbnmYt8eDapWZv0CKVtMdbbWv/dI2/DbxVQrm9Q7uW4lxFcHi1uQAFlX tpReO3rsRs/Z/oK/ntOgr36/QZ/UrhOLfXewPC+RXgN9HivbFVs6AcDmhJEnoTX4LlIy PCOg== X-Forwarded-Encrypted: i=1; AJvYcCUHupFaqi6P6c9chz7yZUxBZAWn8uu1EcmXWB4rbpkGEM7ONxEpc7yV9MA4aQtO0pYXfIEkr9hlT6kCDp3GBjmr@lists.infradead.org X-Gm-Message-State: AOJu0YxvsSXpN9porhc6e8NFF8DamH1gQDhClgYJ/PtqkY/vs/Oen9CA 50BCM9z27q2hw//xDAxatvhvGFe4r90GkOAWixt28jIKkwVNT/0V X-Google-Smtp-Source: AGHT+IFrDGvV5858WGdycyJ2YnkzCRsAgTv/brwvViai7wsUYS2uRl7bXI1hX02jiCpLYUubqCIlOg== X-Received: by 2002:a05:6512:1052:b0:533:508f:edf1 with SMTP id 2adb3069b0e04-53678ff4e66mr11144621e87.60.1726683733341; Wed, 18 Sep 2024 11:22:13 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb5312dsm5200146a12.23.2024.09.18.11.22.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 11:22:12 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] dt-bindings: dsp: fix power domain count Date: Wed, 18 Sep 2024 14:21:13 -0400 Message-Id: <20240918182117.86221-2-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> References: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240918_112215_923734_88D96460 X-CRM114-Status: GOOD ( 14.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Laurentiu Mihalcea Per the current binding, QM/QXP DSPs are supposed to have 4 power domains, while the rest just 1. For QM/QXP, the 4 power domains are: DSP, DSP_RAM, MU13A, MU13B. First off, drop MU13A from the count. This is attached to the platform device of lsio_mu13. This decreases the count to 3. Secondly, drop DSP and DSP_RAM from the count for QXP. These are attached to the platform devices of the lpcgs (used as clock providers for the DSP). With this in mind, the number of required power domains for QXP is 1 (MU13B), while for QM it's 3 (MU13B, DSP, DSP_RAM). Additionally, two extra power domains may be required in the case of QM/QXP DSPs. These are IRQSTR_DSP and MU2A. For the nodes using the "-hifi4" compatibles these PDs are optional, while for nodes using the "-dsp" compatibles these are mandatory. These changes reflect all of this information. Signed-off-by: Laurentiu Mihalcea --- .../devicetree/bindings/dsp/fsl,dsp.yaml | 62 +++++++++++++++---- 1 file changed, 49 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml index 9af40da5688e..e2f016af1048 100644 --- a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml +++ b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml @@ -51,8 +51,6 @@ properties: description: List of phandle and PM domain specifier as documented in Documentation/devicetree/bindings/power/power_domain.txt - minItems: 1 - maxItems: 4 mboxes: description: @@ -97,16 +95,55 @@ allOf: properties: compatible: contains: - enum: - - fsl,imx8qxp-dsp - - fsl,imx8qm-dsp - - fsl,imx8qxp-hifi4 - - fsl,imx8qm-hifi4 + const: fsl,imx8qxp-hifi4 then: properties: power-domains: - minItems: 4 - else: + maxItems: 3 + + - if: + properties: + compatible: + contains: + const: fsl,imx8qxp-dsp + then: + properties: + power-domains: + minItems: 3 + maxItems: 3 + + - if: + properties: + compatible: + contains: + const: fsl,imx8qm-dsp + then: + properties: + power-domains: + minItems: 5 + maxItems: 5 + + - if: + properties: + compatible: + contains: + const: fsl,imx8qm-hifi4 + then: + properties: + power-domains: + minItems: 3 + maxItems: 5 + + - if: + properties: + compatible: + contains: + enum: + - fsl,imx8mp-dsp + - fsl,imx8mp-hifi4 + - fsl,imx8ulp-dsp + - fsl,imx8ulp-hifi4 + then: properties: power-domains: maxItems: 1 @@ -157,10 +194,9 @@ examples: <&adma_lpcg IMX_ADMA_LPCG_OCRAM_IPG_CLK>, <&adma_lpcg IMX_ADMA_LPCG_DSP_CORE_CLK>; clock-names = "ipg", "ocram", "core"; - power-domains = <&pd IMX_SC_R_MU_13A>, - <&pd IMX_SC_R_MU_13B>, - <&pd IMX_SC_R_DSP>, - <&pd IMX_SC_R_DSP_RAM>; + power-domains = <&pd IMX_SC_R_MU_13B>, + <&pd IMX_SC_R_IRQSTR_DSP>, + <&pd IMX_SC_R_MU_2A>; mbox-names = "txdb0", "txdb1", "rxdb0", "rxdb1"; mboxes = <&lsio_mu13 2 0>, <&lsio_mu13 2 1>, <&lsio_mu13 3 0>, <&lsio_mu13 3 1>; memory-region = <&dsp_reserved>; From patchwork Wed Sep 18 18:21:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13807085 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7147CCDD54D for ; Wed, 18 Sep 2024 18:25:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9pnB/66IiiBxwPue9k5AJc8T5aJ3texuVaLDQqQnrlo=; b=AYNWtYzoh9LViYV3LmVK6/r/6d +2iEwL6hqcTCQlyPHVMduECjrDBpoaEyMAUyKUfRt6QrOf5U/cxLt6kaSqlWYCeZSj8+9M0lR+SbJ ilvuSGWApbUnZDF43Aln3rxLhsMVwLOyoQsrfsBS2pyf9Zu3GY2PGl8/uULjWOz7UefrBe4+F40xm su2H1m9b4mVacticVahK7s5Kl3dEAuTg1x6uAzksAI6qw3SMKAV1n9QUm618WFyE7q8Ms+3ZWA0n4 7ec+JlPsyh3baH8HHxfKpzhsHMTPKCQlSaO4S+ni55moaXKD3GmjMycAz9LkdqFcx2o/ZH/ikUaVM YE+36dUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqzMn-00000008o9w-1ze4; Wed, 18 Sep 2024 18:25:29 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqzJk-00000008nem-170Q for linux-arm-kernel@lists.infradead.org; Wed, 18 Sep 2024 18:22:21 +0000 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-5c3ca32974fso10679a12.3 for ; Wed, 18 Sep 2024 11:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726683738; x=1727288538; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9pnB/66IiiBxwPue9k5AJc8T5aJ3texuVaLDQqQnrlo=; b=eeeS9eWE1EffIzyXyYWvD3IJle+9wYBhiQQPV8SfQmSS0LWnMYmzyx2oHfLGQLZzIv WjAbxEa204f8VNG5qKnkUVTXVw0jOsCItoAEKDBiwoaVg2CMQZhHjS5rfOlgxtsmQbZb Yaq+r1k1r9AkmTqgSeG52dlGRRVemt1tgdaBJcKwO3pNbWKR+Fi1m2zUswGBBlt4KCAH G+154qEBcqrDE7xo0JpnW6c5s0cnf2Kuh94QENkfncy495MaF7pSGgKiOjL9qROlRcWc BtoGa0qB3JC0k9hQj9JaOHICT1rtuD6z6bwiuBzN5l1pwht5fFrH8ubFpdXvc9UfhaWG SFpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726683738; x=1727288538; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9pnB/66IiiBxwPue9k5AJc8T5aJ3texuVaLDQqQnrlo=; b=lgOd+0tqRSNS/KVkzaX661nsaj2bbIXsxKQjwiTOBbg8zjlUqDTGax6VIiCQuImeNC Rka9byA6PQWzZHUF/4RKd8Qz2CAvAha4iO8gWgh5xAmpj7zw91ACoabd/Wh4qnalFUjU o2f6+q3fTQFW6RkLXEsIx7LW8fk7T/eyZ3OrY6My9UUQuRHhCGXCk0/rWAINPRcKueaS kZ2zo5aOa0dsuwLuwLBZF+/s51aMkfLmMSGkHJkXv1Du2cdkUrn9XdnKYfQAH2OC53SE wsvC7MTiZOsHK6BBh/yBVbLcDsRzyxk9YeGfS0VaFsTxUm7enp93ffl3usube4aYk5mA mT0w== X-Forwarded-Encrypted: i=1; AJvYcCU8dUVlB+dHfPO7NhvHjO2Sywy325qQoHnGJTyzWmf6stMQ2H3tVlUydu2n1Ig/yvL/kcoWV55O7raYdKrDLEDf@lists.infradead.org X-Gm-Message-State: AOJu0Yz3u258I8m02xmUSvtGm8+w13krO45++XrqIkSqBcAzvzmU2IFY 93dRljS+c1krrw/L2QXeojXLERZVbGlnE4drvok1jyyUb0YwfBJQ X-Google-Smtp-Source: AGHT+IFLWoD9g3KIUXWE4OYaPCJDDEreIkagIcss6zDxUmRyhLSrCsW3Dv/hxMtDn3gbm+0lHG8v8g== X-Received: by 2002:a05:6402:321c:b0:5c2:7699:fb6f with SMTP id 4fb4d7f45d1cf-5c413e1fd66mr20241398a12.15.1726683738183; Wed, 18 Sep 2024 11:22:18 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb5312dsm5200146a12.23.2024.09.18.11.22.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 11:22:16 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] arm64: dts: imx8qxp: configure dsp node for rproc usage Date: Wed, 18 Sep 2024 14:21:14 -0400 Message-Id: <20240918182117.86221-3-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> References: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240918_112220_339756_ABF06D65 X-CRM114-Status: GOOD ( 13.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Laurentiu Mihalcea Currently, the dsp node is configured for SOF usage, which is not the "default" case and should be done in a separate SOF DTS. As such, configure the dsp node for rproc usage, which is the "default" case. This also includes the addition of the 2 optional power domains which may be required by some applications. Signed-off-by: Laurentiu Mihalcea --- .../boot/dts/freescale/imx8-ss-audio.dtsi | 20 +++++++++---------- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 15 +++++++++++++- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 19 ++++++++++++++++++ 3 files changed, 42 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi index ff5df0fed9e9..28970211dd67 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi @@ -431,22 +431,20 @@ dsp_ram_lpcg: clock-controller@59590000 { }; dsp: dsp@596e8000 { - compatible = "fsl,imx8qxp-dsp"; + compatible = "fsl,imx8qxp-hifi4"; reg = <0x596e8000 0x88000>; clocks = <&dsp_lpcg IMX_LPCG_CLK_5>, <&dsp_ram_lpcg IMX_LPCG_CLK_4>, <&dsp_lpcg IMX_LPCG_CLK_7>; clock-names = "ipg", "ocram", "core"; - power-domains = <&pd IMX_SC_R_MU_13A>, - <&pd IMX_SC_R_MU_13B>, - <&pd IMX_SC_R_DSP>, - <&pd IMX_SC_R_DSP_RAM>; - mbox-names = "txdb0", "txdb1", - "rxdb0", "rxdb1"; - mboxes = <&lsio_mu13 2 0>, - <&lsio_mu13 2 1>, - <&lsio_mu13 3 0>, - <&lsio_mu13 3 1>; + power-domains = <&pd IMX_SC_R_MU_13B>, + <&pd IMX_SC_R_IRQSTR_DSP>, + <&pd IMX_SC_R_MU_2A>; + mbox-names = "tx", "rx", "rxdb"; + mboxes = <&lsio_mu13 0 0>, + <&lsio_mu13 1 0>, + <&lsio_mu13 3 0>; + firmware-name = "imx/dsp/hifi4.bin"; status = "disabled"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index 936ba5ecdcac..527933a3eb5c 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -63,7 +63,8 @@ sound-wm8960 { }; &dsp { - memory-region = <&dsp_reserved>; + memory-region = <&dsp_vdev0buffer>, <&dsp_vdev0vring0>, + <&dsp_vdev0vring1>, <&dsp_reserved>; status = "okay"; }; @@ -71,6 +72,18 @@ &dsp_reserved { status = "okay"; }; +&dsp_vdev0buffer { + status = "okay"; +}; + +&dsp_vdev0vring0 { + status = "okay"; +}; + +&dsp_vdev0vring1 { + status = "okay"; +}; + &fec1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_fec1>; diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index 0313f295de2e..9522a65b3e22 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -186,6 +186,25 @@ dsp_reserved: dsp@92400000 { status = "disabled"; }; + dsp_vdev0vring0: vdev0vring0@942f0000 { + reg = <0 0x942f0000 0 0x8000>; + no-map; + status = "disabled"; + }; + + dsp_vdev0vring1: vdev0vring1@942f8000 { + reg = <0 0x942f8000 0 0x8000>; + no-map; + status = "disabled"; + }; + + dsp_vdev0buffer: vdev0buffer@94300000 { + compatible = "shared-dma-pool"; + reg = <0 0x94300000 0 0x100000>; + no-map; + status = "disabled"; + }; + encoder_rpc: encoder-rpc@94400000 { reg = <0 0x94400000 0 0x700000>; no-map; From patchwork Wed Sep 18 18:21:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13807086 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E2F67CDD54D for ; Wed, 18 Sep 2024 18:26:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1DCE4EQe3FTB3Zd1ByKm20TKFtEumk9lprGlloVoGEA=; b=4UoE+zoezjba4agSKxjn9FT5tV Pt/3M/GnvpoalkNHxm58QOWwNed6+dd3aInCtVLLhNFj0RMq5mstT4u4eKq4HlsnGc4pQ32/ezSBA gfb7XYKQI0/qJancl//p6vfERV5HvY5R4ZwqBfcqctE2vC48Njr964YdRWBYUS5NDpLDDbZZy+q4u MfGP1YAGtVk4m7FXFxptgr8+olVtZGvUqfwpDiF7FETlPpTf42dXyOb6Huugr3XaHz2MuXOj6ufBP ryNy3NQDuPMQJpUc14/lNxjTuaHC6stsuLMEjt6ZE9cHsmx3Y+5SRg0oP5kdU/MXmWQ6QT8sVMEgR 5gIcqNdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqzNq-00000008oFC-3EQG; Wed, 18 Sep 2024 18:26:34 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqzJn-00000008ngR-1rmw for linux-arm-kernel@lists.infradead.org; Wed, 18 Sep 2024 18:22:24 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-5356bb55224so8348728e87.0 for ; Wed, 18 Sep 2024 11:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726683741; x=1727288541; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1DCE4EQe3FTB3Zd1ByKm20TKFtEumk9lprGlloVoGEA=; b=N8h3pa2x5NQXcbSkxBFVHM+EMllHlnbLuFu0dcbLV5zNqFr73y8pRU9ohw+bmyWkqm j8SX3vYLI+HnYAKv/ISSS8cuIMbyNdLc7oAyV3NHicRl2BOpZvuunrIrgw6wZS+hR1Aq 4Tf4DtezZcovyFl/tGq301Qk2lIo5yL6Igcnkh+1XWHwVo0ftDx+YW88lHQrc+B8KFD3 T2KFvhizM5Pnl6+foXBchWb2dBzIqvU1BNx2JKBMSm+RQItaMLxU89ZQnXc+yomdedg1 3OEtN/MCPoqO0uMmfC9+uo1Yg2e8YkDtQBWPHP33um4TYbZo5p1BOccnxoKqHupIQEAN O0XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726683741; x=1727288541; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1DCE4EQe3FTB3Zd1ByKm20TKFtEumk9lprGlloVoGEA=; b=dZYInvUB59PSOOIV4WVHsv1+SCKbCMiPbkTpp9KAmeyuVmutmiXg7dtUArG4eOrl4C iaoDNzMsZji8A2mAYU7X5cXqxjoPlq1aP5x2u0sRqRlQmpCG/AXP9Qor7Yg1xzythQyU 1ta2p/l9CCdupAKKYjJO/RSIKYrpTf/m9NjukYsYnKfu+tnXgOuqASzlfGsd86t+Ubek ecA4t37on+MsBNOJehl6GdKJ2N+eBHBW6Qe+bFGbIK+xV+wt1r5nOuSbLLUvm+coKvCC OE37eXJe7fqshsCl8Mc9JxLm6X3WHHuXTiM1vxzowpkL5iKRKr+XWVp3qNF5grX9KOgF cV5g== X-Forwarded-Encrypted: i=1; AJvYcCVv66ndc9MDKOduue27fSpITGS/oKNOcM0rZGHkjMIHrYgFAl86IC8r+r6a1qFUnZBBUBP5f5I2jDGA2xHdeB5y@lists.infradead.org X-Gm-Message-State: AOJu0YwuxIws0gmsHWIMcb5P3/FQ0iBgPbXz7tB0b7ZRH4pppFc9MhV2 Q9717pP24IBwWJoTsi9cTwoogJiG69GjNC/CQY9DA644HQmKgYnu X-Google-Smtp-Source: AGHT+IGEFT10GNPLQpnYd/skpk/L7HV79dsRiA8pFMtfFOceX/X7PZQXcIB8iPGV2an/mF5hnF4DUQ== X-Received: by 2002:a05:6512:3512:b0:536:a4d8:916d with SMTP id 2adb3069b0e04-536a4d89286mr532824e87.34.1726683741352; Wed, 18 Sep 2024 11:22:21 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb5312dsm5200146a12.23.2024.09.18.11.22.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 11:22:20 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] arm64: dts: imx8qm: drop dsp node from audio_subsys bus Date: Wed, 18 Sep 2024 14:21:15 -0400 Message-Id: <20240918182117.86221-4-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> References: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240918_112223_506918_A70AA96F X-CRM114-Status: GOOD ( 12.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Laurentiu Mihalcea On i.MX8QM, the DSP is in the VPU subsystem, which means that using the dsp node from 'imx8-ss-audio.dtsi' is wrong as it's placed under the wrong bus. Luckily, there's no users for the dsp node so drop it. Signed-off-by: Laurentiu Mihalcea --- arch/arm64/boot/dts/freescale/imx8qm.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index 3ee6e2869e3c..f8b577ebdbef 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -603,3 +603,5 @@ mipi_pll_div2_clk: clock-controller-mipi-div2-pll { #include "imx8qm-ss-audio.dtsi" #include "imx8qm-ss-lvds.dtsi" #include "imx8qm-ss-mipi.dtsi" + +/delete-node/ &dsp; From patchwork Wed Sep 18 18:21:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13807087 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 42307CDD54D for ; Wed, 18 Sep 2024 18:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0vwtyPA2l11CJb7SVjnOfGfynXGLzK7+CceW4ZxmWwQ=; b=Dpn8X6mRxRMnGE98vLZYB5wL5c 4l0Der/4e+urSSyJuwvU8bZzGn8xEwmkLJKhdJ1i/JQHePvNSLlvhAYeXTuOwBXblF6Ksw9xNZ2Qg 1oLcAdjgEC4mH2sZ9W3NF2FXkf/j0104KbGXdf/masS2Wf7iEZ9SjnohYx2mXn7smmUFy/POIEk8Z WfXUUQoyiMDPP2y10W20GYD46bsYv/22vJWW8J3nQYt4fM+v9hzcX3/Z5TzQB7VwMaqmgKWAE2Hck Xs9uiR8EhKpHtB63ukhAObQuWBlKD97yRYJk9zIU919PiifdE7PikDisq2GG+dKlVvmau7Al+OsJd W8mvVrHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqzOt-00000008oLC-3aTL; Wed, 18 Sep 2024 18:27:39 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqzJp-00000008nhU-467B for linux-arm-kernel@lists.infradead.org; Wed, 18 Sep 2024 18:22:27 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-37a33e55d01so32658f8f.3 for ; Wed, 18 Sep 2024 11:22:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726683744; x=1727288544; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0vwtyPA2l11CJb7SVjnOfGfynXGLzK7+CceW4ZxmWwQ=; b=PSFH3Oj0lpyhxAd910s1rFbjR073grXJF2i2pUNz8wXhdSvouTxArAkyRqR+SNnEaR TmYqzVKo0726kI9QUCBg0UxS3kxRrx228drwSXXrCwO5GT2usi82MRbJM+Kr5vMFdXuY Fj89W6WiVJoQXqCx6GhQ6XYA3jkO4w2aKvuYIxCrju4zBqv38WNDXXCXnGbkWdjx+NLM hJV1TQisVvoIOsBZjug+rG9j28MeVgfUgxymjvP53sBti6/ilZvtBkM62xq+mJHWLRsS ZF//AL15gx5u93eVh9HuYGI45c7o4+EmCtoXuMVX976dQ6/oXhaSnP89Ab6Hf3hlU5Pk jQEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726683744; x=1727288544; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0vwtyPA2l11CJb7SVjnOfGfynXGLzK7+CceW4ZxmWwQ=; b=k90XKnINdyge7zLONHLZ4hxErkp2Vh74KNkgJkug3NmNAo2AFoL3jAC1VIU8iVa6yz q0SgQhzgtPjbj8r58u7FTYY9RMeSrFeYJ+U32rq+G4dZhd4PEdssXXk43Vbo8KUxc8F/ y9yEsDyyH9uVJ5leGffL0s8BBx5LxQzh0kssmxcSKJouQpA+gfkuAh88Yqe9SeCjBNVg WO32xcIMAOd7dvGXGedWKJHLUGH8SJGogEiquXbIEWlKstZnheAUu7GCRWI6Q2eIGtrN coOqHnXkZUPnmBArncU4hxmEXrOrOImgtggwg3HK7IbPZadLapHsnbvGhqeY4qJuQaLP +N5A== X-Forwarded-Encrypted: i=1; AJvYcCUxRbbLtwmrZ4mRAzBtbIaJxvF9PYvzFGLCW83dafZ0DIqbJGR0yFTxGDZ/PmxnVcHN3k65tdPVPPsPmzPzva5y@lists.infradead.org X-Gm-Message-State: AOJu0YxYDxySxj05VQrBS4bX+cFzpCUjxRTGjpuQXwhw07BipH9FbaX8 m/S+kAfbWMkhZyAqL867J7nWd+vdnz4LS+gizKOOuHOzs/u3mapK X-Google-Smtp-Source: AGHT+IFrPlkg7pCSWwwa+h63rcteR1uLcfkEtFxNrvhuLVGMph3cB8EcAFzN/c5f2X/C6FPmS+VNbg== X-Received: by 2002:a5d:5c88:0:b0:378:fe6e:50ef with SMTP id ffacd0b85a97d-378fe6e51c7mr3605756f8f.5.1726683744042; Wed, 18 Sep 2024 11:22:24 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb5312dsm5200146a12.23.2024.09.18.11.22.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 11:22:22 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] arm64: dts: imx8qm: add node for VPU dsp Date: Wed, 18 Sep 2024 14:21:16 -0400 Message-Id: <20240918182117.86221-5-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> References: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240918_112226_139637_CBB5E84F X-CRM114-Status: GOOD ( 12.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Laurentiu Mihalcea Add DT node for i.MX8QM's DSP, which is found in the VPU subsystem. Signed-off-by: Laurentiu Mihalcea --- arch/arm64/boot/dts/freescale/imx8qm.dtsi | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index f8b577ebdbef..ae0165a44dcd 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -581,6 +581,33 @@ mipi_pll_div2_clk: clock-controller-mipi-div2-pll { clock-output-names = "mipi_pll_div2_clk"; }; + vpu_subsys_dsp: bus@55000000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x55000000 0x0 0x55000000 0x1000000>; + + vpu_dsp: dsp@556e8000 { + compatible = "fsl,imx8qm-hifi4"; + reg = <0x556e8000 0x88000>; + clocks = <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>; + clock-names = "ipg", "ocram", "core"; + power-domains = <&pd IMX_SC_R_MU_13B>, + <&pd IMX_SC_R_DSP>, + <&pd IMX_SC_R_DSP_RAM>, + <&pd IMX_SC_R_IRQSTR_DSP>, + <&pd IMX_SC_R_MU_2A>; + mbox-names = "tx", "rx", "rxdb"; + mboxes = <&lsio_mu13 0 0>, + <&lsio_mu13 1 0>, + <&lsio_mu13 3 0>; + firmware-name = "imx/dsp/hifi4.bin"; + status = "disabled"; + }; + }; + /* sorted in register address */ #include "imx8-ss-cm41.dtsi" #include "imx8-ss-audio.dtsi" From patchwork Wed Sep 18 18:21:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13807088 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7E76BCDD54F for ; Wed, 18 Sep 2024 18:28:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=b74DjBwDaiguwxZN4WPzTGxSSIqR5dICOz1TwKaf1Qk=; b=kO/ozylBkep0LSI8AbdYzdIaMD 4mlX0mGF7/1MY7set+fK8XtEKyWiR1D9znl4bmpoKDWcPCdbc7fHqSyz6jnzSD8HsP1q3/jcMnYiG JpkMehkZNKRerYRzsZ0WvtfJ2hVVyAWHwQP2JQ0Vgsx9JocGf3xpYMv0aBsAhAo6S1I87QQa82mmq yifRkStXsXS5+KvCJgm3cxROGycZtpT/Cz0UOOIzho9EplybAHmLf858MflUPwQx21t4CQxx+AjKB +tMsdtbWgYA9SPymM9tf71Vok5YLaUgQfr3g80ENGQiaqmaX6yYxjltjOerGKCGPUDoJpQfXglq1E uivd8rVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqzPy-00000008oRs-0ldY; Wed, 18 Sep 2024 18:28:46 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqzJt-00000008ni8-0BSy for linux-arm-kernel@lists.infradead.org; Wed, 18 Sep 2024 18:22:30 +0000 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-535be093a43so9020688e87.3 for ; Wed, 18 Sep 2024 11:22:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726683747; x=1727288547; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=b74DjBwDaiguwxZN4WPzTGxSSIqR5dICOz1TwKaf1Qk=; b=bwbinZdjjfbH6r/dWpMKFHNQemIr2C7/I/4t+4H2KrumR5o2MPQTAf9/3f8SO4389c Z3BxRuPif/pnK67tgK+XRPdH3I+VYJDOkM5GKvC5m519yP3awm33qLu8PXqu6ytqvoeg +tPbwLSh3SGwrACmtTnLZTi8rr9LPI9QBmJ9OLLK0diG44Jscf2cEQOwLiEBf3VCgx+Q Ld7zERjz7tvf4Z8zLm1/FcCbMyxlhTVBX24+Hmo2G/zDB5NRhfZot4pr3/KGBSE1pFzL 7w4WrcDmy2cWr6aFXl1171p4YxwbFoT30FyDnpyPDjh6VucMjHwyVUjiuG2CXrP0Emil cR2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726683747; x=1727288547; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b74DjBwDaiguwxZN4WPzTGxSSIqR5dICOz1TwKaf1Qk=; b=BgTR6mzQ21yZ5Ij1EMpzJZ+kCJNTa1LvK3UEmvMKSESw43RMvIheA4eR8V4O2W5xBL Ja9ihq1v7AsxDpe4UaLdzv81KRNcspctUYdy6NWFOQp21qMWLCsmuwArNGhHmqsEQTVe yTFAF/ptlyrDWrqW6z3BN0TiifQHJxCJ/MgiCQiBpc9UNuiCvYi7RCxFn+KBV02EQcb3 VEPFPojCCIgKJnsMyh0waHx0+yRWBSR1LMlTMT91P6whVRn1PZFPqGBR5Aj2ndYaQY3C RGeq1z1ra5jabhMoHLWk9JPxMaeOjf0cf8rPXwJ4T25xvs8QK7Em+0WfzuL1YtMHd4oe YOyg== X-Forwarded-Encrypted: i=1; AJvYcCWxqrYJCFD1/E9AvR33aZQIcENlTItSb1Gau7rUnxSotrZXS3ZHNfrvkNLy7DhrANQJBYiDJuDdxIOmjkU80kr/@lists.infradead.org X-Gm-Message-State: AOJu0YyFmV9fA0dajk6MCJOoEt7jCjAp6yb1qdw8lo6/rCUMMpFzWXSd nQGYkrn9P/UISsFchXWW1s43wNu6yGMC19BHHAvehmuDR9qUatdt X-Google-Smtp-Source: AGHT+IEgDcqWPZk6PODNPj/XhOHH/yFVmMsQL7IfvquOxjcmWF5SBcsMwOEuGAebdORj5/r29Zkppg== X-Received: by 2002:a05:6512:2345:b0:533:4689:973c with SMTP id 2adb3069b0e04-53678fbaf3cmr10878410e87.23.1726683746810; Wed, 18 Sep 2024 11:22:26 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb5312dsm5200146a12.23.2024.09.18.11.22.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 11:22:26 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] arm64: dts: imx8qm: enable dsp node for rproc usage Date: Wed, 18 Sep 2024 14:21:17 -0400 Message-Id: <20240918182117.86221-6-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> References: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240918_112229_112049_834827F3 X-CRM114-Status: GOOD ( 12.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Laurentiu Mihalcea Set the status of the dsp node to "okay" and assign its reserved memory regions. Signed-off-by: Laurentiu Mihalcea --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 62203eed6a6c..7ee69ce7b193 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -92,6 +92,27 @@ vdevbuffer: memory@90400000 { reg = <0 0x90400000 0 0x100000>; no-map; }; + + dsp_reserved: dsp@92400000 { + reg = <0 0x92400000 0 0x1000000>; + no-map; + }; + + dsp_vdev0vring0: vdev0vring0@942f0000 { + reg = <0 0x942f0000 0 0x8000>; + no-map; + }; + + dsp_vdev0vring1: vdev0vring1@942f8000 { + reg = <0 0x942f8000 0 0x8000>; + no-map; + }; + + dsp_vdev0buffer: vdev0buffer@94300000 { + compatible = "shared-dma-pool"; + reg = <0 0x94300000 0 0x100000>; + no-map; + }; }; lvds_backlight0: backlight-lvds0 { @@ -640,6 +661,12 @@ &sai7 { status = "okay"; }; +&vpu_dsp { + memory-region = <&dsp_vdev0buffer>, <&dsp_vdev0vring0>, + <&dsp_vdev0vring1>, <&dsp_reserved>; + status = "okay"; +}; + &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>;