From nobody Fri Nov 29 15:41:05 2024 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.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 8AF651C9EBA; Wed, 18 Sep 2024 18:22:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726683737; cv=none; b=mMIvB6jZ2grTseFihSlpbt89Go871jHTm2tgcdp3tSR+3iM8bnX3FzsEounaj6EA7tLxebKGJmAhA5qVxN2fL9NRlbz7x8g6hpnHk8e0mdONg3mMH2jHZTqlEbpou5HYxPSQ5Jup3sxKkBxYjWe4LD2KIkMOJIjDYaoDYwTN6I0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726683737; c=relaxed/simple; bh=UC56d/wDo4fWA78feoHg6QDV1PCP6dZckMEAl67t3qE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=No4ksEhkBvHN3wrz1G2qEtfsJxCVhH2NKO2T+jkJCYfBPZ60baZdPS0cj4P4XwU6lJn/rq8l7TAYyiP6j1r/1aPYzer9zDUG4mEpNMCqEQ0i97QdUhiKFErHrGndNOGdEz2bMQWDNkglapbmb0ckK5Bs7KbUUG32kHU8uLVBDNA= 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=iZzrxeKt; arc=none smtp.client-ip=209.85.167.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="iZzrxeKt" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5356ab89665so8258215e87.1; Wed, 18 Sep 2024 11:22:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726683734; x=1727288534; darn=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=mSJkyW7PtmsR3xBcC4s2dK8tXSEoVtyj6mYraRaugmc=; b=iZzrxeKt0KD6bFSDezetu65dGIvP6kcnMrhatSPCOe1u7r+mOzhsEvbrd+Bxo0WauP YTbJhT7ANzBmLsgsNW1UMizbkEnRHGqVb6aAVjBuSlZ3qSHIUUi1XJsHkhUjbVsqL51X OmSIfsWkMML/kRSrq3owAkewU4oU+9uda0Ote32RXRAtK3XM26xnWCSkEhMT1hDHr4rX ercjatbTBX8N+IUvzO4pjokfGXCwozzRbHhNcO+3xDsf2kEnI9qIb8u1hrq0kKL/6nwn PJskgUPZDOgA3uND3IJsj/5ouWLd5Kw/6GzakmeBTADnvpDVCMhKRKCZw5/mHqrpypqq oK/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726683734; x=1727288534; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mSJkyW7PtmsR3xBcC4s2dK8tXSEoVtyj6mYraRaugmc=; b=n8vdAi+dVVKeRJcgxp/G1Kb/bhyIyM9SK1RGAUkONX28XMQel3bc+vJnz01GAFRMmW 1MOpyRVbPDUM6DGhwDPum6eGUzBzp6HF5RnXCr3lJUx1jpPRSF5lUOGkw7KG5qs25aDt HOAMreda46u7ynKLyy6cUwT3mfuRxVRXvrHPRElQk04eYW824RtAdjyVMaTF4v6hB+Cn u7Wp9K5aJOC6DqgdxKKIwml2tKksys5A4Qfq1tSYm7+JQqnUS8xOEhkwIsyIu+PyFQhu LJZycBBqUZyFm0J1EUo3ocy5x2L8bjo9QlkMSGwzHXquooSrZsDSf8zRI4Gwa/WxLQOz N7gg== X-Forwarded-Encrypted: i=1; AJvYcCWgisyPDoaTc64vAkwgMX813U/Y3DfiuBjVB6F4SJxZGRMrH+LQYbTxk0Rog2sULbnYEwcKRwDnNeLVM3Y=@vger.kernel.org X-Gm-Message-State: AOJu0YxxtsjCbEauV9yHnUvVwwLLztQVXIvtiNyVzYqXO0pX4rb2gKvL C5dPTbbovaRXvOQH/UtqbD7s1stZziieYH47O4Fjhsa2dIDXNDknWWYs4sYX X-Google-Smtp-Source: AGHT+IFrDGvV5858WGdycyJ2YnkzCRsAgTv/brwvViai7wsUYS2uRl7bXI1hX02jiCpLYUubqCIlOg== X-Received: by 2002:a05:6512:1052:b0:533:508f:edf1 with SMTP id 2adb3069b0e04-53678ff4e66mr11144621e87.60.1726683733341; Wed, 18 Sep 2024 11:22:13 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb5312dsm5200146a12.23.2024.09.18.11.22.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 11:22:12 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] dt-bindings: dsp: fix power domain count Date: Wed, 18 Sep 2024 14:21:13 -0400 Message-Id: <20240918182117.86221-2-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> References: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> 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. 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/Documenta= tion/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 =20 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 =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_IRQSTR_DSP>, + <&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>; --=20 2.34.1 From nobody Fri Nov 29 15:41:05 2024 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 3E9A61CA6A9; Wed, 18 Sep 2024 18:22:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726683742; cv=none; b=CPRiCj+K/umvH7/GafXrLx+Z4AybSImiUH60nX5FLPwdNZoPg/dU/kmzlcINugZSK2HNJqsqGcb4JGKWUlclcfbvxG5xyMiODX0cttSqtEGkZSpTrhWExg589pGmIYG/FS6C7lc0tNRN4Ys6KZp/vgFOd8dZDZDJf+4DG7Jv87U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726683742; c=relaxed/simple; bh=tPPolANXFudZukym9KFwXomjOeqaddIywz6B3npeFX0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=K0rAZ4ooJ6YBJ8rIrhQ9A6oBDoo553V1LKtTYptMBHytH/Dd6NBKL8BkpXTscSxiutJ5yZfhVUm+WRwKjmfDPHf9T39CrjMI924ZsmzbL0u2MFz5PZHOHRiksLTzsdWisPsjCBab7GpWxj5HZgwc8So5WeDmasBoQrb/+WP4fV0= 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=AH6Ed4P/; arc=none smtp.client-ip=209.85.208.44 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="AH6Ed4P/" Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-5c260b19f71so18556a12.1; Wed, 18 Sep 2024 11:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726683738; x=1727288538; darn=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=9pnB/66IiiBxwPue9k5AJc8T5aJ3texuVaLDQqQnrlo=; b=AH6Ed4P/Yp/YPDCCx1n6Y+eA11jaho2/0fKQk5eZucDGH66ewPeFvf5rUMb37h6bAl DNFWxSUeulsQad7h6D8CkpNfKkuSpvv3CyvJCK2m56+vYuctFXTDLgs9GzRs0hhDWnKd ohkwr+ammKqooKLsRWDOlwcz16056UTsnZnx9MqMb5qaw9l+rk7vDgqiuikK/54TMTvN 7CluxOuvsGrVF5sJNaZq1mT8BD77WFjguCTy+fNO+utILqINIeiGuvzjT06XPhWWamUO PU+821AYc/Kwj1MHWVqk7FKDyBmgptW7uNMwj76rYFIWIbkphBuy3WalppSZLmqABwvI YyeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726683738; x=1727288538; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9pnB/66IiiBxwPue9k5AJc8T5aJ3texuVaLDQqQnrlo=; b=sNi+Wf8TbpM4KiidxVlFD1mt4DN4cy7FYoHH0Rd/Yt0+zlsowhbFxtLfIiVvjxO2mk 55MilB+/S458pPoRnhcDW7R0gYUrFHlFx24BeeLN7f0HmwDW+xI1BamlXdcDavCDPW6H bHpyQJFwsmm210tyQcQc28XeSw9rfiwa2vcWFK8CL5iawi7bz+MfV8+M2Pe/jSkKE9rn qQ8hmZWi51RyeHX9k0cGx7YGCrZLatYIDWCzA9i1lBLuQhTpPk7Ro2hRQUBSt20B1gwF OUC+WX1X+pDnW53qW4QSa8arruE4Qrk6o2vcn1fJ6wkv0VbtEpeoB8XaQl3U5LJTLbQx HoKw== X-Forwarded-Encrypted: i=1; AJvYcCWLPp912sGC4/7rM7PiQmfSKAa2g3Fi3I/QYW0CvlcTt3qq3gimTQ7Xs4IYKk8yWbratTUfN+0hlV82Egg=@vger.kernel.org X-Gm-Message-State: AOJu0Yz6aikHGyIcbNoFKQtj7Zg3M83n6MfQdkI1YZJKYkXgmnpAu6zh MhZOWyCWeHdNP8l0+JCxEFdlcz2aql6RJY4/utqfEPUZ/PgjNcFL+wpIz44o X-Google-Smtp-Source: AGHT+IFLWoD9g3KIUXWE4OYaPCJDDEreIkagIcss6zDxUmRyhLSrCsW3Dv/hxMtDn3gbm+0lHG8v8g== X-Received: by 2002:a05:6402:321c:b0:5c2:7699:fb6f with SMTP id 4fb4d7f45d1cf-5c413e1fd66mr20241398a12.15.1726683738183; Wed, 18 Sep 2024 11:22:18 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb5312dsm5200146a12.23.2024.09.18.11.22.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 11:22:16 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] arm64: dts: imx8qxp: configure dsp node for rproc usage Date: Wed, 18 Sep 2024 14:21:14 -0400 Message-Id: <20240918182117.86221-3-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> References: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> 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 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 { }; =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_IRQSTR_DSP>, + <&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 diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boo= t/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 { }; =20 &dsp { - memory-region =3D <&dsp_reserved>; + memory-region =3D <&dsp_vdev0buffer>, <&dsp_vdev0vring0>, + <&dsp_vdev0vring1>, <&dsp_reserved>; status =3D "okay"; }; =20 @@ -71,6 +72,18 @@ &dsp_reserved { status =3D "okay"; }; =20 +&dsp_vdev0buffer { + status =3D "okay"; +}; + +&dsp_vdev0vring0 { + status =3D "okay"; +}; + +&dsp_vdev0vring1 { + status =3D "okay"; +}; + &fec1 { pinctrl-names =3D "default"; pinctrl-0 =3D <&pinctrl_fec1>; diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/d= ts/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 =3D "disabled"; }; =20 + dsp_vdev0vring0: vdev0vring0@942f0000 { + reg =3D <0 0x942f0000 0 0x8000>; + no-map; + status =3D "disabled"; + }; + + dsp_vdev0vring1: vdev0vring1@942f8000 { + reg =3D <0 0x942f8000 0 0x8000>; + no-map; + status =3D "disabled"; + }; + + dsp_vdev0buffer: vdev0buffer@94300000 { + compatible =3D "shared-dma-pool"; + reg =3D <0 0x94300000 0 0x100000>; + no-map; + status =3D "disabled"; + }; + encoder_rpc: encoder-rpc@94400000 { reg =3D <0 0x94400000 0 0x700000>; no-map; --=20 2.34.1 From nobody Fri Nov 29 15:41:05 2024 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.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 4AB521CA6B5; Wed, 18 Sep 2024 18:22:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726683745; cv=none; b=q8mqRMV1pAGZgJAkYNOY6529HN1kvmstjf5uHVR6TXlDjMl01L+v3ocMEcuCEesQQkoHJ4Xye1uU0UqfleyM3hHabHTx3jrFtOS3E7rxMpC+FKNURwC/zFVsb/GE3gYEB2YUdY/UcJxujbIGcdnXpwZX2gmsK2k/tOwhU/pVjSw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726683745; c=relaxed/simple; bh=8YM19QzFCM8eGgz8EZ2bT7GjdvGuC+VGDNjHEuN4oag=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=QVg/qLyOJlgswG7XMNuroNvgCuwrIcVud6UfrPiKgTOxFONMc09kMPaYXa3yJQXH+9vImRGCS4nBf4LEJIP869xlHzFvWvsL6RUfOcHHYU1I64v6I/XRSnfb6hKz5470pYAs3rW1XPVTWXp8s4kZspv/pT0OA5eMEZncczjC3gI= 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=mnXdEKwE; arc=none smtp.client-ip=209.85.167.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="mnXdEKwE" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-53655b9bbcdso8590509e87.2; Wed, 18 Sep 2024 11:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726683741; x=1727288541; darn=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=1DCE4EQe3FTB3Zd1ByKm20TKFtEumk9lprGlloVoGEA=; b=mnXdEKwECcTLJcD3v1DkOKic0J1iO8Mpior35JfYgBuqtQ+4izc0OSICPQOSHDacff bbGcDLikR6XI4itP/xvoAqFWzROEWtEbysvvtb1CLLl+HkyPuU5nQxiJKq7tt0ZEnNJe 3cOyjxPmSkqr5XRwMtRDFMD7ZSO4URDzmtLffJgO5lMvHjZnQs4VBe2RTkMzf0zrYsD2 717IOwA2CiK+xG9iVoQeCKT7R0n7KKpKTMVFG4EVPPMpsIGfNUViRKLlwEFFsNISkTf1 2MWCxrh0nyrTVwS545J9lsIeu7heZBL9P1KZRX4Z3y00DJIyEm6f1mIz6lLqwK/XBtqk H3/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726683741; x=1727288541; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1DCE4EQe3FTB3Zd1ByKm20TKFtEumk9lprGlloVoGEA=; b=Epx7ZWip642KKABW47TEHnxRM29aPdAm6qXfUdQH2+hSFPj4bkExn+LZ5iCCfevUEs l5AWqEIaLpMhIbA1x5Q8peNsBqVJAItJvf7XVi0zfBs2VaEblrggjHGQO4sFMQ98PyO6 5MEYYghCkPbraN7hc3e4bnTTMuryUQJmb3hfB3PAxevGKNibdTq8Pze5KQPGWBNKgBMX EHmtTsXbmtVPKqfppnFM1u9WLWjU80aQR8v2zlDctv+z6j4mfBfHP0hPjiEkauEVvM6Y pt2YA35ifaztSXj4t31DyMZOjX+bikF5bREtAt0R5Va7kD113REvaaWT0/rxrkeft7Xx 3W+A== X-Forwarded-Encrypted: i=1; AJvYcCUB4Qyb573VFG9xUnmhiZDm0JezZbKRTaQYjBr/5l3YTSHHio52ivUqUWk3IpzRP5SAIsjYpqcrUit29XI=@vger.kernel.org X-Gm-Message-State: AOJu0Yw2RozSRAt061yX1QmHYFSMTkyLscIjAki2vZMZJ7di34VmPJKO Sl/kVbdSGNyd9I9tmm5QAoFLmtleNdmWvanpyVuHXeEjpNRvayE0cfNPekeD X-Google-Smtp-Source: AGHT+IGEFT10GNPLQpnYd/skpk/L7HV79dsRiA8pFMtfFOceX/X7PZQXcIB8iPGV2an/mF5hnF4DUQ== X-Received: by 2002:a05:6512:3512:b0:536:a4d8:916d with SMTP id 2adb3069b0e04-536a4d89286mr532824e87.34.1726683741352; Wed, 18 Sep 2024 11:22:21 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb5312dsm5200146a12.23.2024.09.18.11.22.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 11:22:20 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] arm64: dts: imx8qm: drop dsp node from audio_subsys bus Date: Wed, 18 Sep 2024 14:21:15 -0400 Message-Id: <20240918182117.86221-4-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> References: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> 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. Luckily, there's no users for the dsp node so drop it. Signed-off-by: Laurentiu Mihalcea --- arch/arm64/boot/dts/freescale/imx8qm.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/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 Fri Nov 29 15:41:05 2024 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 D33C81CB312; Wed, 18 Sep 2024 18:22:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726683748; cv=none; b=oTmkZ1ucU+TsDvkGIpMAQVNsuquzRMEUjsXANcqKWjal5izWHI+tT9c0KYYoj53fm409028sJ9wWn6i83s1QRmpRhLWDleQwtvhy7R1DSe5856RNrvmRNhb152TsUYFL0wSuLkVKc0KQIxGCq09CTi4gYXDUXri80OM1O7Iib+k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726683748; c=relaxed/simple; bh=DCbRa/f6lAB68JZc/cfg6LOcGdUSng0Pa8LcCred/Rs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KaJUHDnVIt5cqHEyaqkGdPG2B2yss4JzUwissGQS2cgZAsODDx4vzG77Fb9krCtf5DWJ+zIV+k6DuxA+KO3qN4ZqtyEJXbhYj1h8TGZlh8OGXZvv9PABEiAYnDOCd/IHqbPmPvdrvdUF4shZNnrPOTRAhuhlr8fIOFy+VlyDBzs= 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=GRwq2xZH; arc=none smtp.client-ip=209.85.221.47 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="GRwq2xZH" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-3770320574aso5100342f8f.2; Wed, 18 Sep 2024 11:22:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726683744; x=1727288544; darn=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=0vwtyPA2l11CJb7SVjnOfGfynXGLzK7+CceW4ZxmWwQ=; b=GRwq2xZHL920ZkgCf4wCbfdX1jo00QVFM5Fyc8yUTH5TTORqYDkycv9uixkRWQ8QVO 6+aJNDPa9rkQKZOXES2W+Fsn7astu6VYabOqcH6KRvZDkQ4DujHJKodnH4/m5GvA/vwy iYA8pYSvbThp3NtlYndRbC7WANJLqP0/ahWSreT3csP0n44rFJ8MD8K6znqyVj/HUcLx WPWMgbi+SNxGeedEik1znLO7aTPZcJ8Kq3mWpJpm+BfDuNevaRk3jvgcsNSwiVWkdvVq hnvh3SLh3A6IhNJsNiv3udVY5PLqYXL/GaYiNNC448R01qEoipZL5IqUSW2Cd56fUyPP baiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726683744; x=1727288544; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0vwtyPA2l11CJb7SVjnOfGfynXGLzK7+CceW4ZxmWwQ=; b=bKMj7nE27MBXO64USYF3d8WpC2GYzwOSMtn7LCC3x4nY9YuiXTPufxSk2Om1z1Mmx2 fcjzPswoe6oqDS+O0sXQ7dJNHCN/wuNUbm6kSZ9Nuv7f4gjSN6WvsdRM6YcQZ8uxv5tl Zzwn/2f2hWsg2wnPXz/tbv1BRsrz6IwFiRdGRqcrHeSKa+y09iRcBQunFpqCXLz/aEy5 uHx894DW8ROkV8lXHLcGCXPnWNjqs0R4no1B1tDJ7Fv0oGFsa4/HKKa53jLQycHsXUas 3dXYtxb3zWrL2kGwznQ3qR3Co61p3J9S5ALOrDsPn4Zc7mf6narxmnMdxepB7GtB+RPy ZABw== X-Forwarded-Encrypted: i=1; AJvYcCXWpxX27hUQqZHQvKJ0UzML6CpMFgFiJGDpdwlIRvLHTcBLNcBAwXDdMl/W4Z7BX7gJE9Z8JriO9aftbQc=@vger.kernel.org X-Gm-Message-State: AOJu0YwFdIAM30DfmgHD2ewew6EaGBdz5MKcZZhwExTScKPEcy4Hmqd4 GBiZpXpOt3CrByTBiZZLcys3clfTaOoZiJ04JWNP4g4E36eUo4apRgDzFhyw X-Google-Smtp-Source: AGHT+IFrPlkg7pCSWwwa+h63rcteR1uLcfkEtFxNrvhuLVGMph3cB8EcAFzN/c5f2X/C6FPmS+VNbg== X-Received: by 2002:a5d:5c88:0:b0:378:fe6e:50ef with SMTP id ffacd0b85a97d-378fe6e51c7mr3605756f8f.5.1726683744042; Wed, 18 Sep 2024 11:22:24 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb5312dsm5200146a12.23.2024.09.18.11.22.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 11:22:22 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] arm64: dts: imx8qm: add node for VPU dsp Date: Wed, 18 Sep 2024 14:21:16 -0400 Message-Id: <20240918182117.86221-5-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> References: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> 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 --- 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/dt= s/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 =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_IRQSTR_DSP>, + <&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 Fri Nov 29 15:41:05 2024 Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 C90421CB332; Wed, 18 Sep 2024 18:22:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726683750; cv=none; b=QdC9dr6RPfNGQuUO0F6IifgmM23hYYeazDPkhB8uCQl/W1LFWwQ/CbW/8XMzS6tsYo6gdJHWc99tEN7OPHUwUp1fV43enOyOW2s2/c62t5vPJRJj1u/hAZwxYVUAaXrCs76Kln6MFXMb3y7pdvI07usx6zPKd1aZ4U8Fq0CE5kU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726683750; c=relaxed/simple; bh=ecm5qBuobUxfLm11/z7zon/qPnxquqho/PMLTb6i/18=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ay+V6bK9LXf7hN7QsbioEEJ/ySPIRTYgxn2Ltv/bzuEnegIU1KgBZGp2hIZUMVM+4fHmp/eWrKVTLjk2DP8IeuKp71u9j26jaTfO3yJBTK9nSwaRIdGLw2JmslaFEz7X4SfVlnBNQVP0Roesqst61wsglsQPajFe3hk0h5XcSsY= 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=mQNiYUvE; arc=none smtp.client-ip=209.85.167.44 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="mQNiYUvE" Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-535be093a43so9020689e87.3; Wed, 18 Sep 2024 11:22:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726683747; x=1727288547; darn=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=b74DjBwDaiguwxZN4WPzTGxSSIqR5dICOz1TwKaf1Qk=; b=mQNiYUvECaNFoT5Lw1ie10V8ETT74QZHyY7/QZ5ULZaJSiSUzv1EAzZL1INtDxJtkF O4An6nxZ/vfjH+NQW60TVg283IdSWgKNMNzDzhE3mQACsApDoplBENoezrgiKaNXdWN6 b+eGvB+AZVeYrn9bpkNPPcEeXM+CKZHFg4UEbNf6cEi42p1UCHeBZGvnWLN+wM+9m0Ud SY9ZQ+iaWEGqV7kQ9Z2ZfPhoD0wuVS95IdDnVe9F5FkYQmLRgv+cr/izRNDRGUQjQ1/0 FYa+n2dtKG6Utv0YSUokAhSHtcLQPR8vcjO0yLVYFYT/6zllpu5HSA4QArWQgSiD3xp4 6Pog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726683747; x=1727288547; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b74DjBwDaiguwxZN4WPzTGxSSIqR5dICOz1TwKaf1Qk=; b=vVds5u7WFaJe7NxzISiiB2+o9HHmPNKKO/7fRJ+QpZK5pMAOOMlF7MExX5nxIpgPOW 6yg6aouclwN6ag71mheQYPMlP7/eD/rp0J4JT5QzPB0D0cMim4HS33nNc/TueBAgAK9D C3krCRWVfhgesR1dSRIHVRuvVJsQynVyL76g5Obi4hAdb9JpeMZ24sPbsbDbL/bxY88Q 7kBljwlybzbO1bn4YyAfEWAoMmJXAFi+BbIVd+NhLnIMu6gOvqFHpdwHlcypKufinET6 7Oc9LYm4QZdfr1I3E1T2zuAR0ToKcwWk9GcSch+eZr0znsz5li6KEIC5T/P9KI8P28l6 eQvg== X-Forwarded-Encrypted: i=1; AJvYcCW1ofWJrBKE2ySq8OyMUsuCYGrMRwkduAm95ptXeLqoZI6KpNyPhYZsQHRKSQqFBWMaPZmZQUc6cFar6zo=@vger.kernel.org X-Gm-Message-State: AOJu0YxZTaQGJizzTR7qMJqtNAHMJDXgEQH0apwTh34h+VD3Gp8Z6TMg 3HWxQExefrAjp2Vjom50+hCtjdL0qS0aQ+hzW4Vd1A3Rug17rfvL X-Google-Smtp-Source: AGHT+IEgDcqWPZk6PODNPj/XhOHH/yFVmMsQL7IfvquOxjcmWF5SBcsMwOEuGAebdORj5/r29Zkppg== X-Received: by 2002:a05:6512:2345:b0:533:4689:973c with SMTP id 2adb3069b0e04-53678fbaf3cmr10878410e87.23.1726683746810; Wed, 18 Sep 2024 11:22:26 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb5312dsm5200146a12.23.2024.09.18.11.22.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 11:22:26 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] arm64: dts: imx8qm: enable dsp node for rproc usage Date: Wed, 18 Sep 2024 14:21:17 -0400 Message-Id: <20240918182117.86221-6-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> References: <20240918182117.86221-1-laurentiumihalcea111@gmail.com> 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 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 =3D <0 0x90400000 0 0x100000>; no-map; }; + + dsp_reserved: dsp@92400000 { + reg =3D <0 0x92400000 0 0x1000000>; + no-map; + }; + + dsp_vdev0vring0: vdev0vring0@942f0000 { + reg =3D <0 0x942f0000 0 0x8000>; + no-map; + }; + + dsp_vdev0vring1: vdev0vring1@942f8000 { + reg =3D <0 0x942f8000 0 0x8000>; + no-map; + }; + + dsp_vdev0buffer: vdev0buffer@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