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;