From patchwork Wed Sep 25 23:20:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13812514 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 BB699CCFA06 for ; Wed, 25 Sep 2024 23:23:28 +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=uu8cS5ZVBT2x5Y4ZLBzCkjnuT+mauwDzK9v+GQaA8mc=; b=Rv4yfA6idd4QKPnq7ArtbBsLze jRMS4ghx2NffgdwEx46GTXYIggr/GbsC2z7N1FeMu50jFwPXjE2p0M460XOHrAl6YTnV4/T6SbmEY mOz9rMB9Gr5Cp5d+JEbSv9xijfbTUXWbVE2g+Gikk133Y8ueoOizD6fs3C5IpQ8T6vXC5pkLiYYR2 Mqx8ixJ7mciSJBtNEK13jZPF0ux4tdW4tqrM9LzDiy1EKKrRaj3z6FsntV+EoXSAQkKR8klrRyzAa BvoRLkVCjeh99DZKumtxgX9lhywo7HqZla/C/GgqkVTJCr+e0tAlnve9y34WKJ7R03alQxLWWoIyi JV5iitfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stbLr-00000006jxn-44Xe; Wed, 25 Sep 2024 23:23:20 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stbJf-00000006jU3-0ogs for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 23:21:04 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2f66423686bso3009611fa.3 for ; Wed, 25 Sep 2024 16:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727306461; x=1727911261; 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=uu8cS5ZVBT2x5Y4ZLBzCkjnuT+mauwDzK9v+GQaA8mc=; b=g9DFWAYU/aT2b95JE64YqDEFujZIhc3WztUPyG663xchVvjDX5RRWByX8jDCNSQfwP qsdZSGzH/NHqjRVX/oVolHEjgg5Mt5Kv9AWzyrJbKfyD1XwgJB2SsdvEoUbEG2J3e0Pk wI1nA2Z2MzTwZqnryO17LrVffWqDuUWfsM0hMnz6772I9Ic1LrLttD7lr586z10GESrI yeDItcG6jkT2uT5zOEn5+MweguWWSUOGODsqejr3fRNri8QpVi+ozprWia4MrGL0oRfh 7t3gbJ/9huZGb25AyiYQjqOzVKdJPtJ6eSRt7gLIfjMLRP+aRFnJzTBPBbISwhGAP/Z8 fpsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727306461; x=1727911261; 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=uu8cS5ZVBT2x5Y4ZLBzCkjnuT+mauwDzK9v+GQaA8mc=; b=niKzy6RPKmKJwebYIvgaJHiR6bmO/p0xlJIpjre+ndhdKJCSP9g/S7Be83XOUDGcVM SJcbNJ15VOn/fu2+zK54BbFZFYD8KYnpovVka8HR2PGgRjdF5y9iqo1zyTfDUBvjaShc DGX7hVXVP0jZV/PVwFguZ5Zc9P8x3m8nYpIX2xPEAy3sfg43w3f/NHnESr62JD8lmflF /UJNCsMnpnXuJ1ogZjxmBLAkLPSNcrOx1pIr882lBgEcOfoigzHy4fXyKaLcgxiiCkTR ZK7PxsYgNc4eBisMTgq/j8Vi4YpluFwgqbIb/B5CP2DVjx/nYsSc2xU/P+jI8jkG81Zv 9OdA== X-Forwarded-Encrypted: i=1; AJvYcCUq8nixYmHBWFXQd6qA1sW8Gtgh/RVJBEsFd5TUY3UWPCkqmcpHGoCHaVlSdfKg5Y4lNDo7/0L8NJI+PFsFRGW6@lists.infradead.org X-Gm-Message-State: AOJu0Yy+iiyvlOHg9DqMCV7js+n1tvdcA0Vu5Dbu0U5iTEGZCO/e4Rb2 9SRP9uPeZmEjxJWxxwhm65PX0eA+u/5sP4qiWtF5Erw0ikEPNYXaUba3grb+ X-Google-Smtp-Source: AGHT+IHdvjn2giBUs0LazmE6P9wU7waFLc1kqAPFWdrrVS2sXKmllv8Wvmvy0TA72d+Ku978kbQ4dg== X-Received: by 2002:a2e:a995:0:b0:2f5:6b4:1d2b with SMTP id 38308e7fff4ca-2f915fdbad6mr30761441fa.13.1727306460945; Wed, 25 Sep 2024 16:21:00 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c5cf48c315sm2481026a12.15.2024.09.25.16.20.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 16:20:59 -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, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/6] dt-bindings: dsp: fsl,dsp: fix power domain count Date: Wed, 25 Sep 2024 19:20:03 -0400 Message-Id: <20240925232008.205802-2-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> References: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_162103_261603_EB53465E X-CRM114-Status: GOOD ( 13.92 ) 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 25 23:20:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13812515 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 81932CCFA06 for ; Wed, 25 Sep 2024 23:24:39 +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=0bogDjOZyEOHR1iFYz6hiM2rDuEVzKCPss7f3ehg4nU=; b=U90ZUbqMK+6COFkDYR3nZrTZ29 ep/nNMt4ae1yfFD+ZrOTn1ypvtCdGt2pxMUephBqTeYPp3DX7aoDvhpfIo26MPVN3K9GlV0LDBbPl VWC5tmyAL9onI7vQMt5epUb1j6KUV8Ux0QTXGIwtyzNVPnj7UEsp9AM6A65y0lNlvCidrSggSdIgF HXljqN9srlGAzdKebZFJa3pQkJB+P2/oFTzy+ra4P1DiVKZ5WDHr/uFBWyWN2CsIfUZw6jk4p9jra SWNVgE3fmh715zxO2hbDlTHQ+RbvpBs29haNU14Kfj1CpnhG/Ki4DrLFKBtTe9yR7yAD1P4eyRA1G f7TTNWFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stbMz-00000006k3U-0rt0; Wed, 25 Sep 2024 23:24:29 +0000 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stbJi-00000006jUQ-23uc for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 23:21:07 +0000 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2f753375394so3527861fa.0 for ; Wed, 25 Sep 2024 16:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727306465; x=1727911265; 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=0bogDjOZyEOHR1iFYz6hiM2rDuEVzKCPss7f3ehg4nU=; b=KItJ2glIxV0wfSfiCS6Pjkxjl6036o4TpKWxI5l53kY3CaLeEXMLlEc2wLwMSyb8Zo qatpTCddOoe+Y3R6hqXaPdcuJ7fwyahrCR3Ks4yTWVM/ARR33BlJmlH2H6DC0JpN6qna o5uQb1GLO3+71Ek3wZu33/nl7T09xs0Bbv9RIt9venc8Vd5+f1eyk9vd4Jtme2FxRmY7 HJ+rr3UIdKDvNW4EWdRn+NZ7rCEUCeVg9eNbX15m5wZsKmYv7lGqnvJJXsoZp2gIOpi4 d7eTTOILUkUjR1LxPvTk+D3KBomb7rXFYUbQ18kRknWLtDahuzgSp8MjStdt7Ke4nFTF Snag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727306465; x=1727911265; 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=0bogDjOZyEOHR1iFYz6hiM2rDuEVzKCPss7f3ehg4nU=; b=I46+0Bz2EQbp65b9Cg3rjQXyGwM+E2u1drpW8OnSb3pl1N4NXTd1kmeb5o0YRRf2+2 kCe+yIh/01i3krTMSIwZ9dDSrvKhS+i/0IpIXfy2aOKJ0BOPASfmoSDFnqcnZD/7B4kO bvgylf29v9U0PtGMGam+DPUoF6CvexkgkaVeaNcqOkwbhjTCoZ4nK01NYUuroGOs1Scs OTuq3ZbdmgqlKXNUMYa1SCFEia7kQ28MBdh84rpIaeznEKKrFzjLcfEM4oLNfIAlMcft K7eOprKphREsX2JTSZWbtFq/ZAyIkdUVwNDqNvW2pI+SNL5azNkI8GAm0jnLAfPdvvPv vUfw== X-Forwarded-Encrypted: i=1; AJvYcCU8TNTkoXHREjtXbqsskTeY/4+hdkmgLQvkkY48TBeWOPv6a3R45tYdNkEZbIuOioC0u8Pwlv20z0rrvVvm228L@lists.infradead.org X-Gm-Message-State: AOJu0Yz4AxeVbKCYXE/jjoFJqtD0KlbLvyLN4GINur8sf8zTAvHPZV44 1GRa2SC+vCgDhevuB/PSIPYzlFH8V653DspUbx/IX/YtjetT+hO7 X-Google-Smtp-Source: AGHT+IFzysiJl1nP11kbexTXDIA+NNLYwV/h5+ijVjWxUUQVRdF/d175iEpJG9U0C5fsGowcn2S/qw== X-Received: by 2002:a2e:751:0:b0:2f6:593d:36f with SMTP id 38308e7fff4ca-2f91ca46349mr22985561fa.28.1727306464388; Wed, 25 Sep 2024 16:21:04 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c5cf48c315sm2481026a12.15.2024.09.25.16.21.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 16:21:03 -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, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/6] dt-bindings: arm: arm,mhuv2: remove power domain from example client node Date: Wed, 25 Sep 2024 19:20:04 -0400 Message-Id: <20240925232008.205802-3-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> References: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_162106_552474_7FCE0A97 X-CRM114-Status: GOOD ( 12.32 ) 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 number of power domains required for DT nodes using the 'fsl,imx8qxp-dsp' compatible is 3. Remove one power domain from the example client node using this compatible to align with this. Signed-off-by: Laurentiu Mihalcea --- Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml b/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml index a4f1fe63659a..9e878c028036 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>, <&pd 2>; 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 Wed Sep 25 23:20:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13812532 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 48C9FCCFA06 for ; Wed, 25 Sep 2024 23:25:54 +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=BVFuXuwQq4F0ZLDIr2tAnGQIQ63Zn3MBCQOz7VF/F8g=; b=31MzviJuc1WtvOXyvdZwmYdjpT EHdO7Z/oTXDjjBy3IjcSOBTalyFicp7WdQRXkiPLJiT8myjiwyVZq5yj3xbjj7Oq4Q23hR65TH9Qi ZHIuDVY9VYwW7yS5V0uAwAEsXSVuEFCkbuAyEBti5ieILrkNbMZQcSCM9VG23ledURvKAKijNNlvM Z7R1IjnfGeaIGQpXSw5BP7iYkuY5k9w2LJ9VqQ+YrO6A2bYsv+WWcUMF5lW6KT7SpBqchuc5NRhZj sg94LcpcP+oEuLRocmD9mL9USVafwdkOzjH3xWJwjlaDhA7N+nIuOb/N2KaFWqlvT8p5Bx3rC9q5t pP3JFLMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stbOB-00000006kPt-18IT; Wed, 25 Sep 2024 23:25:43 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stbJl-00000006jVF-3VBj for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 23:21:11 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5c5cf26b95aso313632a12.3 for ; Wed, 25 Sep 2024 16:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727306468; x=1727911268; 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=BVFuXuwQq4F0ZLDIr2tAnGQIQ63Zn3MBCQOz7VF/F8g=; b=igPA0KUVkjMbn7uDfgROeMXjQbRZcH+lTTgjq0FtAk8J/mlanGxq8nTtqfo/DBpkOK JmWq+317PvJoFcMtzFont3wM6CFF1TeXtdXQ6+aKU2z93CNK4w/A7vtvbpR4zP5wK2o+ UJHafg9ksXWAgyP6+uUv8hPBEGqOI9DmBu66AK26pL5YTu8UdNjt77pqJIdcOE3qMMYa 6kBtiKp1Cr4coICE1mwuoQm1N+5u+XMVyxe6s3usss/zmpqSvghssm/KwlF8Sp4ur30P +uxtLAaUN1T+TyzmcxylG3jSnD/8b68BozgFS/XFEoktL3TDXKWf6IPGdgQcM7bYWkPf +Fdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727306468; x=1727911268; 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=BVFuXuwQq4F0ZLDIr2tAnGQIQ63Zn3MBCQOz7VF/F8g=; b=NJRiprba+xzO24uwJB7wVZ2E7xGV3FHNz7/fFMfW5jLMIx9KFa5wE7EG2++283rxqT 1nHSCX3G+M8W6pKJq5pmIaQyFCkjmAnb8A7KqiU8S8V1p9Udd9uKDbr19MiBc65o3Djs WjRWwtHPTv4M+NGqpRo/se1numsIqNM9u+f7T2uXsFoHJeLlysKwpYUtVPdmYLJ3bwAT ozD5Ic8dq4vJDe7t/r3QCUb7tJB8ubmItAChqkT3CHF2rADGxb6Ah05jLONL8Jyw0F4a QB4+HVVMdo0I7Sz7a3mbJ6ghxue4B2cVGyJmXZvzF1Y0XxC+pgr8x98is2HI2uZOHoFg NOBg== X-Forwarded-Encrypted: i=1; AJvYcCXQxSPal0/7KEwRdddtXT8aVqq7ne8z67tC4HEnFdAEnSwdwJF9SGvvfdJ02cRIMjeq61MendfkFvOmDJJrzi90@lists.infradead.org X-Gm-Message-State: AOJu0Yzxg7oSpE23mJADeFRjETx3HN4X4PVpSUGP5WwTxHiBQorTMuXF DElLOlrvaqt//mNwn6u6DP6ZqUAzL3onoq1vqMNVzqnRjBGIw8oj X-Google-Smtp-Source: AGHT+IELRInJpxqZYi8CTCZwkwth1Bg0Cn73M4nS4KTBgLzsol54vPnsO/e6qWGAoQS7rVrkDGEtfw== X-Received: by 2002:a05:6402:40c5:b0:5c0:ad76:f703 with SMTP id 4fb4d7f45d1cf-5c72063feecmr3058720a12.24.1727306467778; Wed, 25 Sep 2024 16:21:07 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c5cf48c315sm2481026a12.15.2024.09.25.16.21.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 16:21:06 -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, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 3/6] arm64: dts: imx8qxp: configure dsp node for rproc usage Date: Wed, 25 Sep 2024 19:20:05 -0400 Message-Id: <20240925232008.205802-4-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> References: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_162109_898113_8B530AF2 X-CRM114-Status: GOOD ( 13.38 ) 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 25 23:20:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13812533 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 CD6F5CCFA06 for ; Wed, 25 Sep 2024 23:27:05 +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=gmzjogEbiMBBu5hAcEk/UYn+YJ 5T9Ej/G44DjhwR3PZMyDCRJR059ouLfJIdKw0W9HkceBWbVVgrq0v1tvUKx3gaYJgBVnOig1o63ib E9UQ5ZnA7hD/xKZ88sVcge2bSoIH/mfw1q+opi+tgDC3Xk8YHU+qdv+6nD1iD+o5ec1ThvqNfxYI7 6LIJMfNZxlOM4Sca84v+KMopMq/QD6MI8pfqqxOmZko5IujFvTgBwh31CgDqGqbudQKONUD8R2vs5 aZoTV4wrW8aDAtrFFlQr19xbkQVg3BDutLf9XTnu90mPha6z1uPxpvxsEsxDFnu5yAAqBkogFjy71 NfzT3+pw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stbPK-00000006kmQ-3J5t; Wed, 25 Sep 2024 23:26:54 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stbJo-00000006jW2-08tu for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 23:21:13 +0000 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5c42f406fa5so181329a12.0 for ; Wed, 25 Sep 2024 16:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727306471; x=1727911271; 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=fzOYUyBm9FBUllF0hqmOcBBFKg0CrLY1dq5Ub61p8QGQlbFheZxWrc2rtZdEpv7oOm g72aA39DM/nopUlyTiBZSq9jKwZgaeS/sx0xA5vzb1oqsUW8Clr892QeFtmyOBRlJPB8 RuZChYzmj4ZqkIIxPlPgdfW3AocT1aY7hPbrjAFhx1re4mU3Rn+MO+j5Uxix1bAA7JMT +hV1gdUXKELGX6tpxQJ6c3lR/nJ13Df39j5EyB44CZDfz1T3F90ZgaoOQW4W46ZnCpw5 h8Rx+RgorkUuNuPBmeEPbO3OtWZtNoiykKrtKXOOrhuWEYPuS3Q220vMgdMBlyx3E0WD lWBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727306471; x=1727911271; 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=WS0NbenY9Cr4pE5+Co8hFFu65qiT+9eLGuGdTfEs7tGBNkFS7LNDTIlU4Vt3TSw1Ly e0mPmJpk0/+gtCvQmUGHO5Wv+GRAO0s6/TZ+QJ0X0fsLAlvLc7L/QkdN4p6yl33x5jZ7 RHT/XKVnXoXqacAo59UW9uP/YNyLnYC97VvjxFjaVJ3JMA0faRqfSxcIqepFpWZWPh03 UsDkCeebINt36atvyuY1fIXhTThCbonZpg1fPmGCfJbwH52Ovva/c3PBjjbaHFbNmLss pFqt873Nfbs1fU2wj4ZjeqbIOT3X+OWjPduDNXaaJu0d7/XHpy6t5ciBOUaCOHEFbfkQ BI0A== X-Forwarded-Encrypted: i=1; AJvYcCVmdOxPUMWhLYxk5JG/oT7Aegj+BLIJqf1yR2ZGMVGGYed7sdWhmKp1dSDhkpc+024Ze6f63mXLzZk9RkjRKhzN@lists.infradead.org X-Gm-Message-State: AOJu0Yxan1E3Gc5BoCaFcmoxFTNcjglBZ2jVrMtvUgs4+DS4viXwrlyK rntUoNJCM6aTXhDIHVfaX3QlPzXn34nCRzjDJaawm+3eaLNbbP7l X-Google-Smtp-Source: AGHT+IFurIPGcn3OINfKpRW1ac8UmQhuz6IAdsY7IhLNLaWRW5DT3OY7ioHFhjittAMJtgpcbCsGUQ== X-Received: by 2002:a05:6402:4409:b0:5c7:1ed9:aab7 with SMTP id 4fb4d7f45d1cf-5c7206120c4mr4095600a12.7.1727306470374; Wed, 25 Sep 2024 16:21:10 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c5cf48c315sm2481026a12.15.2024.09.25.16.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 16:21:09 -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, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 4/6] arm64: dts: imx8qm: drop dsp node from audio_subsys bus Date: Wed, 25 Sep 2024 19:20:06 -0400 Message-Id: <20240925232008.205802-5-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> References: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_162112_107089_62B1640B X-CRM114-Status: GOOD ( 11.90 ) 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 --- 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 25 23:20:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13812534 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 2756ECCFA06 for ; Wed, 25 Sep 2024 23:28:14 +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=/BZ5x1JardeLzM/m5KAAa5mcr11Ogt+U3TCpeepywJI=; b=xNE4JCFUxB5JC2IFUQchhEWyma ySyYmniM4NhkGn01NEsA2onKndN1exJY/lY1Tc8EBhV09+SRoISleYmMwHYfa+mqbyQ48mNhjLQcy 2uBUzCg/YFDeNbB2KqM9b7ZH07EHu0+nckf0ldobfhBw6j6iAxTZo0iANxcQkZ7reAGKQojxC+mN0 Pc87g3PEJU2uq0v5hOZCA0VZIhitYcL8i5p8xZXImGkQd1Vpzknv5kHPbp2eO5Y9+ItJbz0/EBXnM EuONRgeideoLK7oXkS5ObRswGaWmv7uAJ/KQrZUM996H09dsZOPvMF3ltVJ59KtGFLTOLpDDHfgLp qERJnSvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stbQS-00000006l2H-3Hmv; Wed, 25 Sep 2024 23:28:04 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stbJs-00000006jXz-2EyP for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 23:21:17 +0000 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5c42e7adbddso360956a12.2 for ; Wed, 25 Sep 2024 16:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727306474; x=1727911274; 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=/BZ5x1JardeLzM/m5KAAa5mcr11Ogt+U3TCpeepywJI=; b=lCLDF21CK5XY1Vf9+jJfeuZTuwoB5PRAJWbNvuiuw5R1eBU6+PM8dRV+DbnIPkvM6y 8nGjDML4qmbFJNmTO55qZZppc7XUMn7YBW4AqJGV1U+H+9CucRQRNKKGH9poOmNcPbsO fXhiLzkcsUpiGympSiNkMKpHttkymnh28C3sXoNiwN+na2rI1rGE7L3GNmMnkKEF0kBk h4MP6Aw+WNUfYfwmZBwdiaBxXkERmJrVA9U0L/og5IApcd5rbD1WdbuiCOoeS3CbzU4h ZHCDwYeCkJ3ELTfGsdqJWTn9CbSbc8K4AtiUJJu9uhROn8jH/RaljqH/PrQvD1G9KqSf j5kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727306474; x=1727911274; 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=/BZ5x1JardeLzM/m5KAAa5mcr11Ogt+U3TCpeepywJI=; b=sdR/fhPB9AAZYbUmg7k+ZL9/5JIbCNlf9FzxJkOImc5ddFXBdOpo8jt5AqDRszc20V iSHO1ExNhVFhC8T5uDJjTXdLR7oFSwPKHp+getjOj7CpkplU/Qnju+jtQ7qSIUvcyrmT CRGnp5YoJ6owACcbF2X7rYE/TJTySxhcffYYNYw8JPrFtDIEscKzZSHPj9NbrTSw3E6R RGysGNpGa/2xbVf6duqi3qTmZV8HQaBF8LxBMn5X77NJapDT024Ankw/h3y6/ycdCDOD 3+LqCnKyh7DLKZEN+2FDfKtOh8NbvPVFSYjI+OHof3BhAXbC8AGbfuyFnQDg7i4v+sS9 8XoQ== X-Forwarded-Encrypted: i=1; AJvYcCVCstLqzCOTlPQ8uaAX5wNNcffd8BM8Lrr5RZhvGwGFBwx+cJDqOfmSRuRyYV9fTjFjtjcqXiYigeBLX1hO5njh@lists.infradead.org X-Gm-Message-State: AOJu0YwXUwOtNyvNGUFSRTogJpxzTk4rzjGseftbgZvKVKa0rdwr0hSr mtz+PtKWtJKjngFQua5dK8czCyU1hc0V7zDjgC1kpgJecXh7RYiIo/uH5sCq X-Google-Smtp-Source: AGHT+IFSfrNX5+ZdgLCD+cmSwZmmpfoMEsHjHpd/2Frq+M22Gl1QZHtrdQuR+01rVBpVHguU2B3qQw== X-Received: by 2002:a05:6402:51cd:b0:5c5:c2f4:c4e2 with SMTP id 4fb4d7f45d1cf-5c720764447mr2105166a12.36.1727306473734; Wed, 25 Sep 2024 16:21:13 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c5cf48c315sm2481026a12.15.2024.09.25.16.21.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 16:21: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, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 5/6] arm64: dts: imx8qm: add node for VPU dsp Date: Wed, 25 Sep 2024 19:20:07 -0400 Message-Id: <20240925232008.205802-6-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> References: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_162116_603397_6B777223 X-CRM114-Status: GOOD ( 12.10 ) 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 25 23:20:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13812535 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 566A2CCFA06 for ; Wed, 25 Sep 2024 23:29:26 +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=6Y0/b/12goaJOUtphQuMfAjI4BvBF9ykQVTYDGjgY+w=; b=s4ZNGg9BJ6nna7PNuV/iLSakWq GqShM4tyds/s8YBLg7mJyTd6vtwqBXjHovAtfwY3IYsmOPC64fO4giM8xHfsKp8AEImakhKzQr4Us tEGCJCc3Abdzk2YjQwoF9+IfLMrRXEayOuxdxLXu7llfmITXPE2NA1WcKeLaK6fpP1VbFps/ol2O9 Swul4oXegLSFrKbZda4kKgGUGtRqYxzAsOPOXFZ5pPgtkxLu3kzDU2qYFEKLlT4VG3M4dszortKhZ xDz9eLecA4LwUtV3jczzKq+7DYTRo0f+jt+RSlqRXXVxaoDOc78dvclALf74GKRHmNJ6Joe0tLS7K bVu1hUcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stbRc-00000006lOL-2HWH; Wed, 25 Sep 2024 23:29:16 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stbJu-00000006jYu-44dj for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 23:21:20 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5c42e7adbddso360998a12.2 for ; Wed, 25 Sep 2024 16:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727306477; x=1727911277; 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=6Y0/b/12goaJOUtphQuMfAjI4BvBF9ykQVTYDGjgY+w=; b=PqUTYgqTYdo/oCyijycO0Eh4jOdDVrhdL7/YLiwyiI0TQ232kwolyX/0E3/RlJ3XHL 55tx3U6r/DROYOB05maALYL+lPh/5SkZHSYBDyRJmxyshUqUd68j5/+mbKe1Xo5ct1JB PEVlKktDIgpPU107RK3rLrW3gS+7lWQctsscDUs8cmptRkoOlxznPWURx232suppKDIb AZZMfCxa6WH8FuJlNB4vXhnryGlIOS0xKmue9MUgYJTeyGamlia69cH9mnUTRmZG6FWG cedmy70oMDtPQJCtnC0SmHxDy046WVtjTYLzUkqBH1O86NXBMcwMxu24CEgCnwsKkdX/ uNyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727306477; x=1727911277; 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=6Y0/b/12goaJOUtphQuMfAjI4BvBF9ykQVTYDGjgY+w=; b=KqaoMxIoVqXhkDnoaZBE6W9XZNswgpq8nbrIvd8gg9WcYOoJJKBxSRohPRjAVoq3/+ 58Z7Ltcx5sXvcHedCfINFtr1N4XkIPp3/zrQ7sdItPFju+lBPZ64Wof4d/Hje+PRhx0p l5jLwQvFAzdFpxywWf02SULL9/YMiKrF0HRoKTyr4g70YWq7QKJCVX0NQ5HcTcJHVvuf nXji+r3BqbLzb7RvoHTxY3lYHB/3UcYWyAWxOVyhHDXXQ6jTXFbpV290hh5Y6pp67g7C irkKKXBRmI3CmKR+tHDCEPgRF57crHfYHz+roBKnEHnkam9A+mC2AkEtzfef8wIuQ3WQ 058w== X-Forwarded-Encrypted: i=1; AJvYcCWOynH/mHizjyM0b2UX2RBm9msqIaYx5+UftN825FDtZlfVxsc0uIiMshisY6Ley8DfEfi3F5KbbQcbaY/ay8dL@lists.infradead.org X-Gm-Message-State: AOJu0Ywn5wDPLzY6zcXxivo8gGVY60anL09IZjGh07ylbJ5OcknW4ziP 4I609GW452M6KoA7JOD41WOUaA7xcVOfU1ybZSn4g+cRgfOkge1P/QJQJNn0 X-Google-Smtp-Source: AGHT+IEMfbfQnQA9qcYuWORwKKxs2GMl24az24OZdgZIQPCbXrTDPL14Gi7TSLFD2svMh9oBJTgYAg== X-Received: by 2002:a05:6402:354a:b0:5c2:6311:8445 with SMTP id 4fb4d7f45d1cf-5c72060a8edmr3765685a12.2.1727306477046; Wed, 25 Sep 2024 16:21:17 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c5cf48c315sm2481026a12.15.2024.09.25.16.21.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 16:21:15 -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, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 6/6] arm64: dts: imx8qm: enable dsp node for rproc usage Date: Wed, 25 Sep 2024 19:20:08 -0400 Message-Id: <20240925232008.205802-7-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> References: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_162119_039375_1708533E X-CRM114-Status: GOOD ( 11.72 ) 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 --- 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>;