From patchwork Fri Oct 11 15:04:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13832643 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 91ED0D0D7B9 for ; Fri, 11 Oct 2024 15:08:44 +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=M6d2HEGva1FumwMFJbWr9u9NWQ5NOhQR6SBLNsRd724=; b=zPhceZy2mHWSMpuwnTe2hFFZcP Zh6hVN87AVg3JIG+NHEq1V+zgnMvL4QrxX8CKa/KDfCWo1F4uHlBqflMyaP06KL8LQeGMTJqak7nM xInBZk7jW+wyImQLBku6VVGsrBF8hgvmKO3J4EjdwuiegjPhTu9dSeDYfTQwzry2MjLE1woSZOvOe z2HWo7L6Z4t8dHYxKvId83pQikviv0+axbVT8s8sdAR/B7byPmy5RLYWuafwdNxnE5QSjjbpKO+EZ rruQpg/BE+HwOTh0QUCvnC7zhpEKYtE7g23Q742BUHMF5ctXjHnGDTVUSdOfSlAvADBC/EelTkuos pSi4Gn1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szHFp-0000000GjXF-0iPH; Fri, 11 Oct 2024 15:08:33 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1szHDD-0000000Gj0p-07Dv for linux-arm-kernel@lists.infradead.org; Fri, 11 Oct 2024 15:05:52 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-539e1543ab8so1113666e87.2 for ; Fri, 11 Oct 2024 08:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728659149; x=1729263949; 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=M6d2HEGva1FumwMFJbWr9u9NWQ5NOhQR6SBLNsRd724=; b=iQAtrCEtLkIFv5qzwCzPfDqZdNV7upXaQJG/GU0Zlz+3tnRfdtGqguRpdbkNr73D7m ZIvcA/p6rlzTqF2qxhnzwEYmuIyATJksKKS/4KsVBknDELH1QUpWURytrZRSYMJLB23Y zsUQcxP5RLXSz92mTbC8+3X8HrBczk0YSIyGS8gS9rnjsVJPKzBLMBkbUm/ix+Vg0DBH JhJbW47Rkqwfjl20W7w5am7lOybce0whxJ1Bm4igHbPmBr3D8yYLYyxPC4FoAWmq86Dh 0xV6L0EqCfBxgiqKqXIGYc/JIX7LooW0fY+blVEMbBEtUg7IFF5W9h3MFpzkBDPaovpw jJbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728659149; x=1729263949; 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=M6d2HEGva1FumwMFJbWr9u9NWQ5NOhQR6SBLNsRd724=; b=rXRDIDYXifdqoX7C1SzGShs/pgF+TO4rXvOUOYeHTmN5J4cjg0Vjw7zOq1hpscdEuC 71qJWXp+JivTHItd/77yd10g1XikdqTq48NVXdKNduXQNyuY2vUElrzYAr6LXC3ac5tD yw49QtlN6ygjJHJ1ywmgS5s+ZufY9uFDIQzX75bhY2TwxTBl3R2lA8R+8a+AQHi8IiSI mXE/EJ95jwfIAbl/9A0zXr6YCCEESH5xwwgaz3qInfhDQ0ByOgWN2EThi1BC351c7yJ8 2DgkkDcoZL4JzKB0z3EE2sBXiexCbQa23Uqy2eLKCa+4YAtm3SCdc+soE+r4l8goZsMG 1lGw== X-Forwarded-Encrypted: i=1; AJvYcCV15q4FnSWCZRc97xO+0PDoaBnJdWPFijxgKolnmo+PEHAlW1Q88oysda2+jKLitHur7anRXaOtPIdaMCMLwUdS@lists.infradead.org X-Gm-Message-State: AOJu0Yy+N0GQu/8+kXIyr2n6oexn3mIDJuUyPXl3QHq0dPBoiOwRepFk /7eFogebyaP3JxSNDz9+5W/5YPV4Hab3oshxZvLCPh9E551qc2ah X-Google-Smtp-Source: AGHT+IGwGf+d6KP0pDSl5JptpFK3ku9j3zBqS2D7qrlBlzrhKGLUNO+lTF/x4nO5NF3hbj3e4pBmwQ== X-Received: by 2002:a05:6512:b17:b0:539:8fbd:5218 with SMTP id 2adb3069b0e04-539da5938a6mr2681944e87.56.1728659148651; Fri, 11 Oct 2024 08:05:48 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7f5b0b5sm220879366b.94.2024.10.11.08.05.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:05:47 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan , Tushar Khandelwal , Viresh Kumar , Frank Li Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 1/6] dt-bindings: dsp: fsl,dsp: fix power domain count Date: Fri, 11 Oct 2024 11:04:34 -0400 Message-Id: <20241011150439.4027-2-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241011150439.4027-1-laurentiumihalcea111@gmail.com> References: <20241011150439.4027-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241011_080551_097983_A3233E02 X-CRM114-Status: GOOD ( 12.91 ) 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 as its already attached to lsio_mu13. This decreases the count to 3. Secondly, drop DSP and DSP_RAM from the count for QXP. These are already attached to the DSP's LPCGs. Thirdly, a new power domain is required for DSP-SCU communication (MU2A). With this in mind, the number of required power domains for QXP is 2 (MU2A, MU13B), while for QM it's 4 (MU13B, DSP, DSP_RAM, MU2A). Update the fsl,dsp binding to reflect all of this information. Since the arm,mhuv2 binding has an example node using the fsl,imx8qxp-dsp compatible, remove two of the extra PDs to align with the required power domain count. Signed-off-by: Laurentiu Mihalcea Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/dsp/fsl,dsp.yaml | 31 +++++++++++++++---- .../bindings/mailbox/arm,mhuv2.yaml | 2 +- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml index 9af40da5688e..ab93ffd3d2e5 100644 --- a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml +++ b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml @@ -99,14 +99,35 @@ allOf: contains: enum: - fsl,imx8qxp-dsp - - fsl,imx8qm-dsp - fsl,imx8qxp-hifi4 + then: + properties: + power-domains: + minItems: 2 + maxItems: 2 + + - if: + properties: + compatible: + contains: + enum: + - fsl,imx8qm-dsp - fsl,imx8qm-hifi4 then: properties: power-domains: minItems: 4 - else: + + - 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 +178,8 @@ 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_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>; diff --git a/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml b/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml index a4f1fe63659a..02f06314d85f 100644 --- a/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml +++ b/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml @@ -197,7 +197,7 @@ examples: reg = <0 0x596e8000 0 0x88000>; clocks = <&adma_lpcg 0>, <&adma_lpcg 1>, <&adma_lpcg 2>; clock-names = "ipg", "ocram", "core"; - power-domains = <&pd 0>, <&pd 1>, <&pd 2>, <&pd 3>; + power-domains = <&pd 0>, <&pd 1>; mbox-names = "txdb0", "txdb1", "rxdb0", "rxdb1"; mboxes = <&mhu_tx 2 0>, //data-transfer protocol with 5 windows, mhu-tx <&mhu_tx 3 0>, //data-transfer protocol with 7 windows, mhu-tx From patchwork Fri Oct 11 15:04:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13832644 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 49350D0D7B8 for ; Fri, 11 Oct 2024 15:10:10 +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=R9RR/LNdmVk5RE6b8H3OC/NCxgwdW3Avob2obi0lAvg=; b=xjZQ4cfukEPsHbQw9UT2KLBkNe 3bytRfeIRMvuLvCeDAOAihvoetxsnwBx+F3WO2AXb3afuGes0wJ5oCl2tOLmnPGyshOYsJXvLxTFG 0N5WDHsZ42digkp/HA5Epa5ialgLU895iaN7TzhagupTAZJTnpL7vRnCkl5GK7+N14lAIN8NbyH6t l4zN7uzR2e7pl5hFLwr9veSAGiwRzlVd/lkaI7SAiCW8qrWAfzR0Iop7QlF2V3+6JsBe/orKB6112 x9e+dVOcmDTg9U19GhV8MGjEV0QI9wh/JaALuzw2E3/gJRh1mxop+gpThA4IB+wQF0XbLETsljOaR 14FbPiTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szHH8-0000000GjgG-3QUf; Fri, 11 Oct 2024 15:09:54 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1szHDF-0000000Gj1b-49SO for linux-arm-kernel@lists.infradead.org; Fri, 11 Oct 2024 15:05:55 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a993f6916daso366340066b.1 for ; Fri, 11 Oct 2024 08:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728659152; x=1729263952; 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=R9RR/LNdmVk5RE6b8H3OC/NCxgwdW3Avob2obi0lAvg=; b=gqm93gfDhSF5wEZZMLQdxyMb3SYxPHkgGA/+7mPIAROoMIKA4uuBB0lDw6aw+zZb17 +RaWFgd9FJEU0w8vJEj4obXcf/kp+Olbv60ZG4pa28PaTqwYhl7MyfTbTggzaAmJlZax 67DWBFcXYsCOr7VAiLcOa+dBekYVIAhm3yR0gm8PCFH0706T6kDu8Enw+JpEdq1FHkav 681X0wQMrca703bc710av4NdbkG1zVb1iDwZ+Lwuo3ld14Pj0lwQe1rLe8wrj1tjZd// 92DG/E9hOaq7kv0eEtzxhtb3cZ55UDlLUDhjUcDCbdiyU8aFqHkQxgbTiolF8lQ7zjrx WAAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728659152; x=1729263952; 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=R9RR/LNdmVk5RE6b8H3OC/NCxgwdW3Avob2obi0lAvg=; b=uIjOu+4CrqF2y5+JysOjRE9o/bjssD20fg8GRQuln63/VZSzfAoiboGX5BTRI/ZdEM UlRIPnW27chYoeVUCDIaZidG1NNLS3W8/hcczK8Sf/0nwJMjhfozdNzEOn5XRvEc8D0E Lyeq5Jt2Z5Fw+NS5A7wrATA7GivMd0T01A2Zgo75Tv4u/mfRsNtId4BmHnZg5DH/71pa vkDMeXZXnXSLLDWlGLxHvAMh+PVCBHOWSadraZDSXMpIVzEotvBP3VjppzG/KaTkc1rx uT2Ui9aEBZYpG5arr1f0HRmzYfADzm4I5LFceydGY2cwbI8DvUkf3wVfRuYGLzqNmh7E WXHw== X-Forwarded-Encrypted: i=1; AJvYcCU2L0jGVnjDWKYS8tm+FkkJ34i/Kx3CmlsAlPj0VzguHIuEx1ovdoSg9Io40F2bT2oIXi4H0f32EK5DshDdtREl@lists.infradead.org X-Gm-Message-State: AOJu0YzH7hdymle4gjcCB9tJp8IEuW9xgyz6z2KCi8jOEgxfAOszuCeP MVB5nYjfbDVz5igWIro+HajS6TFLkaYQ/Kw0+eJqSGZD9gowjBWL X-Google-Smtp-Source: AGHT+IHTn+VL0X7tyXuVlxpt/mf2ksJlWhyQf3mF1ncv60BdLFcR+sjHrNcdVKotSY87pp+ieGaa1A== X-Received: by 2002:a17:906:4788:b0:a99:44ef:5e6c with SMTP id a640c23a62f3a-a99b9585dbemr205597066b.48.1728659151953; Fri, 11 Oct 2024 08:05:51 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7f5b0b5sm220879366b.94.2024.10.11.08.05.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:05:51 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan , Tushar Khandelwal , Viresh Kumar , Frank Li Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 2/6] arm64: dts: imx8-ss-audio: configure dsp node for rproc usage Date: Fri, 11 Oct 2024 11:04:35 -0400 Message-Id: <20241011150439.4027-3-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241011150439.4027-1-laurentiumihalcea111@gmail.com> References: <20241011150439.4027-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241011_080554_053745_557A39FA X-CRM114-Status: GOOD ( 12.60 ) 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 The 'dsp' node is currently configured for running an audio firmware. Since the firmware requires that some audio-related IPs be disabled in Linux, this will clash with the configurations from the imx8 board DTs (i.e: imx8qm-mek, imx8qxp-mek, etc...), thus making the dsp unusable (since the firmware won't function properly). To avoid this issue, configure the 'dsp' node for rproc. This way, users will be able to use the dsp alongside the board-level audio configuration as long as the firmware doesn't need the audio IPs. Signed-off-by: Laurentiu Mihalcea --- .../boot/dts/freescale/imx8-ss-audio.dtsi | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 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..a60ebb718789 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi @@ -431,22 +431,19 @@ 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_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"; }; From patchwork Fri Oct 11 15:04:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13832645 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 8D937D0D7B8 for ; Fri, 11 Oct 2024 15:11:31 +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=qwFmMBQpvB09DklGuZpIpvbFiWo+i75RNFs8vYOVIHk=; b=Iavddn8ORereAGVgjHsezwVA0V zWat/EuPonY5yhC/G8GCihCK0tN+iYZxRiPddRxfv2nsba8IYcR9kgMuemkAJ6kcpNMMhopbeeItR MnCM7c+om2+M7w377LG2fyRy1sWsdsdx7pNVactk1WWHp5pZQGU/5g+QWnS1uB+y9w5eLDFFFXPA8 GXYN79pzoBopxorGD+xYzRVVMyJPyO4uUfl8XTCIokBoyu4VwtjPdyU6TgCezohFAHE3DumbqM336 xr9W4vMVzJtM7RJdTeB0DFyIXVXbLJhlVvoGA9J0Jm/NNZ3aTAwBpBuymWR8cf7502RJaKmIJuo0Y MwAXRPoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szHIV-0000000Gjuv-3ZLL; Fri, 11 Oct 2024 15:11:19 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1szHDI-0000000Gj2w-24s4 for linux-arm-kernel@lists.infradead.org; Fri, 11 Oct 2024 15:05:58 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a99c0beaaa2so99285366b.1 for ; Fri, 11 Oct 2024 08:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728659155; x=1729263955; 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=qwFmMBQpvB09DklGuZpIpvbFiWo+i75RNFs8vYOVIHk=; b=OiaOEz48MmBOKHPg51e5KLIs/PQKH+rRdyUNIJbbV49A2fVGdlw8ZWcR11bui8ZLof H8weFe6TjzZEvqsAb/48nC0aRudvNTFcf0QCGyU/9m0eiuF6PvNDWR5Cejj5pp1bcnLa UdOrC9xDUtMg8lBtXFXspVr/aptqd5b1jo5vV3sh1XtElQ80/zQe120vA763C67JjtbP 9Dsx2BTsaeHJVTXKUkYqCfXSvsn63b4Pr+ECJb53QwX3tr2bSehAXg51dHY4yqRRHmqQ xa6mJy/+Ued8bNQGA92AR5JzQBHNWIhm24IzMdhgHmmPaQJuEa50EtznLLXjsbWuJecY iAww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728659155; x=1729263955; 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=qwFmMBQpvB09DklGuZpIpvbFiWo+i75RNFs8vYOVIHk=; b=v9Ea82wul+NHkZGgnN+rJvs4/Hfb2hnH2VyHfcdxjRptAuT6SmhhwJI/HdZxN/aPe+ cAyEawMUyk+1TewEpqzY30gYdjio6+sKG15BIBTVX6C/MUoTo9hjdXB9e55CM/rf9JdU OFWQ3qmqxPHVMY9i5WPSfuNnoiDdzNQLFoovL4AYuuwkB9bIozXSChnc3vFfrhJKUGhX YOrsWwCQSkhNgJhlGh1WI8T/qAce8mmh7BJrHgBGBoAoRLyLzaCLQhlY7Dw4STDDG+wW nsrtrztuON6D/hRe97oNcqIMkAsI2dpDJioq+rf4JLUgeZ7yHt6VOligR88fd7cbIEA1 1tjA== X-Forwarded-Encrypted: i=1; AJvYcCVU/QepaAx+rkDPA9FdI/aMKSnMM6mUaK6YSnFWkUFvgbYhXbPD0QXdEaQt+Hy0Me8Zn7IQEhgq1G03Gz4XijED@lists.infradead.org X-Gm-Message-State: AOJu0Yx4TP3QtIGroIF2Z5ldbbkxNxM6WaiPAN5/M+AsMr/EyzzvBGd3 f8IqF1Eh8lsdUvR6lsMFiNjv0XxlrLG6dY9gOFGI3hyr1+nniMSb X-Google-Smtp-Source: AGHT+IFgUEPF+5evxRwSi49X2ukDLzYTC+t6yJMgeOY7nvbeTzeO4nYl+8niLu+yuW1dInB/APU9eA== X-Received: by 2002:a17:907:e6df:b0:a8a:91d1:5262 with SMTP id a640c23a62f3a-a99b957fdd6mr274182866b.28.1728659154754; Fri, 11 Oct 2024 08:05:54 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7f5b0b5sm220879366b.94.2024.10.11.08.05.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:05:53 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan , Tushar Khandelwal , Viresh Kumar , Frank Li Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 3/6] arm64: dts: imx8qxp-mek: add dsp rproc-related mem regions Date: Fri, 11 Oct 2024 11:04:36 -0400 Message-Id: <20241011150439.4027-4-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241011150439.4027-1-laurentiumihalcea111@gmail.com> References: <20241011150439.4027-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241011_080556_577711_5FA4445B X-CRM114-Status: GOOD ( 11.18 ) 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 missing dsp rproc-related reserved memory regions and assign them to the 'dsp' node. Signed-off-by: Laurentiu Mihalcea Reviewed-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index 936ba5ecdcac..4c4e71d39bac 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -21,6 +21,24 @@ memory@80000000 { reg = <0x00000000 0x80000000 0 0x40000000>; }; + reserved-memory { + dsp_vdev0vring0: memory@942f0000 { + reg = <0 0x942f0000 0 0x8000>; + no-map; + }; + + dsp_vdev0vring1: memory@942f8000 { + reg = <0 0x942f8000 0 0x8000>; + no-map; + }; + + dsp_vdev0buffer: memory@94300000 { + compatible = "shared-dma-pool"; + reg = <0 0x94300000 0 0x100000>; + no-map; + }; + }; + reg_usdhc2_vmmc: usdhc2-vmmc { compatible = "regulator-fixed"; regulator-name = "SD1_SPWR"; @@ -63,7 +81,8 @@ sound-wm8960 { }; &dsp { - memory-region = <&dsp_reserved>; + memory-region = <&dsp_vdev0buffer>, <&dsp_vdev0vring0>, + <&dsp_vdev0vring1>, <&dsp_reserved>; status = "okay"; }; From patchwork Fri Oct 11 15:04:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13832646 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 0727DD0D7BA for ; Fri, 11 Oct 2024 15:12:50 +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=fXmHQiif1/lZ9e9bTSFxlQYjcfk8NDtEcw/e34eAG2I=; b=40I4RAQejsfYEk47tP+CARcoBb oNMxyzFKZv/kpGhiP40ruTsobWH84mHGRiYVMbEgSr++R50LLbvYjZ5XsnCdYiL6eH7vSfyaHB7rn UXhEXD1CxyYRPvC2wnrSsrguqBsZGVYeME/hGkQLEL7lu+pY8G/LbPb5oy/mKGDBFXI/trruMjwJ2 cRsomLPaKBR+Qww23CGpginKHiXS9U3h1MvDReqaPsurwlS3EB2FacZ39ZZwr9NlVceL3evNW0XiI H68isLwbYID9A6wJuarVZPd7xzwA7DIh2WtCw7hkdUPey2eyueQ8QC58rffLx62SmCBlZqeRCglWE f4oC/WJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szHJp-0000000Gk1m-1tQy; Fri, 11 Oct 2024 15:12:41 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1szHDM-0000000Gj4O-0cTx for linux-arm-kernel@lists.infradead.org; Fri, 11 Oct 2024 15:06:01 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a9953bdc341so207709066b.2 for ; Fri, 11 Oct 2024 08:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728659158; x=1729263958; 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=fXmHQiif1/lZ9e9bTSFxlQYjcfk8NDtEcw/e34eAG2I=; b=MEPp88GNDowMB5iEQpzMcb8ycaJyp30ZLOxlZoM2NXKnTWvYewT9qkLSP/4yKJ4NbI JqPWu+CtWpsQ4zeUCzawp10pV3qPkbDA0usfznaNMYkCbCkEJ/JlRr2NxbJzwv6x+TEj h1glQE1XEb+7wYUTxw5uPQon+OqEKjqDlSUYSAxq2KwuX+4xFBxA4Y7luSzCB+6wxDzy du86XvlDnNRy7aFcsi6r/mwHtjFEMY7ZkYbgtI3h14qh8dlhW4gNKq+JTu+2LyFF6Vbf AUKV2/cyVjgpV1N9e4X5ZcFPEOQ063GHLPJJrS2tK0/R2J1k9Enf0l8HqoZFO3l8LPfa KB6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728659158; x=1729263958; 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=fXmHQiif1/lZ9e9bTSFxlQYjcfk8NDtEcw/e34eAG2I=; b=pFnwEhZ05+ZCoEiMId7aNhIW1eXy/L20QMycE8t1zvRoA62qcT+6fH08CBV9vPzDvA TMdG3+JXbAOQQ0wETl6xweyxdW912UgaqE/dW1AhZ0WTly5woY7a8/oA6SUMUtCKvpTZ 51gFCTeedj5vwMoAO/6IyFz4nefKdxDvT7YrQDNasnR7IHKkn7vIIEy36VS8mAO647ij 7j+srbfU9cQ9r5NnjB4VE2l5G/fcTorKjcxNrcjyUqSO34ehaRlKAUAqf9zglBDbWBXL NXBKrn/1/C+k5ayfGO5jynF0P0f3T4KJ1EA3UGHPuJ+Yc8NqkwpyTR51NX8LwuuxBmdH ECsA== X-Forwarded-Encrypted: i=1; AJvYcCU6E0bgr5fZLWND9YT3nbGlbvpvpEjyBkoCNvFZbZV1G57CkA6X/Jb4nXe205dXCZSL2R/o2mCtuEx2TlxZGvNN@lists.infradead.org X-Gm-Message-State: AOJu0Yx62+phU9+rKQ4CVIoPH3phZ+bD8JeiQmDCVwGpZZeq72YejP1k 5hvp1wTgPWLzL+J+u/B4u9IzeAD7kXgk3NT/f8n//MNTs0OQpAepC6YZK9mL X-Google-Smtp-Source: AGHT+IE8XXFizK2sYPaN1979Tdw2qPZdoWcRjlcOePrjnUpkAGWIvpzDhatpjh6L+W1+ZGUR6lY0Og== X-Received: by 2002:a17:907:6e8b:b0:a99:a48d:4470 with SMTP id a640c23a62f3a-a99b95af2ffmr202294866b.54.1728659158136; Fri, 11 Oct 2024 08:05:58 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7f5b0b5sm220879366b.94.2024.10.11.08.05.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:05:57 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan , Tushar Khandelwal , Viresh Kumar , Frank Li Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 4/6] arm64: dts: imx8qm: drop dsp node from audio_subsys bus Date: Fri, 11 Oct 2024 11:04:37 -0400 Message-Id: <20241011150439.4027-5-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241011150439.4027-1-laurentiumihalcea111@gmail.com> References: <20241011150439.4027-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241011_080600_218395_D6E9FE8D X-CRM114-Status: GOOD ( 11.06 ) 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. As such, drop it. Signed-off-by: Laurentiu Mihalcea Reviewed-by: Frank Li --- 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 Fri Oct 11 15:04:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13832647 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 044A6D0D7BA for ; Fri, 11 Oct 2024 15:14:15 +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=uqRNfnCg/qPRyymj7N8Ka+MkmJ8hZ2bKmM3stNf1O/A=; b=N1Vfkox8ViaS3Oa4HdwrsjhXiy O9aAoF5ROUmg/g0IlFOoX5CL3DZvHHifgBw5xwxtce7k+fVPtnI5Y3zA3BFUz/bM87s+tDE7UVrC6 6S/Q20Ya5+8aqp95SI8eKEIUKHDeSsxycQtCvEb3hyJf875fo2h38Snu2+4AVItPfYBk4x3jEkoY/ MxevTWGNof+gbu+hLL5m0Op/UmMOT6uoCf+5DfpmFPTwOD/+HO20cMq7cTCBVb99u4qe5OaveW5k+ 6o3tW7v1EkPT2LAiQFQ6v9kuarsvNIJ5KvM+jJqjk/Xp9FroWyc8OfxXnjBYH4N4ZixY/zHyWasJM IloUwpDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szHLA-0000000GkJM-2bfd; Fri, 11 Oct 2024 15:14:04 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1szHDO-0000000Gj5N-3vhn for linux-arm-kernel@lists.infradead.org; Fri, 11 Oct 2024 15:06:04 +0000 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-5399041167cso3440593e87.0 for ; Fri, 11 Oct 2024 08:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728659161; x=1729263961; 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=uqRNfnCg/qPRyymj7N8Ka+MkmJ8hZ2bKmM3stNf1O/A=; b=ULuyN1+PqWugv6aSydviNeMwZvpOKSOlBKOF+JQc79ds021GBGUoLtf4RXdRyrGDxB IzIsG23R4rwpc/06EKQmajRAcYmLMV9lC1cgOz/rVVjtQw0V0ONKS1qUov428iWjERI2 RdVEopYxZbB9aPKc9JfcxHLxPwCKuNIjOPDL5X4N7yPH81oGgrWc83L0guA0exJGEXjs V0MHk8wXBcz9PdctWH5zXfbcQCs4QhGTRTlM2qqwT6Rjz7otIHntpBZNX2zpJGIWic0/ eGTRLYf6CwiSV/I3r02T4gdiRg4t7CW0+fqYQhueBtp7WGnRytBEy8msu5yeC+HulJi1 ISUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728659161; x=1729263961; 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=uqRNfnCg/qPRyymj7N8Ka+MkmJ8hZ2bKmM3stNf1O/A=; b=EJJhv0uROD2+Ks+q91oYVqw/AQBIq1X6+k10/C1dvX1vev2I40zwE94iZ74cLSUWVH TrejjVVCWGN4UpPxziVbHdGPgsLty/SU0XAM8O2iTefjVxdUo4LlsZIdvfPOqClzBqwx r1WPTLCUm/JMk4qVfwLY4eDYHJGc8gen8w9S3W3E0cCF7AuX1WtA2xLTmfOvgxCUuV4o xVbwjni/T1B6i6+Zh2NXQ6aZJ3jwLdSgVuOuuAHjhKNIY6AbC52UGicfyTtXQSI7+Aq3 P1S+BhkUqiFwWbzbVgc+WDUV1Cmpj1sUBCbR8nJH0+949G47hTHzyVEFgpXD7WbAWJja lgKA== X-Forwarded-Encrypted: i=1; AJvYcCUJwFWkPzyiaCGRcEDGuOtLuZ2+0H7+CruQ/tGhGKKwOf2WPrl9dpEEMIm6dQGItMkZZs/hJFMEPaWZoOm76QzH@lists.infradead.org X-Gm-Message-State: AOJu0YxvcJeLeTMLeuPkhTGBxpOZR3fuxwUhxloNponOeYP/CTGLbnLz GQapNOVjdBWhlbtl3oclWh070azZIaT/jhSo2b3KVcUrGF5KmCBn X-Google-Smtp-Source: AGHT+IEKT0YkXSTJh2zrXW7Gn7aBjsFlDsfYaG04GDGzDuTHMb+ZgvkgKBp+eaHUzrpn0jmr8e3R7w== X-Received: by 2002:a05:6512:1113:b0:536:55cc:963e with SMTP id 2adb3069b0e04-539da564a1dmr2617584e87.44.1728659160589; Fri, 11 Oct 2024 08:06:00 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7f5b0b5sm220879366b.94.2024.10.11.08.05.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:05:59 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan , Tushar Khandelwal , Viresh Kumar , Frank Li Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 5/6] arm64: dts: imx8qm: add node for VPU dsp Date: Fri, 11 Oct 2024 11:04:38 -0400 Message-Id: <20241011150439.4027-6-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241011150439.4027-1-laurentiumihalcea111@gmail.com> References: <20241011150439.4027-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241011_080603_002297_CC08214C X-CRM114-Status: GOOD ( 11.16 ) 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 Reviewed-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm.dtsi | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index f8b577ebdbef..74857a94bcd3 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -581,6 +581,32 @@ 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_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 Fri Oct 11 15:04:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13832649 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 83C9DD0D7BA for ; Fri, 11 Oct 2024 15:15:36 +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=QoqSFxBQ8OghEwfmeYsld4v/qGzAAXjDzimzS+scfuY=; b=LrHkvHxKgGET/a66UaNfePAMKk m8kfko0AZLq2a2B4MLC/PJnUYyawCmYK1IRvnT/XKm0pX54hcBP3no6RMcOTR6z95y/QGAUmiq/ZZ FS53XMSugzX8CIvLEVzZOJWTAoF+f45BijK6rZol2FgcAei7rtLfbkZ4UzMaCni0fDXNcS+Vma7Y9 slsWmYu+n7ZD/EyEPrka66RM/k65MRyPbILTnRoALBHsNvIQ6pjOV8/ORAzEEpozvG4A3DiDMsNuu L+m8TYn/xSn0DH4nrkZ3PnWS0ccM9AtABhAUgymgxqzM3hmLQnJVkNzudKWoQcPaR1sBhRSKAXRlJ yc3RBtCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szHMV-0000000GkRj-1Wdr; Fri, 11 Oct 2024 15:15:27 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1szHDQ-0000000Gj5m-3FjT for linux-arm-kernel@lists.infradead.org; Fri, 11 Oct 2024 15:06:06 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a9952ea05c5so332818166b.2 for ; Fri, 11 Oct 2024 08:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728659163; x=1729263963; 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=QoqSFxBQ8OghEwfmeYsld4v/qGzAAXjDzimzS+scfuY=; b=hYCu3z58fvaaDBVcWrmNG+k1OE3Wz7HP/xSxLFpdNxlZE+Sm2p2fhfXUdw/oGGVEvc jCrEDypEAaLriykPjcj3PgxQhbCLBt5UYM4EtuedFITixFi9oDo263i9YXScufnZ+dLR cY7MQAQFQf9VGwj5esN+YhRnkygBgSwINabtXMiFXrdA+X3vksNtf//m3T3l7XmVV3Cd CzbM0FL43/8/7KiN9ck0Z0WWnIDKEm4ucktbXVE6YUGye9mWVlYkhflUXoeAmsWULygI zxZR82ftS/XjumMgH9UXwA7sHh7bbWMkg2ESajva7H04lQjbrjTbHbH4oT89jwWgSL/o QljQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728659163; x=1729263963; 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=QoqSFxBQ8OghEwfmeYsld4v/qGzAAXjDzimzS+scfuY=; b=g2AZrCcr27XvEr7PbihBpIhahGTypwOCjEvBCY26Wk0RFlOD70TzQIkCDSeAMeVqcz eNIJV1am34EW0qkeKJzerf9UFIfdCywpDveHqVqHT8YLY09zUrg1ngzUDdEQn2+0Sz6K F7rJx8wj4BaOiFz9MZ1QBwDfAb+VZ8jWkh9G2sokub5bgC5DCa4COPKrsXPW+Vqsbjui +Vka0to5Sql11XTVcaWkMcE7eMc2+49bYYkvzc2oQP20k8x/zEOfwdX1rZF8qfvDk5/Y HeQXuTe2wI4vJSbG0KWV0uqOKDjAcprzSf2YHPd4dHPF7sQwbaXBUlheQOmA6RAGFVMi So4Q== X-Forwarded-Encrypted: i=1; AJvYcCWCY8jBmAJO8iM88iDvOx9gWoo3wuycy9hqWVl5cg+pub66CVaSikVOjfZYR4VyOx429u8IvfIR7UVXgM3OnQs7@lists.infradead.org X-Gm-Message-State: AOJu0Yxl0tADSjp7qKiJ+pRBGUP+YD0s+QzEOmv0EyUOlCeWwFexdm2O 8KZG+hZePkEYrnDObNlPOKe74SXtubbmWkbu8UH8pBBCsrJxkdd3 X-Google-Smtp-Source: AGHT+IEBK2JXyYwVGn8UlFDP/Iu5LT0dm/NXZvW4eFkGnwV5w9jD8Oxv31hD5Iaue0TJQGy9tV1srA== X-Received: by 2002:a17:907:f1d3:b0:a99:4058:67d5 with SMTP id a640c23a62f3a-a99b95849cbmr257504166b.34.1728659163222; Fri, 11 Oct 2024 08:06:03 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7f5b0b5sm220879366b.94.2024.10.11.08.06.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:06:02 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan , Tushar Khandelwal , Viresh Kumar , Frank Li Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 6/6] arm64: dts: imx8qm-mek: enable dsp node for rproc usage Date: Fri, 11 Oct 2024 11:04:39 -0400 Message-Id: <20241011150439.4027-7-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241011150439.4027-1-laurentiumihalcea111@gmail.com> References: <20241011150439.4027-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241011_080604_846732_C4CEEE8A X-CRM114-Status: GOOD ( 10.98 ) 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 and add its reserved memory regions. Signed-off-by: Laurentiu Mihalcea Reviewed-by: Frank Li --- 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..d51da3b6b3aa 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: memory@92400000 { + reg = <0 0x92400000 0 0x1000000>; + no-map; + }; + + dsp_vdev0vring0: memory@942f0000 { + reg = <0 0x942f0000 0 0x8000>; + no-map; + }; + + dsp_vdev0vring1: memory@942f8000 { + reg = <0 0x942f8000 0 0x8000>; + no-map; + }; + + dsp_vdev0buffer: memory@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>;