From patchwork Mon Oct 21 15:52:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13844373 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 E33C8D15DB4 for ; Mon, 21 Oct 2024 16:01:39 +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=LxDxKHmPqECT4R1a7bYe2JPLBE82BXjHNnePjstN3G8=; b=BeZ/hGpAwlJFxyOu/LbmUz5K7h 1dIgqjkIZSPuSnWNBZOHt5hz3chx7Pyl5v06DmnC6XP9K2cR3cpYMdg7XoV3q3RMPVjjzUT3jJZcx 4eOe3DmHSG+2V9g5h97Rwx6qFd5ckfubebtBM1XxBIuXoCZPO8xAzsffbd33LJ68pfOmELs6S8BKH 0rEUWDbmcAiPHzuC1mp8UbTu0erHp15v3It7PCKIWTOoYdW46wywpteph30EkfrCOI2XJJmUddo81 i2w+Ngw7YlTn1V+9JoPdZcqTa+A23UN8cNeAE93VFUuFk0lz+lTc2UkCKi1qgVMYFTThgsHFNGGdF QRthAS9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2uqW-00000007tUR-2rMJ; Mon, 21 Oct 2024 16:01:28 +0000 Received: from mail-lf1-f51.google.com ([209.85.167.51]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2uiO-00000007rzW-1804 for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 15:53:05 +0000 Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-539f7606199so5118181e87.0 for ; Mon, 21 Oct 2024 08:53:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729525981; x=1730130781; 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=LxDxKHmPqECT4R1a7bYe2JPLBE82BXjHNnePjstN3G8=; b=aK0p8IY39IR/8E8/6LgA9zCDgy3qH73XaVcPST8DXYpKCNNCVGgSi/ow+sHeNYRkD1 wgwPG3bQ3xiweqQRq1O3fQTpgVGaYkSPro++4mwHudaa26iXVaNcKYtbwImb1TxBs+jr 51AW3J5TvtOkhy+MtVZ1iVOeVP7e4Bu1zyd2ItmV5EaAG7qKXyuXh+JtbDBPhfbPV6Zy 2tnn0CB2yPKOtFcp4OPJN1rn8TSb+IZ7nZWYr3plsAJ51aHsGpNrgzx+NrUvw5M89lp9 YCcm2nZV35xSu7A2c5n+tRmYzB5gPiHMJJvpn/b5/uWbP4id3S4857wNvE/x7uI6FYVG Wsrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729525981; x=1730130781; 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=LxDxKHmPqECT4R1a7bYe2JPLBE82BXjHNnePjstN3G8=; b=vcmg/0OuhuffLz6CMts+aB+D8DG5M+mV4HY1oalkv9bMP2OgRmGhdw1FmHgcHtGbq7 N6TiRwH6/vq08vVlw7jtZiRv53obEf1shFHbMh1XjMpJflcK0H+iNN6OR7UePK1hYlSn cHxB2H7F5f6wawTE5+2BCoe8P0mufOCEIWHIuaSd1/YlicStzW3GZKCOkcJBssWWf2yO YGBXCS0Ff462yQG9/9etpnUH3GdMJTgynVgIgbaLKwFPghs7ax4k3SvH3jxBIVNQk17p /UfNITCFugMSmhj9ZK1B6NF0XNrnM/iiS9GoeNiq0FZY107FuG12yXYArDw+ycEbsPVm G+Ow== X-Forwarded-Encrypted: i=1; AJvYcCUhuGpG6K0ExZFn7zlQSmbEeIwOeNBdRkz/5hINWWn4+Tdxx0nuzgCfu7nPvq5NQMPsYGnE2mCFJBzA58cJsOoS@lists.infradead.org X-Gm-Message-State: AOJu0Yz56T50jnxgcTWqK8TjPo7iNd4P7lCdCmX/Le7mAT4KjB1Zq7ut 6h1+Lfu8KIW5Fz79Rcp4HSX/IoI6FDoG3Z/wOWIon1G1pfSGR7U6 X-Google-Smtp-Source: AGHT+IEOvF+I3X7eV/ZzXFntHrBLK7yKO+DyOsij8aWog9rupEjDGCjyG3yo/YkcA/eyGDm3liIWaw== X-Received: by 2002:a05:6512:318c:b0:539:9490:7257 with SMTP id 2adb3069b0e04-53b12c04223mr241778e87.30.1729525980930; Mon, 21 Oct 2024 08:53:00 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a912edfd0sm218614366b.67.2024.10.21.08.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 08:53:00 -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 1/6] dt-bindings: dsp: fsl,dsp: fix power domain count Date: Mon, 21 Oct 2024 11:52:16 -0400 Message-Id: <20241021155221.112073-2-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_085304_339296_81561E26 X-CRM114-Status: GOOD ( 13.19 ) 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 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 as its already attached to lsio_mu13. This decreases the count to 3. Secondly, drop DSP and DSP_RAM from the count for QXP. These are already attached to the DSP's LPCGs. Thirdly, a new power domain is required for DSP-SCU communication (MU2A). With this in mind, the number of required power domains for QXP is 2 (MU2A, MU13B), while for QM it's 4 (MU13B, DSP, DSP_RAM, MU2A). Update the fsl,dsp binding to reflect all of this information. Since the arm,mhuv2 binding has an example node using the fsl,imx8qxp-dsp compatible, remove two of the extra PDs to align with the required power domain count. Signed-off-by: Laurentiu Mihalcea Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/dsp/fsl,dsp.yaml | 31 +++++++++++++++---- .../bindings/mailbox/arm,mhuv2.yaml | 2 +- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml index 9af40da5688e..ab93ffd3d2e5 100644 --- a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml +++ b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml @@ -99,14 +99,35 @@ allOf: contains: enum: - fsl,imx8qxp-dsp - - fsl,imx8qm-dsp - fsl,imx8qxp-hifi4 + then: + properties: + power-domains: + minItems: 2 + maxItems: 2 + + - if: + properties: + compatible: + contains: + enum: + - fsl,imx8qm-dsp - fsl,imx8qm-hifi4 then: properties: power-domains: minItems: 4 - else: + + - 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 +178,8 @@ examples: <&adma_lpcg IMX_ADMA_LPCG_OCRAM_IPG_CLK>, <&adma_lpcg IMX_ADMA_LPCG_DSP_CORE_CLK>; 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>; + power-domains = <&pd IMX_SC_R_MU_13B>, + <&pd IMX_SC_R_MU_2A>; mbox-names = "txdb0", "txdb1", "rxdb0", "rxdb1"; mboxes = <&lsio_mu13 2 0>, <&lsio_mu13 2 1>, <&lsio_mu13 3 0>, <&lsio_mu13 3 1>; memory-region = <&dsp_reserved>; diff --git a/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml b/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml index a4f1fe63659a..02f06314d85f 100644 --- a/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml +++ b/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml @@ -197,7 +197,7 @@ examples: reg = <0 0x596e8000 0 0x88000>; clocks = <&adma_lpcg 0>, <&adma_lpcg 1>, <&adma_lpcg 2>; clock-names = "ipg", "ocram", "core"; - power-domains = <&pd 0>, <&pd 1>, <&pd 2>, <&pd 3>; + power-domains = <&pd 0>, <&pd 1>; mbox-names = "txdb0", "txdb1", "rxdb0", "rxdb1"; mboxes = <&mhu_tx 2 0>, //data-transfer protocol with 5 windows, mhu-tx <&mhu_tx 3 0>, //data-transfer protocol with 7 windows, mhu-tx 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"; }; From patchwork Mon Oct 21 15:52:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13844377 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 F3A35D15DB4 for ; Mon, 21 Oct 2024 16:04:43 +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=Hh7X0fydqIufhtd8PZzP/EIASN+FGLQT9ALrXUwVIA0=; b=q0mvSu+ht8v7UhqBO70DJXh8tT qDD7yICWY9hshQ3U6Q9/F7im5Treqp40UNH7OsI0Wns4L/s+BPdOm0Dg5lmAuHODoxGP00InFBPo3 S7Ts7jqRNvTNFyNuSrD/0fW2A2WewQ5U7xpiqX/nV/fz942w21tNqd1xemu8pjTdNUimA8M7EJAqq c2UGbQ9PV640FHZ4FmdK0WrROT2G5m3XPU09vm/ZM1ldUYYSfSSrRr5rJWbc2nk41PGA69A4GWRva b6eN6iWSE8t1ppHD3FMpcA2MHa8rN66ytGFCMF+mWsToYHcHe9ZwFTsnpFTAdZHyodNfu5CK7sbh/ xSxbgIQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2utT-00000007u1w-3Z3O; Mon, 21 Oct 2024 16:04:31 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2uiS-00000007s0y-1rjL for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 15:53:09 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-539fb49c64aso6470024e87.0 for ; Mon, 21 Oct 2024 08:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729525985; x=1730130785; 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=Hh7X0fydqIufhtd8PZzP/EIASN+FGLQT9ALrXUwVIA0=; b=aXVymC/rFwLnzbniQyf+7b1bCAFLcUMA3DlBqsECK1ZTOB5y+mkN8U98zTi8UlMN3r pezW96V/qhguYd1owqqMMTv2oxBbh0x373hJDepwlzlT59aApMc1EAcMY8zIOk00PQPm GtlJ1aCH8mYJBvo1yRv2MMwthzzTe4EMKcB80QRvgQ9xEVEpszepbLPa2txb6O3aNPVV FZ2XWVrNjkcYeCZakbUscozMPfCvXDXmAXG1tsNI0TtVgojSov48+Q3E+bQF0Q/39W+B oE6J/liDJgFeW1PVxHRv6t8mN9JbKBQyk1pIm20ncxPsv4EspyboQnR0u+6jLtPZ4LTW yhbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729525985; x=1730130785; 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=Hh7X0fydqIufhtd8PZzP/EIASN+FGLQT9ALrXUwVIA0=; b=bEdwItxe9De9YkW0PhMcFOx2gZleZ7s7CWkaECPDIC0VrHEvM8MFX5M3/lw2Dwv2bA 0pvIW3uXX43rQGVgPRjR9Q/DLweWGXOUOyxkkAJAQsrtMEmsVcYUO78l3GHEBKPvI0wJ v5qtvwYorPTKccIEJAjeKCsYC3B1aWbYWmiNZex1Suhc/H9oJCst2XuneLNfF/Or63LW 3xt1PJZicb705MY7/xLgzFFWNdNMKnc/0Zps9bDIGCSm97xQEgWhpaLZa9JYeKE1RJec l6qMDjcV3cKdD7UIUYHkvF7YbaaB2mw5whGGSAGo0KiPd0TLfjtyNCVHIbdlFuFHU+pP cVnQ== X-Forwarded-Encrypted: i=1; AJvYcCUo7rgfmURy7QXjNHwP0NFKHNEtMJlDP1fNTq/WXfvAfi7qdTHJLdLDBCEjAjzGZbrcnJ1mqmm0b59B+tpJ0Nor@lists.infradead.org X-Gm-Message-State: AOJu0Yyj2p5zk2iee3nwbav/MoFk0TD/0RANlfVrXM5j6fVq0DW6NoU7 k35R+bNqOtZZc9HMokhVoFA7x3RX0HxwY1txOKGNmMilE8NezksY X-Google-Smtp-Source: AGHT+IGYrgG25Z/I0gGtpppxwAYbzIVLhyYw2kd6/eNRNxaHCAl3YECg5/S05qSKVfqTqP9ANYFRZg== X-Received: by 2002:a05:6512:3b20:b0:539:901c:e2e with SMTP id 2adb3069b0e04-53a154eb6famr10055650e87.58.1729525985072; Mon, 21 Oct 2024 08:53:05 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 08:53:04 -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 3/6] arm64: dts: imx8qxp-mek: add dsp rproc-related mem regions Date: Mon, 21 Oct 2024 11:52:18 -0400 Message-Id: <20241021155221.112073-4-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_085308_510781_3527BC20 X-CRM114-Status: GOOD ( 11.37 ) 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 Add missing dsp rproc-related reserved memory regions and assign them to the 'dsp' node. Signed-off-by: Laurentiu Mihalcea Reviewed-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index 936ba5ecdcac..4c4e71d39bac 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -21,6 +21,24 @@ memory@80000000 { reg = <0x00000000 0x80000000 0 0x40000000>; }; + reserved-memory { + dsp_vdev0vring0: memory@942f0000 { + reg = <0 0x942f0000 0 0x8000>; + no-map; + }; + + dsp_vdev0vring1: memory@942f8000 { + reg = <0 0x942f8000 0 0x8000>; + no-map; + }; + + dsp_vdev0buffer: memory@94300000 { + compatible = "shared-dma-pool"; + reg = <0 0x94300000 0 0x100000>; + no-map; + }; + }; + reg_usdhc2_vmmc: usdhc2-vmmc { compatible = "regulator-fixed"; regulator-name = "SD1_SPWR"; @@ -63,7 +81,8 @@ sound-wm8960 { }; &dsp { - memory-region = <&dsp_reserved>; + memory-region = <&dsp_vdev0buffer>, <&dsp_vdev0vring0>, + <&dsp_vdev0vring1>, <&dsp_reserved>; status = "okay"; }; From patchwork Mon Oct 21 15:52:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13844380 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 22406D15DB8 for ; Mon, 21 Oct 2024 16:10:20 +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=sTflBq6Wu+WzGzt/MtvhqqnQ6l51cdQmFA1c3BjJmYU=; b=JlnVzNu7PqiYs9hoYTmfafhsy1 c3O4CNJipyTNfH2MOJ08aK5IpKdWYeP7Y2BGy+n6hG/CIzUdoCkeittwNvJvhrmk77jOejGfJb9AY UbR2LxlngHd3qdauwzmVvF4Gq0si8E5ugRPrSM/FJguNPcuD7k/FVOgWuhtvxYm1kA+Ogi+4v3VzN 0GkwY/LyerV9RXANEw0wPDUmEg1BbKZMfXNdom+VP7Ih54tmdOzl00g5ONT2cDMvF+wAhLRrFnDZz 2wrkryLFALaw6ous/Efj/dE0mw7Oh48n/4Uu8X7cJ1N9xGf/fw1oKW3WbM3CGFyU69A577KaDYWl6 e3/moQnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2uyv-00000007upt-3hOQ; Mon, 21 Oct 2024 16:10:09 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2uiT-00000007s1U-34al for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 15:53:15 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a7aa086b077so539741766b.0 for ; Mon, 21 Oct 2024 08:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729525987; x=1730130787; 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=sTflBq6Wu+WzGzt/MtvhqqnQ6l51cdQmFA1c3BjJmYU=; b=Waqkck+N6sMvKQWEK/1BJxAOaSa/w1jZLjAl8PMAzdZKA2YHNixWWV605WTPrZsAIp 3bJpdxSykois45C5TWD7iifzRpYa6lT6xaE/725HzD3R6/y/GTKl2K0PfoRumMOszEAN dsA1FqavA7xhKVXe6jYBYLBhYlXbf+FSA3/35vg+7SNrE9jARdFhHA2z/Re73FKuDaUD IAOOEQ3fuRD49RZBNJfcRpv5KhZg7OKTScx0xdKrWbsirLCiRHqyD8qzQ93dRvM/vghb xi+DnjNZm3tKs0Hs+BeAKxA+UUb8PZwK+f7kVM8wTm3QWDf3Hwf1nscAvss7it3734QE RxIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729525987; x=1730130787; 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=sTflBq6Wu+WzGzt/MtvhqqnQ6l51cdQmFA1c3BjJmYU=; b=wUXXL4dyftDM5B2AenR7rmKAiA4n2WLh0M+twU9M4MQxTOI5+oK94mzJO9W3qWbF6g ALq+WYNjX8uJ54sE0yFX5eiXbVsPBTY1tIz9gz8Y22+7uXh++p1fNjMKJ31opQRRX4uq gFZV1GTABVgdoFfN3B8uqhs0p+o1aU5YcUuR0mGV1wulGBb0ROuo2d+SaQiaCxKwL1wt iXCiTpnzmN5Vbu25I0oAeGoGnOMPWQKResdXVS3uwZDSITODpBOYVDrkTaL3FLJGUJom lGorFSgNCZ/30hZKbD3CMShIBCChWzbzUcsj0GHxwIRMCJ0IxyUzzL/HUBXZzdbzCIQt WZFw== X-Forwarded-Encrypted: i=1; AJvYcCWBSX9vutlLgnDEOSnKjERSL0S0y/R1QAtRFWhr3H+u6uO21ODDctP2JXU7W1CcX5tgc5sV4Ug5qtqFB7iwloM0@lists.infradead.org X-Gm-Message-State: AOJu0Yw93jlLcHRG7LRmmtyWY38KQwu+ao3A2c/jndt7JJgO+CcgAyFJ YqpdOXSSciGX5l9h89bdZPdkE00MQu6lJXuRUhwMWOGhryF+2o4i X-Google-Smtp-Source: AGHT+IEChIjZGjoCGqr943QI0nBxeCsGg66mphofROWuAzvsijseO6Jj5mGOXrTZJY/QOqHKNBN/6A== X-Received: by 2002:a17:907:9725:b0:a9a:3dc0:8911 with SMTP id a640c23a62f3a-a9aa890a26fmr53497966b.16.1729525987013; Mon, 21 Oct 2024 08:53:07 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 08:53:06 -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 4/6] arm64: dts: imx8qm: drop dsp node from audio_subsys bus Date: Mon, 21 Oct 2024 11:52:19 -0400 Message-Id: <20241021155221.112073-5-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_085309_802437_2CAE880E X-CRM114-Status: GOOD ( 11.23 ) 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 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. As such, drop it. Signed-off-by: Laurentiu Mihalcea Reviewed-by: Frank Li --- 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/dts/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; From patchwork Mon Oct 21 15:52:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13844378 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 C95E8D15DB4 for ; Mon, 21 Oct 2024 16:06:17 +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=2chh1gFajejKZHrarLEBUexr/8trAcrKkIwoVI3Z4qg=; b=lTPhbBmd91GfWh5bzadxboFUJs xMNLiD8iRtsC23vSsKbl/HXLBt3OY+QCAvrBMwOXZRwyEQrn4FLNxw4a1/b5UecPHFlnO/5zMa955 iDtw89IKm8lW6MBThZzHmL+YiHNDxWvocj2eoKKG63ZtqruCOyupRpmvDI5vNbRGwSogtwnr+awjt co09N/0KlvAat0eI7nwHDY6DqGarxOc6EgmClcgkJfN6r6hw4L2GJG154UB4H2a1CvqVFT/5pYYMr ZuHE3Jq4bHoEWxG3kMFMbAGM5LE87RWHH+S39XT3f8Njox73M3ACKRB/qXrFWzw7h1t6x9s1Zfj1K t1cuKubQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2uv0-00000007uM8-06G3; Mon, 21 Oct 2024 16:06:06 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2uiV-00000007s2V-2mb0 for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 15:53:13 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a99f3a5a44cso540278066b.3 for ; Mon, 21 Oct 2024 08:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729525989; x=1730130789; 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=2chh1gFajejKZHrarLEBUexr/8trAcrKkIwoVI3Z4qg=; b=Vhk4IjI75hmWRzGgaQG0ua7ya53mupLZ/VyTUYL52cm3LrKJgufLKH9uT3kEL0VGCc lt0za9W1SfhecaouBg+pwvFTxAMmvRoXRZaWFtscmSKvD0yH2FK2N5VcfDaAGxRbNvun Gv2CF/FH9y+drbiW4u95d2VJh8mofq8fgEkT6ITG91K6luL7r2lFtDbSOUmj6rzLkkaB swt7v6AYKv/PPogxOxEBupTeWVYRgLW0M+SB9ZgWtQ0JQR+faZ/WWgJLXMckYgkmx79t a3tCZ4laoo+zCL4jFQxD/15ZzTNxW2A5sizdH8hll93kjGjvU7x/RDHqU3iLoCZQ03Kj FQeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729525989; x=1730130789; 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=2chh1gFajejKZHrarLEBUexr/8trAcrKkIwoVI3Z4qg=; b=UBJVr8NaO8Qn3dcM5ZeVRqonRLfiLMuMZNof9/NUPJV7MVhF76mC7zE8Jwp3++HSOW zufN7HeWQvzp/q+59uHKoAqu2v2cw9Lc/O06c+ggwG6mMguj3zsxeDl+xqEW61evXoqq 2etDn7KM9nWMulIWYiPAuHdq3XehtiH+k+NwofnTiqg5lpLcIPxOkYVzV88ahEjdSAM+ WRR88HO0GHa7IttcMharafsUC06T7uLHXAN96/yFFKP6scySYb8iDfZS3atfIXJqfAQy nx7kaBXLtrg2C/Qb3ZDBN36h51yu4+JHEHzQIdzCL//MTWCf8uQGc+gYLZv2kwLVhOy9 AXJg== X-Forwarded-Encrypted: i=1; AJvYcCUAybW6pmu+XmwgEVkmBnCvt86cLKGfz8xNKLflZv2mGu9yb5SiPHG0esOv3EodxLt1tDYGGORFTbjC9oEmhAqO@lists.infradead.org X-Gm-Message-State: AOJu0Ywb4QyOQYtnFT04KlhY4t5yt76U86fksyw2POJ+DrOElYe8hpeG aCDQBdrM5ASva/4hv+Vp0Ike9zJDP6dD2whgkDAMTr2dhW4bx1d8 X-Google-Smtp-Source: AGHT+IGakfEy8rOuT2uN5Y5ML3kJAkTNrahvSRBkdLnfVpcFg+EpcKzRgNgLvMofjovBFMrKtZNDzA== X-Received: by 2002:a17:907:9628:b0:a9a:e9c:1d8d with SMTP id a640c23a62f3a-a9a69a75087mr1048668566b.17.1729525989094; Mon, 21 Oct 2024 08:53:09 -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.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 08:53:08 -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 5/6] arm64: dts: imx8qm: add node for VPU dsp Date: Mon, 21 Oct 2024 11:52:20 -0400 Message-Id: <20241021155221.112073-6-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_085311_724090_37868664 X-CRM114-Status: GOOD ( 11.40 ) 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 Add DT node for i.MX8QM's DSP, which is found in the VPU subsystem. Signed-off-by: Laurentiu Mihalcea Reviewed-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm.dtsi | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index f8b577ebdbef..abd7cfd9a6c2 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -581,6 +581,32 @@ mipi_pll_div2_clk: clock-controller-mipi-div2-pll { clock-output-names = "mipi_pll_div2_clk"; }; + vpu_subsys_dsp: bus@55000000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x55000000 0x0 0x55000000 0x1000000>; + + vpu_dsp: dsp@556e8000 { + compatible = "fsl,imx8qm-hifi4"; + reg = <0x556e8000 0x88000>; + clocks = <&clk_dummy>, + <&clk_dummy>, + <&clk_dummy>; + clock-names = "ipg", "ocram", "core"; + power-domains = <&pd IMX_SC_R_MU_13B>, + <&pd IMX_SC_R_DSP>, + <&pd IMX_SC_R_DSP_RAM>, + <&pd IMX_SC_R_MU_2A>; + mboxes = <&lsio_mu13 0 0>, + <&lsio_mu13 1 0>, + <&lsio_mu13 3 0>; + mbox-names = "tx", "rx", "rxdb"; + firmware-name = "imx/dsp/hifi4.bin"; + status = "disabled"; + }; + }; + /* sorted in register address */ #include "imx8-ss-cm41.dtsi" #include "imx8-ss-audio.dtsi" From patchwork Mon Oct 21 15:52:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13844379 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 75C68D15DB6 for ; Mon, 21 Oct 2024 16:07:48 +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=CuD770AfqfA3+1we34OBIdyNk7AWxBeNDLvWt4wIKKM=; b=su9+YDw+axUP+BEGgtxkGgdByb dRyHM/suCtHc7jsE4R7ZJk0pcxhx6mx8/WocpqLQdVkzAYIeNsyzWftGHhC2upFycHi2CpEWvGXvc 8BEwMVgJVvpkB2Hp3ImP00i/mcQMja+DzfjIE79tpX2tPGadmky5qplt+6svhu3q9poFl9I0+CSq4 +ocfD3E8rd90nt6QheqZ/XDgsDgRekKXvAs8C55GYkMbudRKKkR7k7YVgno2239y8AzBrWV56xUik 5zRuK1bfOBLP0ibgndm2Jp3TnSGCiNDHxY6bSbeFbj+F0fYQMBQ9VVmqsvBZ2MSoJddIlB5D7I3Xx FIObUsMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2uwT-00000007uUw-1EOR; Mon, 21 Oct 2024 16:07:37 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2uiW-00000007s30-40Lk for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 15:53:14 +0000 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a9932aa108cso680870166b.2 for ; Mon, 21 Oct 2024 08:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729525991; x=1730130791; 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=CuD770AfqfA3+1we34OBIdyNk7AWxBeNDLvWt4wIKKM=; b=CBuVmTBrZ8BTmHeRngZR7CnMlb5HHY8L6Id9bsJL4visX2o5Pge68bnh8Y0zRIgFMi HOMJmbyS098oPoTZyxpa71Uqdjz7bL72A/NLz6l/ZWIUOupM1oO0EcAqvSysU60c6m5h iubEmYE3YxPYgJpXbuesaoMFcpvHstNyLFlCY4sUiRiFHY8vQbXryjo+SXgNVwOIrOFH FCsoyWU6a5uzOfjqZ/xF4xO1e3tsZZK2B1tzs6yqYzeHn7AqkE8oeziPgFGlXS4NqP7b nuTYjyRl4ujZ0lCt9vqjignFseWubx8tm48UBljH5tY7ijkocp2n/lMr51Q40wgQlTzx 3f+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729525991; x=1730130791; 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=CuD770AfqfA3+1we34OBIdyNk7AWxBeNDLvWt4wIKKM=; b=EgG6XU15iJq5wEoGRZYkXqEnzRWNlNhVRFSD0oPX6YtKHFECTHPezqCbxh4O8mzbep /zWI+NviWQqvdObwog0Fg8x5eiQBKSat0J8KXXnbitK7pxB/znQYryY98ExFp/0w2jP1 C8xGMigdvFhs5WJdsQtCVNInZznnU0KcJQ9R9mknmyCfyjEAx9Fx5JxUOjRLMoAvSVlo lWMFrMpZxtfUJx+SyEIKpjUkQ60ecSvMZc/SIMiiTWQN4DWp3TpEg7siLXVLI1/8rF1E nJVW6HVkukOr1/CWVJ0gdQonZlrNvxtQFbocrggOwJxIW/YCi1q97AAImFRkLB0JGx/o RItA== X-Forwarded-Encrypted: i=1; AJvYcCUYQtqCoavlNxOKEVSanA5YMJ3EuFCMW7pDU3LJve/w6Ft/MKGQJ5h0qwPDSeL+gAUxtbqRY32qTpm7qe3YFqpw@lists.infradead.org X-Gm-Message-State: AOJu0Yw7ben5YSqLhdktnEWC69Q53+3Y0N8huDdBBpPn+AZTVI0KqGI4 A8t1CgSiMveYoVgAoAXMZePjMXAO6o5gXD9bClttAQA3AhiMJXd8 X-Google-Smtp-Source: AGHT+IF2yoAl368N+XO3JdI5vISlD5ad11UbPnetJqRjyiBddDG9lg6QDzjrGFMhrCckyRSVQHLPig== X-Received: by 2002:a17:907:9693:b0:a9a:3cf:cdb8 with SMTP id a640c23a62f3a-a9a69ba6e93mr1093227666b.36.1729525991109; Mon, 21 Oct 2024 08:53:11 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 08:53:10 -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 6/6] arm64: dts: imx8qm-mek: enable dsp node for rproc usage Date: Mon, 21 Oct 2024 11:52:21 -0400 Message-Id: <20241021155221.112073-7-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_085313_074313_8F10C21F X-CRM114-Status: GOOD ( 11.23 ) 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 Set the status of the dsp node to "okay" and assign and add its reserved memory regions. Signed-off-by: Laurentiu Mihalcea Reviewed-by: Frank Li --- 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..d51da3b6b3aa 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 = <0 0x90400000 0 0x100000>; no-map; }; + + dsp_reserved: memory@92400000 { + reg = <0 0x92400000 0 0x1000000>; + no-map; + }; + + dsp_vdev0vring0: memory@942f0000 { + reg = <0 0x942f0000 0 0x8000>; + no-map; + }; + + dsp_vdev0vring1: memory@942f8000 { + reg = <0 0x942f8000 0 0x8000>; + no-map; + }; + + dsp_vdev0buffer: memory@94300000 { + compatible = "shared-dma-pool"; + reg = <0 0x94300000 0 0x100000>; + no-map; + }; }; lvds_backlight0: backlight-lvds0 { @@ -640,6 +661,12 @@ &sai7 { status = "okay"; }; +&vpu_dsp { + memory-region = <&dsp_vdev0buffer>, <&dsp_vdev0vring0>, + <&dsp_vdev0vring1>, <&dsp_reserved>; + status = "okay"; +}; + &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>;