From nobody Wed Nov 27 07:45:17 2024 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1108F187FE4; Fri, 11 Oct 2024 15:05:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659152; cv=none; b=R2COjx7jVJRhI7T91r51WtcHaiDP1ydJG/7fGo1LJWsiRUGQkG02Eq3NimEovX5cwR4W+0LHGmiwRVvmz2aMnEjXmQ4CG8ECgOqaGC9dX9ymmZXEjPdhtAsTKKdvT1PodsYobtB/uLoBvMbsM/uDIKFMhRGtmCDfZ1FsdSicV0s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659152; c=relaxed/simple; bh=P+yE5KdCcIMm14HPs4c/lUI3dwW9bilamH4sLkmXczw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hhJB8qAuhI2ZGC26usDZ2Q/ISINWgRbllPHOaQ66tFw77dqq79FT8hP8FWhczQSNshV3geeH3iYs42V3NY/5/c5biEEreO3VYZw2zVk00WiSfmdsdDwDl8rwy4ZUGbJhAixh/OMy9DK6lsH5kSRbnzVDNRO5ijTl+7jKgJzPOq4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZQZbK0yl; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZQZbK0yl" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-53997328633so3673740e87.3; 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=vger.kernel.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=ZQZbK0ylAxUw9ylT2zsT98RXKKWi5o+d6Lae/mvonD2qROURQpH+Codft7Qy7v67cz U0nrml4epESwO7ACw3RMyvqujg8rskt2Ez8XCFCo7EhanEDCZo3JJMzs7av4eunFelw2 V5CtDZky9s9neyjO5CaAbvQpo1lIon7g9XseqQT4kuy+9kV5PMw8JOfP/+STPdjngNPi 6AXJMl8Ahur0QJ7vXq1wSkfYWW02HKaF01OcuNwPqssKit9FbCs6LSnCUzJDPLzdBHOK hIkQmofTJP+Uw7+0kKcdXvHRhnWoXJyuHF3L5XEx73IDBKkuAopCg3QDpA4nbiuZdnd4 YieQ== 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=igZXQ4HBtzGVrmrv3ehFb0LxwahInECRcnek20BbC50mvA9xHQVfMQKIvsmOK1Wkly jKO+XzMXboe/EPMauhzg4d6v4N5rYMsuM58j5V0KISUiwVh+Fdjdq1YeuOXgR84qvviR I4tMKCETGgVky64McJBXy9VdgdoWtAUieozgi1VKm8iNvFmVlHVoaaQ2lYsU+CvBR6kn rinLowPzW5MIYtEPZ9T0pa9E1dZdKl2WOyvpU3Fi3wXZIu/VZijcqOB2VnZZJ/NruRba 1Vodt4EnhD5wZ33lS8nEFkC48fp3Z0ThwXbiVcAQPjB+P4ZDmYu8/mJtPuapl8Z7cl60 HppA== X-Forwarded-Encrypted: i=1; AJvYcCVkH9z2OTOlzmXy++4rxYtW9R8l/yNV0VI/nVnZBpeL+tvwmn0ZxHrtVaTElXWJxdRJ8Qwp1IfVmpzrZQk=@vger.kernel.org X-Gm-Message-State: AOJu0Yz3OZp4jHQrnC3vCla/3WzQLMjY28Pun4Vls0zlmnoDxjE7Azij 9W+oI9mXEiYzGPVCDbt0LEizhYBMdlVVkz84f8tSZaecHvGCC9Jt 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/Documenta= tion/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 =3D "ipg", "ocram", "core"; - power-domains =3D <&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 =3D <&pd IMX_SC_R_MU_13B>, + <&pd IMX_SC_R_MU_2A>; mbox-names =3D "txdb0", "txdb1", "rxdb0", "rxdb1"; mboxes =3D <&lsio_mu13 2 0>, <&lsio_mu13 2 1>, <&lsio_mu13 3 0>, <= &lsio_mu13 3 1>; memory-region =3D <&dsp_reserved>; diff --git a/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml b/Doc= umentation/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 =3D <0 0x596e8000 0 0x88000>; clocks =3D <&adma_lpcg 0>, <&adma_lpcg 1>, <&adma_lpcg 2>; clock-names =3D "ipg", "ocram", "core"; - power-domains =3D <&pd 0>, <&pd 1>, <&pd 2>, <&pd 3>; + power-domains =3D <&pd 0>, <&pd 1>; mbox-names =3D "txdb0", "txdb1", "rxdb0", "rxdb1"; mboxes =3D <&mhu_tx 2 0>, //data-transfer protocol with 5 wind= ows, mhu-tx <&mhu_tx 3 0>, //data-transfer protocol with 7 window= s, mhu-tx --=20 2.34.1 From nobody Wed Nov 27 07:45:17 2024 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0BFF194A70; Fri, 11 Oct 2024 15:05:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659156; cv=none; b=JAMUqt9Ez+MeZ4cO9M0YgaEKk8xSCDtG6A2wXRFp5XZUDzeBV4GmN+v4GtkEgIAX6X2H/r2Xamz35bf88RK/qyKflHM3b2KNoK+xHEZdazkmD+0Xnxf4RS1F5kgGoRvAsfkBGJIrD6U9XC2EQOvGX4KkXSXyZDj3ifrxJmZDtZM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659156; c=relaxed/simple; bh=LGVhaUUChqajyskYrQm9WHiHcIjADKr0XAo1qvMtYQc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=K+zaKY90lRe1Q10S7DXmFXBcK63EToBxipnUON/h53A7Zyc+x1NkR2dSIwZYd/9V/jYwZkqh7gNnYMsu7ti8Sgwa7i83Qas1jXTMzKA2Y1F42hcsnObE63qNESnyqkbhz560rKUviZxQkRNBj6hRVIS+EqIQVDWrhiJDoGlTTxU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hLPn8PK1; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hLPn8PK1" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a9953bdc341so207697666b.2; 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=vger.kernel.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=hLPn8PK1r97TwirxSiY0TxVdKfiHBEjjh2VEien8zkj3zoJ093avcXyOJqs7ZNAdWE +gKiRpDAnKw3uQ7zNT8x9wq83YaveqajjBT5RSUxJLecgog2ZytuY7jizK0TAf8xok0K XX0vEDF66fzVc7QQAds4J/fq5OD6Wj5a/kNy2ophRYZsQ4h98c5EHWmaxc8yeUlGmfZH uoadj0I1a2HH23RosmamnqUtvYa0lOT8VP/O7+4f0AohzmF6xwjfQFcnO/TpaxYoYxr2 pkWDbfewzxnKt7AUZrYKjrqsK9SIYzQRn4HljaJBmmYp1cKIbZEXtFXZk4hxjDJsPosb K8dQ== 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=v0G+csXCcSm21coNgpwBEwxmsuIMYzwFubUcRYf5FXJlSXrsYOnGKQE7yEvPkLGUrD FHjE9Izch3oqWrlzANke2TD5550jhnaApZco5PbV6+Ivz3MikCJDPvWh9Im9P2h3jJPu S3ESL7inahMm8Q4a9Md4ay61fzXtA94KRjqZM2VlF10LMQWvDuIkYvDjCzuY/4ecPDMW 7tll3IjWyqH+WrOrpDUbEQJwaXQq27QU/WU0cWsw8EFVAxqXCVFoCjR0JWsq7taDLFDr wHq0zgC5s8xhqCz4FTOETk655TOlmRrnpu0jKGSLWnqg57MjPC+t8cJ+oO4iE7JAm57S iHGA== X-Forwarded-Encrypted: i=1; AJvYcCUtRNEMt9uz82xbEKE3rOKP/nd1gaWaUMoiM7K+tjh6mN+s39wEc8d7lgvm3gEqcS3TMc/gxGjFrdwaEkk=@vger.kernel.org X-Gm-Message-State: AOJu0YxFvhXKu3GQmL3d3shPelrnePNLXviH7FVFC5npUKmr4Jf7lti0 eMUy+89uXaWELJagbCBR423jaJQDbe5uwVllXAEsPvpcvU5jWOE2 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 { }; =20 dsp: dsp@596e8000 { - compatible =3D "fsl,imx8qxp-dsp"; + compatible =3D "fsl,imx8qxp-hifi4"; reg =3D <0x596e8000 0x88000>; clocks =3D <&dsp_lpcg IMX_LPCG_CLK_5>, <&dsp_ram_lpcg IMX_LPCG_CLK_4>, <&dsp_lpcg IMX_LPCG_CLK_7>; clock-names =3D "ipg", "ocram", "core"; - power-domains =3D <&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 =3D "txdb0", "txdb1", - "rxdb0", "rxdb1"; - mboxes =3D <&lsio_mu13 2 0>, - <&lsio_mu13 2 1>, - <&lsio_mu13 3 0>, - <&lsio_mu13 3 1>; + power-domains =3D <&pd IMX_SC_R_MU_13B>, + <&pd IMX_SC_R_MU_2A>; + mbox-names =3D "tx", "rx", "rxdb"; + mboxes =3D <&lsio_mu13 0 0>, + <&lsio_mu13 1 0>, + <&lsio_mu13 3 0>; + firmware-name =3D "imx/dsp/hifi4.bin"; status =3D "disabled"; }; =20 --=20 2.34.1 From nobody Wed Nov 27 07:45:17 2024 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A04ED194C75; Fri, 11 Oct 2024 15:05:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659158; cv=none; b=ByXFNgV/38KGE2S0NJT1/DW/pcgQsIO0DU6PVu351atezNxNpB4VJv5IHLPsqyFgeMfboKKhhzq107ZHVK8vZlOo7MSFNfbJc4pTdFJS7p6Ut4C+gcLTYyos7nzcnTmL4nZUMnesurjFZXEoQu4bT1NnNcmJhadLAcnlFY8ww3o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659158; c=relaxed/simple; bh=vr0UmcnaAYhZzZTJilHV3JxY4AJdeK6+5d+Q00WbqBo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=A2sqJysT6ccjd+YAQjOLB4hI+VU/KbQ+mZgKRkVmdPPb+mHNjoFyFvi0iDwjt8gRn08uQ7N1SP6LXOdPNXmV0qN/nD408j+1Y/gvpWJBihF1gKRocpgAs5tBmRehX9AiRxK8CL8R1QLrIblb4kBiSl4zxzg+J65Gv/g6oJL+ag4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FQ3YyXAj; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FQ3YyXAj" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a9952ea05c5so332799266b.2; 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=vger.kernel.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=FQ3YyXAj74Rco7Dpnf8i9Dna2NWjcA+Voo4ltheGTTg6MnNHdA7+6xkDAFJUu/B7Ln tzcu73sPv6awYZE6ShddIGCe4w4XSSwNY9u9xL7RmqbSavw+iUG/zLqhP/Gzf+1kpw+M zBSrQIpkydZbJ5fV8v/fm78n+VMSTNhZY9nT+KpMD5jf/ytlYPh0eLF+nl9X01Whv7OU RsZp76P95XgEBl4C1O9zhTffEd3SDD87NSCYh9p6gklLmIAgz4loCAIXJH06/ZTsUid+ 0VbQNqG0llA4+CeiuiyQc+/oWsq7RCGIihfDfdexeppDYDgqSHoHDtlNtRpxQFzgh4q2 rbTQ== 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=BZCb2IRSdvRARuVjKrHVLEHAd5fBJtLUwe248wqT7+JFx19ARqPf6Jah4+G8ZdslRk +7RfPM5P6Q0elD8i+JRdwFjH3/ef/SQh/PrapAo3LrsblIIvI834v8zlkMbMECktrNiu k76BJ9A4Q/aNJdTKqiQIhdPM71Nq76ZJtKKN06c5Bbu5TxYbvpOJHocDWAl2DBpPFfe8 q70c7a0dujggm4IhxfxttZlG3w2AxYqYBKiaNUFA1NLFHFneVgCJU55VO3/BCfYBeMLH i/c2XcQWFoKAhP8Vv1uSTpgtwgWtBwvnp2RG3veV0lXGB/cvwUveFPmgnJAN32BF3Q41 Pwlw== X-Forwarded-Encrypted: i=1; AJvYcCWxsEEKsdvMi8XkPrpqVI0M77OUQTDkZYMWszifuFSRbbSR2awuOogUgMEtiqRX2kSoxIWr4XanY4XOyJI=@vger.kernel.org X-Gm-Message-State: AOJu0Yw7vVvIYQahw0BNCvGrVe1Ens0o0b25lSLGUM99g6yOIi0r2AaF pCTxKRtfVfWoZWqArk+H8niQ3mPEBW40/kiOHTCYjOaWbycJPBqX 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/boo= t/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 =3D <0x00000000 0x80000000 0 0x40000000>; }; =20 + reserved-memory { + dsp_vdev0vring0: memory@942f0000 { + reg =3D <0 0x942f0000 0 0x8000>; + no-map; + }; + + dsp_vdev0vring1: memory@942f8000 { + reg =3D <0 0x942f8000 0 0x8000>; + no-map; + }; + + dsp_vdev0buffer: memory@94300000 { + compatible =3D "shared-dma-pool"; + reg =3D <0 0x94300000 0 0x100000>; + no-map; + }; + }; + reg_usdhc2_vmmc: usdhc2-vmmc { compatible =3D "regulator-fixed"; regulator-name =3D "SD1_SPWR"; @@ -63,7 +81,8 @@ sound-wm8960 { }; =20 &dsp { - memory-region =3D <&dsp_reserved>; + memory-region =3D <&dsp_vdev0buffer>, <&dsp_vdev0vring0>, + <&dsp_vdev0vring1>, <&dsp_reserved>; status =3D "okay"; }; =20 --=20 2.34.1 From nobody Wed Nov 27 07:45:17 2024 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0346F196D8F; Fri, 11 Oct 2024 15:05:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659161; cv=none; b=YLj1DVLwskaS3+rqEHYVRIFMFLdwSZfANF5vzmGpcU6x2kPO2anpo/sYxf0acC1HKBTzrMyFIk/dG0aj3mgcheCg8B0mWbu6Vp6FW0yljMMsNXGE/NXBwaSVpqKfRY2UTnEvvg4jRfjsS+ZirG3J7FeM6yklV9kxR4MsreTNSkY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659161; c=relaxed/simple; bh=c2sS4xoizsm3otwYaedSca7IFiwsMvhp6CH09ev/rfw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oNxqE6fEWeWvYGxpJX34/qFLPiGXZ8RkYaa3+UOixHo7oSOkt4EszHHWOM2Hqmifia/Yk1gJeXFRsMSvYg3IlfLdFpTKndHOhVn5ALdyFxI0khhV1w+jMKDrgudy5jMM0dATNP/PKqq5Y9nQXLDHencaK93PVQV45idutqA+OMY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gNXlUD4i; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gNXlUD4i" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a993f6916daso366353366b.1; 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=vger.kernel.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=gNXlUD4iMMVuZlnZhV71G9MFCEgbLYiAGFEvo5eUeb57OgGxVr5UuQmwMpwR68un+6 NkQ2yHwVdwr4coROTEhhJ5j4+LSQl1zk4AZdnVzdXluY5XIQXnHwsYt8bNx4Cy5IUlwp 8TRC9x1+VD8gz/KLDXrmuPsKT/UCeVjQ9Fp5C9DDMvNoynM4mBM58gtnWhilIPAC9oLG AxEUkyA+42W+Gr6L3AKadzSMmVvQobuyvI3WNBDJcKjmkuOArRR4/ob3WRmFQu+lSIK1 i0SdlzvhaeFtyR1iTq8QDL/tyvt560RueIz40yISposKFr0axYcmg+UpkPQuyKmhmpfE Wgxg== 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=g+XjqJMzKxsfRbYMWXlC5tmzBghr4KePJBUxnnTZkcYvzj/kuM1+8xByUfksS32vnL WoUrlRoreYHBJR92vBDCPo45vXgGKHH9+HP34ZB+i4216Sg7iPzN+lUGoIAgsPyEu3Qh 9/poPTCIGbY7W0JR9J8O3tVpYRpIaaxbovyFKnoy1pvfqnDGFNNGKLX14y5k5jhkwXZ4 RBSbRw9LhKpo4R9hXNAgOPYclFXJhZ99cMDsqSEIqa9VnOWRb+QSnPF9draT8ya0hF2y bQck4Us2Xx9NSPh/yt9v3XKfmvh+wx+xLhTlbVd3pJU5H0j1K+2hlcbDdtgD7QAo1mFr 2KEQ== X-Forwarded-Encrypted: i=1; AJvYcCXMKSwgraQgdbFZE8yQafeEiqwSEuLTWmwQ1Kwgg/btaS+UIj5qBx2HeO8GMQ9JjxH+/o5RqIX77FtECoM=@vger.kernel.org X-Gm-Message-State: AOJu0Yxrv7kNW8neV2VZyC+8Cbw2Br8ODLrwevHN+ehI5vhcmomg18Xj 8vbnBqvlNxpBLE1ulDCerkK5iYrG/imsIHjE5kua0Fj4p6+xxRQ2 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/dt= s/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; --=20 2.34.1 From nobody Wed Nov 27 07:45:17 2024 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E30AC198823; Fri, 11 Oct 2024 15:06:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659164; cv=none; b=rORELQVdB76damgIs0V2nMZ+TYgi6iacFH5dndtCuLlIhXSbunZrXHc1IOpAbb72DO3a9iFAU9Vx7VU1xSBQyX+Aj4frW9rAs55oQO2D/Xq91zsZyRn+Bq4aMTrWIjamNA+4amECtsV+h4+A8mwxNQ0UwsmLoV+/A1XaWlEHGEA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659164; c=relaxed/simple; bh=HOrUBsmnTP5kUCPQrgNppvm3i8MgiMn7KdUPyymMl5I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YPhynN1Z4e/pX+oSI1EapLy3whhmGm6d45WsAPk/FJT7ojGU+9E09CnvmqLkhFB7xAEqfkOwSa/N6+68Upeyp+I3bJF7GV9EXUfL8CZjrIg1S0PJogsCS6q9BzmkHnaO4qCNMTxZQFnYoc0GX0IJYnVJMAT43iu+shhPaji32AI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LgKa8TCb; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LgKa8TCb" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-53997328633so3674170e87.3; 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=vger.kernel.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=LgKa8TCb5ApB5zMcgrAZDlGXGqFZBkycp4XP76QYbY7EJiStn/bTKqF3MxHG/EZxQZ n2pd2fvwqE6KbGaEveVfYOpLAfFCe5f1huwToBD40GVexzdIJ/qjOYR2vS3tRxVtFYlP ufx3AUsL2iewqxprQnnUnjWiRfwSiJRm0hNYnK6ChjfdtnmvcN9/CG8rrY8y7ckj3Kci QJNCPsw0Ipr5rzfvfEhSORfsHSaINaSpgsVAA0CtUBuf8R7jnhwIhgw6uTqvDPmlM22D gDrw9sXwv7dAGMULux2izfJUscyCYO+zCgr6TCkEcwXDK1mqi8k24k25+xZk4Oq9tiPJ BfsA== 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=gbVEgoGPc9gMS90q1TWrss7Jv4Vr43ap2Qku7uFUWPUh4T2vEral1N0EwAGhF8FBtC ItVbfRQyNM4NpiiGsHoNzicSTtka8TeXZ6f4j0HLRy8Our+FGWw3omluQWJyAJKynb+K UEFlXLfCcpgyUhpaXWIWP5YMYAqnLaBvughBcMaPa2Z8+VDHlP9EKcIgh4PLs61Ap0li b4WcCBJCwEHxyHAXz0pHl6ul/NeyxZdqQAuKWtPQcJfOswbSxt2MXoCUxfNuQkQeepuc WeV3K9vlHtwd7PSxbXrp0hdo6DFaUcJBIsuQLAETMOhVcHNDJNJ+2Z88fFJdCgffjaC0 ueDQ== X-Forwarded-Encrypted: i=1; AJvYcCWKZZk2gDfqPpUpM4lD6DLGrpbByz3y9D9mEhPZDyy6amVEFaT2MOf7H9SGRk2mIp0pMtLB7tKww3QyAFU=@vger.kernel.org X-Gm-Message-State: AOJu0YyusiFWb3SwziMT91kA0bDF6cniAquHrWAKjJJRsdYPF9kar3wj Eep4QJACjQy98wcCnsiTdGsTwa2HuywlhQakWycUMB6xa/FWlEkV 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/dt= s/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 =3D "mipi_pll_div2_clk"; }; =20 + vpu_subsys_dsp: bus@55000000 { + compatible =3D "simple-bus"; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges =3D <0x55000000 0x0 0x55000000 0x1000000>; + + vpu_dsp: dsp@556e8000 { + compatible =3D "fsl,imx8qm-hifi4"; + reg =3D <0x556e8000 0x88000>; + clocks =3D <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>; + clock-names =3D "ipg", "ocram", "core"; + power-domains =3D <&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 =3D "tx", "rx", "rxdb"; + mboxes =3D <&lsio_mu13 0 0>, + <&lsio_mu13 1 0>, + <&lsio_mu13 3 0>; + firmware-name =3D "imx/dsp/hifi4.bin"; + status =3D "disabled"; + }; + }; + /* sorted in register address */ #include "imx8-ss-cm41.dtsi" #include "imx8-ss-audio.dtsi" --=20 2.34.1 From nobody Wed Nov 27 07:45:17 2024 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01DD3198A30; Fri, 11 Oct 2024 15:06:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659166; cv=none; b=nafwldxliZkXA4X7WSxU84UsYLWaqSgkgQZqivMCPWLN4WSWrXaaNe3M60EM5wNwdcNUwpHjhX1UE7ovIfgh9BXlJouwc15BquiwU23D53MFmepQkE8f+a4kUIGgocxktb/FbjSLhjdsrQB9fRp/+k5Sh0XzKCl9PBisE1UPhrg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659166; c=relaxed/simple; bh=p+Z1nDTHR3VSfxUEsfjfEreyzByYrV8byWoxxGPV0LM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UP49imk+HshHZSLDZiG3NR3sqr0Y/gtblcG7gWV4l+qNCjvr4H3uHYgPl/9YrCxcgxh978Q1LnMlY5z2jrfjwC5C/hdm1cnQWnJmpfvqh4i0X3ub+Pfrn9HsYNeLr1555qvQ0sOB2nznZ96ri9X5PoXiitkOOEJqmc923Et8FM0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bSEcO6D7; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bSEcO6D7" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a994ecf79e7so343050566b.0; 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=vger.kernel.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=bSEcO6D7ibawMiNDBvvQasUAdwApHueS/U7JhA5VwCCyvbO4xuM+S9uyyICGGzauEo +ZmzEu/THmxT29qU5cob3v5pQdar5OfAPYxiXVYkGhKw4nW3breYOELRAHr89U1T6MDD 8NZ3swOlOxkh4AqBZtZ1XlGbHugJBYemqquG3EkyqpCnT4bomB3Y0ymfCa18mARG41AR un3nDmXUOBtHQ9JWJeyew4jC7TJRJvPDgxS5VXnr8QRpbniUJD5H7Lq2MASqCE8FrMvY 5hRTD1FN+CACePfHq4uOoJFVx5oprtoppccRBY9jC5Y3s7dU2Ck9SNTA9FfNNHmyxefq v9fA== 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=p58lI1nLQo4KUGzeCOPKSKYwoeKOuXGv7kb0Zy5t+Bi4ZJa3Tyj5NUsRrQrsq+vfhC 0BBnSAb6R8tolimVlsF7SLDHvUHNWD2JbVDKeFX9UwDfiugtb7CUONrZILy4ty7Zkaao CEzNGuT/Zy7fEETEYQHUuR60zIyyj1Tr83Vbi8mZ54CuJraWuECpigsw4fzGM218RnTr l4n1xA98TSD3fnkBdYSeua//5j6CvS84HMz55zEaxuQPvnfBsXcx19Ds4VV6bSJG1ODb sF9c/4YZP3n4mS+qeuAFoIoy5rSg3yapTH2Lzp9IUyi6E7G+btwWx+uEN0E7qxm1AtF1 0nvQ== X-Forwarded-Encrypted: i=1; AJvYcCUVjm/W1A1mBPSfWW5uy3MHXd8LSEiugkxlq+bh/I71Ol1mesuR40jsWxJa64EfEfI+BVSYVfFph14YT8k=@vger.kernel.org X-Gm-Message-State: AOJu0Yxy9BaDDMxYVUDyupd815WlaSCxQwuOksjwQM3OKNYq4syHzTXq wmHeb3fYIS9I0DrUjlyFI3Y2FGqND2uR9aApDRWEF6MOZMq9eFxj 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 =3D <0 0x90400000 0 0x100000>; no-map; }; + + dsp_reserved: memory@92400000 { + reg =3D <0 0x92400000 0 0x1000000>; + no-map; + }; + + dsp_vdev0vring0: memory@942f0000 { + reg =3D <0 0x942f0000 0 0x8000>; + no-map; + }; + + dsp_vdev0vring1: memory@942f8000 { + reg =3D <0 0x942f8000 0 0x8000>; + no-map; + }; + + dsp_vdev0buffer: memory@94300000 { + compatible =3D "shared-dma-pool"; + reg =3D <0 0x94300000 0 0x100000>; + no-map; + }; }; =20 lvds_backlight0: backlight-lvds0 { @@ -640,6 +661,12 @@ &sai7 { status =3D "okay"; }; =20 +&vpu_dsp { + memory-region =3D <&dsp_vdev0buffer>, <&dsp_vdev0vring0>, + <&dsp_vdev0vring1>, <&dsp_reserved>; + status =3D "okay"; +}; + &iomuxc { pinctrl-names =3D "default"; pinctrl-0 =3D <&pinctrl_hog>; --=20 2.34.1