From patchwork Fri Oct 11 15:04:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13832644 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 49350D0D7B8 for ; Fri, 11 Oct 2024 15:10:10 +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=R9RR/LNdmVk5RE6b8H3OC/NCxgwdW3Avob2obi0lAvg=; b=xjZQ4cfukEPsHbQw9UT2KLBkNe 3bytRfeIRMvuLvCeDAOAihvoetxsnwBx+F3WO2AXb3afuGes0wJ5oCl2tOLmnPGyshOYsJXvLxTFG 0N5WDHsZ42digkp/HA5Epa5ialgLU895iaN7TzhagupTAZJTnpL7vRnCkl5GK7+N14lAIN8NbyH6t l4zN7uzR2e7pl5hFLwr9veSAGiwRzlVd/lkaI7SAiCW8qrWAfzR0Iop7QlF2V3+6JsBe/orKB6112 x9e+dVOcmDTg9U19GhV8MGjEV0QI9wh/JaALuzw2E3/gJRh1mxop+gpThA4IB+wQF0XbLETsljOaR 14FbPiTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szHH8-0000000GjgG-3QUf; Fri, 11 Oct 2024 15:09:54 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1szHDF-0000000Gj1b-49SO for linux-arm-kernel@lists.infradead.org; Fri, 11 Oct 2024 15:05:55 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a993f6916daso366340066b.1 for ; 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=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=R9RR/LNdmVk5RE6b8H3OC/NCxgwdW3Avob2obi0lAvg=; b=gqm93gfDhSF5wEZZMLQdxyMb3SYxPHkgGA/+7mPIAROoMIKA4uuBB0lDw6aw+zZb17 +RaWFgd9FJEU0w8vJEj4obXcf/kp+Olbv60ZG4pa28PaTqwYhl7MyfTbTggzaAmJlZax 67DWBFcXYsCOr7VAiLcOa+dBekYVIAhm3yR0gm8PCFH0706T6kDu8Enw+JpEdq1FHkav 681X0wQMrca703bc710av4NdbkG1zVb1iDwZ+Lwuo3ld14Pj0lwQe1rLe8wrj1tjZd// 92DG/E9hOaq7kv0eEtzxhtb3cZ55UDlLUDhjUcDCbdiyU8aFqHkQxgbTiolF8lQ7zjrx WAAg== 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=uIjOu+4CrqF2y5+JysOjRE9o/bjssD20fg8GRQuln63/VZSzfAoiboGX5BTRI/ZdEM UlRIPnW27chYoeVUCDIaZidG1NNLS3W8/hcczK8Sf/0nwJMjhfozdNzEOn5XRvEc8D0E Lyeq5Jt2Z5Fw+NS5A7wrATA7GivMd0T01A2Zgo75Tv4u/mfRsNtId4BmHnZg5DH/71pa vkDMeXZXnXSLLDWlGLxHvAMh+PVCBHOWSadraZDSXMpIVzEotvBP3VjppzG/KaTkc1rx uT2Ui9aEBZYpG5arr1f0HRmzYfADzm4I5LFceydGY2cwbI8DvUkf3wVfRuYGLzqNmh7E WXHw== X-Forwarded-Encrypted: i=1; AJvYcCU2L0jGVnjDWKYS8tm+FkkJ34i/Kx3CmlsAlPj0VzguHIuEx1ovdoSg9Io40F2bT2oIXi4H0f32EK5DshDdtREl@lists.infradead.org X-Gm-Message-State: AOJu0YzH7hdymle4gjcCB9tJp8IEuW9xgyz6z2KCi8jOEgxfAOszuCeP MVB5nYjfbDVz5igWIro+HajS6TFLkaYQ/Kw0+eJqSGZD9gowjBWL 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241011_080554_053745_557A39FA X-CRM114-Status: GOOD ( 12.60 ) 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"; };