From patchwork Mon Oct 21 15:52:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13844376 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 07535D15DB4 for ; Mon, 21 Oct 2024 16:03:13 +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=T8NU6xaU+/gHYs3WP937bfG8Ssm1Eyb+DSVQQgrlKdA=; b=2T0SWQZleG1gXhqI8L3cmXUzvl 2Y5+O0ktREghJEdN4ndkRxeD+CVlkw6msmeTarvfS8VHHECcFQtAyrHmrJ4FxeM9ZOk2cJw4n2FHx 4dHER8r/4B275kaU8FEi8l7pOE/to3Jv/svFj4UovWXkFnRh9n1dxnpBhw/bDJKZ53ohCx81ZNHRa kkVDiwHzFw2Jmobu3KoY5hSpfupydNLjOJsuIucvA3xtpw9kxFVjwmFnASEXAnEa6PvEJhltfw/Q1 OSPhV8ndeSapOmDgfUtZkrCP0JRKx9Qe78HfRe/LfWqodtZaORo4mcEGtUAitNZn2xR+pkBPzNUSU IQiXO8DA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2us0-00000007tpn-3gVl; Mon, 21 Oct 2024 16:03:00 +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 1t2uiP-00000007rzy-23lB for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 15:53:07 +0000 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5c94c4ad9d8so6048931a12.2 for ; Mon, 21 Oct 2024 08:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729525983; x=1730130783; 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=T8NU6xaU+/gHYs3WP937bfG8Ssm1Eyb+DSVQQgrlKdA=; b=F1vqsgbZD6EsK7FNZpPhL+8npSx0/rfPy85d6PCH2dgCPDU1XPBvybJcbTkMiz7FjH od/zGuzMtyQGl0/756zV5gIsq2gGXA7TAffp+7kUAKnwBJAOfzPfftZBv/cePU3j2Ca2 UafuAM8lNWDdhbFO0R40sRXdypXpRJQu7gv8gs/fm+2ihT+BHRctCfVP1SN3+R8mgsUz O2WXg4OParIURR2JpWDshYDzaf5hQVti/hB5HZ2CwKvTzv1Yu8h2Req2G0mrJ7IOOiTh IRty5l2PtVjBrmjvjS4ZdkF5vKDBmeFV2FK2rhsFs1QYeM7DXVgEG6cCyj03cjJ0TQFP ygRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729525983; x=1730130783; 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=T8NU6xaU+/gHYs3WP937bfG8Ssm1Eyb+DSVQQgrlKdA=; b=cX3xc2Ar41Ma2saegAdO3JWVQxx5aFx29qWfvoDHZxNsVHgmXw8tDq0LzUxKIm1X9r FHagO9jvxK845g5HSyv2mcfUYLkv1mqRFQPsJH3L+R+pGJ9Vm1wKo8BmMM9TCrWBqOUX TkeGbV1+6hgdCtjVfRqkf0tVOpn1gpph74Eb8dd4iHcx0is9+Jm3iAv7bU74X78EQTho /hOXgJZfJm+661inJiBbHoEsF41FpzTFyFGvvG1wylSX3NV6oVM5bzbcEMfrlItOlC/g jB2UCp/JL5TSLq/l8Q+H+iTqKNKL9sJjuVDdhDXRB16MFYrRRfNjbY1QuH5dP0Ecn20P vIEw== X-Forwarded-Encrypted: i=1; AJvYcCWJM7p3GuO3JSjHsBZT4EqVC7dASET9lkDlEVp5pSTYA41Lxs28Uu4jQQut5q2AuZbljFeRbPnyZ3MtHuvZiVPx@lists.infradead.org X-Gm-Message-State: AOJu0YwRogA7zDyzF06d8AHn+MjCkUb3lcCcXCoZrMFFaGIfc01S6buM c1Tban3ZnVD73r8BGCRD8aAkC41ZM7Tm4LxESdhX2lhU/fJWBiKh X-Google-Smtp-Source: AGHT+IE7VmTplSzaBge5LnjVsaDHPckhTTbMQH/FFB5snlb+eRZHFk6ZJLJ8QNK5VZw5GdOB9/5Klw== X-Received: by 2002:a17:907:7ba0:b0:a99:caf5:c897 with SMTP id a640c23a62f3a-a9a69a752c5mr1147624966b.20.1729525983134; Mon, 21 Oct 2024 08:53:03 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a912edfd0sm218614366b.67.2024.10.21.08.53.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 08:53: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 v4 2/6] arm64: dts: imx8-ss-audio: configure dsp node for rproc usage Date: Mon, 21 Oct 2024 11:52:17 -0400 Message-Id: <20241021155221.112073-3-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241021155221.112073-1-laurentiumihalcea111@gmail.com> References: <20241021155221.112073-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241021_085305_583759_D89B2D16 X-CRM114-Status: GOOD ( 12.95 ) 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 '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 { }; 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_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"; };