From nobody Wed Nov 27 10:30:59 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