From patchwork Fri Oct 11 15:04:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13832636 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 DEA8612C491 for ; Fri, 11 Oct 2024 15:05:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659152; cv=none; b=dEYaxSKWSog+lh3V2f6buGoMKYPkGQ9MERT4YQbBjVkMkMxv1gSvcIzX3y3ntkunxsrrGEhAPzmmHrgnDuU5DDDAw92x2NREb25sfz3WSrssC71Anih+GNVHeiVsIim88NTUp3/zBObReQtFpDw4deMrPrEHKV2H5dFIzkXu3Sc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659152; c=relaxed/simple; bh=P+yE5KdCcIMm14HPs4c/lUI3dwW9bilamH4sLkmXczw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hhJB8qAuhI2ZGC26usDZ2Q/ISINWgRbllPHOaQ66tFw77dqq79FT8hP8FWhczQSNshV3geeH3iYs42V3NY/5/c5biEEreO3VYZw2zVk00WiSfmdsdDwDl8rwy4ZUGbJhAixh/OMy9DK6lsH5kSRbnzVDNRO5ijTl+7jKgJzPOq4= 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=I7qsbrPo; arc=none smtp.client-ip=209.85.167.48 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="I7qsbrPo" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-5399041167cso3440183e87.0 for ; Fri, 11 Oct 2024 08:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728659149; x=1729263949; darn=lists.linux.dev; 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=M6d2HEGva1FumwMFJbWr9u9NWQ5NOhQR6SBLNsRd724=; b=I7qsbrPoNJAhAOGzU3HZjKl/x1P5/ayj1c5JQLWlGfslIvlZOX648lEyiSII7OMSBo OVzQAbC/0ov2lwgA9CY4ygCDzEA+ygc3iI7LJGccOD3VfKCZ5Uu2mN5FzCsxLDs+nY2e 9VTq6BQPWEl3a9+Y3oe+Lj7kcIm+0gE8PSagLTg+1bPVGFevSHYWmxwhBFJQH/ySnni4 H9xEJOoONDbMpM+FnIymgziH0PlO+YCKQkrfP3dQJx53n05UTswuaL/oUNKtkpEyJ76J S9H7TZ9Lpjk/nJVz4go3DAJ0g+lmRbRNo7AbxHRfnDA9kJGOIahHbjByU62CKel4yf1w Q09w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728659149; x=1729263949; 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=M6d2HEGva1FumwMFJbWr9u9NWQ5NOhQR6SBLNsRd724=; b=ErvmQRa0Q6m6Ya5Acerx2x5v+1sXsI6klxgxkVoW0jBXeSd98sD5EyAT3KU3zsdFZj MSEEWUIwMO2w9+qGzyGj+KxOdMfRm1z1dV/VhFf8oWe/yQjqLOtBJ+yHrZmsgdeJQfmh 5kRCFEk4CMMQE5O3c+3nyDkAmhL8e0/vmvGybGQStDtkk69U5Lzq45H4u8bZyFcswbN5 qt9Zn456A9Cmcale6fc2lXUnFS0uekG0CMrCWyHM0B6dtz+UZHE3uqr+dmdGJECgfIYw YYbXccdE7iG0hsr4TiH3HBJe437zvs8zKKtrPjlSg8QE8fJIvQvjm+iVhyzzFC24wDji noiA== X-Forwarded-Encrypted: i=1; AJvYcCWGB3BlZNt7qyI67p4BKYHgVlBPDL+YNqxznYUUD7Qc+Z/zZl/yIi9l5C+kH1n4aZafeFg=@lists.linux.dev X-Gm-Message-State: AOJu0YzCMDczGJ4OAjSQST1GZ/Vvu5bRP+W3F3NYiQhoNKnOBwHUQNBg fzI47u9chpUZRf9OmSzjHdbCbJ/2cue1Hriw1ifrf3iiSv8+J6WT X-Google-Smtp-Source: AGHT+IGwGf+d6KP0pDSl5JptpFK3ku9j3zBqS2D7qrlBlzrhKGLUNO+lTF/x4nO5NF3hbj3e4pBmwQ== X-Received: by 2002:a05:6512:b17:b0:539:8fbd:5218 with SMTP id 2adb3069b0e04-539da5938a6mr2681944e87.56.1728659148651; Fri, 11 Oct 2024 08:05:48 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:05:47 -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 1/6] dt-bindings: dsp: fsl,dsp: fix power domain count Date: Fri, 11 Oct 2024 11:04:34 -0400 Message-Id: <20241011150439.4027-2-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: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 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: 13832637 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 D2122194A6B for ; Fri, 11 Oct 2024 15:05:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659155; cv=none; b=k8YLLEjVPtGGEfLxdPSxnRUF0TlSd1p44TsPXovgsseZQEQ1Js4bhBGsg0uo71x394klbhcr7iwEFOPwR6I3KjgXNqipicPSHvHKM0ycsKEcvxWeVFKpF4KffnHQiPqVSDATAf9VVwKDWOE8w2klNfFKlmCXSQ7XsCneYYK7cWU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659155; c=relaxed/simple; bh=LGVhaUUChqajyskYrQm9WHiHcIjADKr0XAo1qvMtYQc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SZXP68gVVB9mE7yBHP4GOiWtwKvhqok05yIIax8JChrHxOyUE3Ws2KauK9V/jowShn86MuzP+k3YUWr1EBzYDyP1eyuMc7dcEz00rLazKpScHe+pkV1rbBvvK1BiLgqPHNAD+ArVTSmBb+f5euQ8U87xceMh1mdfTcAoU1fDY8I= 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=Apb6keNp; arc=none smtp.client-ip=209.85.218.54 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="Apb6keNp" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a993302fa02so334851066b.0 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.linux.dev; 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=Apb6keNp7ph4vGse1HQ/h9s9LlnCcqeI/s7fQmi5NdrfLfmvRfhxkKfshOzhf8rxSN b5LjzBVR1AhEZqWv0eIohRQGPPgQmTIUr+Lg4YVFtm/Ytuvd5msIi8oWo6goff5wcyvQ WgqvB39EPt/+AV8RfKCBs37eHP84/gh+q0B+tlyr9ogcCmAbZ/YvEaHU3irpp4K2FdRx nuvQQYC9j4mV38Zn2Il41xS95bAB+Fs8H1zJM1Q/ONFe4x9j1tpLGnAnO1cT8TDioqOq sjuvSZfryNp/hMTlJjmtvSmvrSD8UvjA/wNtkDSa1j1yV5Kv2DOdmgUgvbht9M5IctUn 3jfA== 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=iqB9D5LMYNGbHh56I0oonBlNu52qKIstCCKbcVMmFlEqlzGSbO+4m6GxIOg+4my8hV E0tOpZV9jTEoqJtewjR59yc3wOCt8kd1bddwmDSFRH9ZwUE3E/eGCSafDsTkzSWKjZiU DrokFNoWUphNhLOh2MW/7Y1BusejXovFtH3SzK3Errz/G8Ap4gKJC1rMrTwXt1CdCtB7 +m4ZgamwddQdz36mvejdnQdeYO7kFbKuA8+14nuksJq/lZWiOAeZ4roSop/HVMO0AQjy zMM5o8RUoPzKRBoCoQ1dCpA7XFimShiiB+UqTgSxBmm6SHXneEbtjp074CeN6ICSfpb8 rm5g== X-Forwarded-Encrypted: i=1; AJvYcCVwgRB5qw3SRoVQZtEZto3tTwz2T9EsHeW6c1XZ2HDtRV8nTAxf0OaIG6jw60SXe8BgvmI=@lists.linux.dev X-Gm-Message-State: AOJu0Yy9BCSvk9K0Zke/cmfMNoqUec8tNFXaUm1JixGjPteo4Ao4/vLS ZaSmo74MHjMY9m/IYb5wuQU00R6MG4dygBe8hzaQTtyXhAcntRO+ 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: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Fri Oct 11 15:04:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13832638 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 AA873194C78 for ; Fri, 11 Oct 2024 15:05:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659159; cv=none; b=OMI2y20Mfr1GYIxN5fIePuV1ZFTmiaOHg5Wauxl1D/Ofen92p9PRaMxXNvny83qFxqAcCM+6jW4WuDsxlTN+gk22Gwgzox0y2hkpOt6D3ZE6+3G1LloHCIn9fbPur8NaxGEKjobskz11if/0xGbpXZiWzbYXcMN/KSmZsuoQyxc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659159; c=relaxed/simple; bh=vr0UmcnaAYhZzZTJilHV3JxY4AJdeK6+5d+Q00WbqBo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Lx22KY3AdCmcPOSbDoc2/Mg0IB0Qom02ptxMBxwMgk+OM6KWVtEDGZpZNn3uzJpvjQgtz1t/Qa+Kgksrza4v2HyAT06hP/8l1yHOiW99oxZkGuO8ePpEP4Hn6Y3FDs+DoKG0oRzg+fp3FhUKfAgFGbLVGZ6mxru25u+WJ3p3dBs= 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=Ckc0EYcy; arc=none smtp.client-ip=209.85.218.52 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="Ckc0EYcy" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a9960371b62so242804966b.3 for ; Fri, 11 Oct 2024 08:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728659155; x=1729263955; darn=lists.linux.dev; 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=qwFmMBQpvB09DklGuZpIpvbFiWo+i75RNFs8vYOVIHk=; b=Ckc0EYcykcoSSMP5NXGXdBDBq6IUzoqkpdtp2pCxUVWCS3L72OLyq4qjii3Z4j2HMH yPRcXEr5O7GlgDIOhIR9iJsaXF4+HQbKmeFF1Y7SZbHHDpauwV5OnuNrjYLtxN/RsMQk 0JiN0WvpTARz/4dpY/SXXS8zXqMBZuzfkKbHlME0+lOwZ/XCR3waibhJWhuPlGuoXYip 8CbLzLpjZIMqkEa7IOZFaTHC66ONSzEGGzK/A5HaxAjjH87Shke/tNeQTzqjCzs9hoZs v90shozkLy4FDAqirU4fNKMbSwfOF7huSE6jQK3PJnrxyaLSsKma9lPVnHdt6xqE15Zq /O4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728659155; x=1729263955; 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=qwFmMBQpvB09DklGuZpIpvbFiWo+i75RNFs8vYOVIHk=; b=W2m8weP1zTBkYt+7EtpfyvT9LPF+Cnch02IocIpiEB0EjtzvvYYi4yigWoztsxqAFx 9s/RIqRoTI9oAq47EEZCVslC8BOxqm6iMGML97cSqUoysnS4Zw1QC6wXUYGM9OQk97aD kq2TdR8g4DUrEMUdvKvhz4AM8XwB1Xekhm6eyA5wQs5oXnEj0V+jaX22ocoSVtgSA2Xn W3avHwTRJD36Ge5K/t+XAXD/1N0ddoUjUpycBlNCPVqwyOzidg+3PgQxTSFk306ZNn8C Vyj8R0qGyvU3ZBarlgdzgnqj+y9XT2rL0FB1W3e2uHuRMWv81ZZOTM/o8h6Zr6uizhB6 Eflg== X-Forwarded-Encrypted: i=1; AJvYcCVyjRymMh2tM8LH3KD+a9GUCx9XvIFxoil8kM09Qh1Z4iUaBFps250e6okziv0alQOt7eQ=@lists.linux.dev X-Gm-Message-State: AOJu0YzeSQ+WR7qtu5CTFUORNW73gWyMDmMv6OcPjzX2rjRY/PcboFkD GFQPJPN1wTSvZ1wB9nwWmwjmJnMyn9kk9gkQN5BSoMbo1SJz1cxT X-Google-Smtp-Source: AGHT+IFgUEPF+5evxRwSi49X2ukDLzYTC+t6yJMgeOY7nvbeTzeO4nYl+8niLu+yuW1dInB/APU9eA== X-Received: by 2002:a17:907:e6df:b0:a8a:91d1:5262 with SMTP id a640c23a62f3a-a99b957fdd6mr274182866b.28.1728659154754; Fri, 11 Oct 2024 08:05:54 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:05:53 -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 3/6] arm64: dts: imx8qxp-mek: add dsp rproc-related mem regions Date: Fri, 11 Oct 2024 11:04:36 -0400 Message-Id: <20241011150439.4027-4-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: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Fri Oct 11 15:04:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13832639 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 F22BA196C9B for ; Fri, 11 Oct 2024 15:05:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659161; cv=none; b=MNV/+tEVIUphHm2hxnUSNTnd3swUHR8krh6UN4nEPu23SaAXVQLtxh4SeIFE0UXTivnBZ6/kw6w9+XmHMGRysXckUyUS6c5SOFgW783aeHdnx0xdBumoAEYSPefamOgqDIVbQrqzboRb+2bgpHCZ99gCE+5HoWe1X4nMmMwz+yY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659161; c=relaxed/simple; bh=c2sS4xoizsm3otwYaedSca7IFiwsMvhp6CH09ev/rfw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oNxqE6fEWeWvYGxpJX34/qFLPiGXZ8RkYaa3+UOixHo7oSOkt4EszHHWOM2Hqmifia/Yk1gJeXFRsMSvYg3IlfLdFpTKndHOhVn5ALdyFxI0khhV1w+jMKDrgudy5jMM0dATNP/PKqq5Y9nQXLDHencaK93PVQV45idutqA+OMY= 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=BnDhVfoU; arc=none smtp.client-ip=209.85.218.48 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="BnDhVfoU" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a993302fa02so334862666b.0 for ; Fri, 11 Oct 2024 08:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728659158; x=1729263958; darn=lists.linux.dev; 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=fXmHQiif1/lZ9e9bTSFxlQYjcfk8NDtEcw/e34eAG2I=; b=BnDhVfoUkrTQlKEBoSZ7EO5X0QgQVUrTxM+qt6714wN/a+7NwnCTMDulshFLxzn7hY suWi/ozaZ7oiZgjk+88WPL4L3kE8Z0HEU4Siv6WZLItfLADUq7pcHyKEdmV1uerXOyOE ZhKiyR5vLBW528wFpUZtMLXW+RKIkAmTaOfYoYIZ7/A+JP8y0YDvV6nlEmJsiDgz9af+ QymbdEsM56rIDKzDUEkLFMLiVtfZF5DWyeRDKmr1/UI26MtFJOxUOD65bFFTGHuCy4eM wk7PZiJ7i0hP1e5fK8skjh/5D/4qJPkZdFAcmDGm9KResH+wP6QwyEbS334Ps76S8G9j ptuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728659158; x=1729263958; 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=fXmHQiif1/lZ9e9bTSFxlQYjcfk8NDtEcw/e34eAG2I=; b=szk3WKFppz1/oqaBigDWKp5mBX3eYeu3AA4zy5VafDLeaD5uN+wgs86Tk5juqxDU1E OlDbvULpCYNIwXtpmOi3XSofNpSKT5aZmJdUD0Zm2E2uiBDo78pnd8nQojJu+yuYfzJk /xUn+iejNqzTLESXMm849WJH0/FRlmgHIyFcYYe7o3TQROIliRsBXbSyI+4EtUyVguNt 8IJCk2eRYPD/JhQcXUW9u6WRKFZgMCEzFrikopsEzPdBr26y/fKGiTx1QFGuNqHJp1YK cYtNMJeb3AhKYYVJ0pLCGYgDU+1qFYB2Bz7NEF4JdXhDjNVyz0oM9+OrCMXHZOf/JpdC QIpw== X-Forwarded-Encrypted: i=1; AJvYcCXVdv+A7WICVaEM38bFakf5TXi0JyJNGfyo1+ypp6e1kpJhdlosZucgw7nQ/TaP1xC6kwU=@lists.linux.dev X-Gm-Message-State: AOJu0Ywa0fpQyLs9c+uWxFqgmNPkBPrqZ+57JpZ0J/dlzM3vZny0dqow bGWvkKEzWdIJS/TlI9Nt83hvy8H6IVskmvE8WYs5XF8HUqyCn/Wi X-Google-Smtp-Source: AGHT+IE8XXFizK2sYPaN1979Tdw2qPZdoWcRjlcOePrjnUpkAGWIvpzDhatpjh6L+W1+ZGUR6lY0Og== X-Received: by 2002:a17:907:6e8b:b0:a99:a48d:4470 with SMTP id a640c23a62f3a-a99b95af2ffmr202294866b.54.1728659158136; Fri, 11 Oct 2024 08:05:58 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:05:57 -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 4/6] arm64: dts: imx8qm: drop dsp node from audio_subsys bus Date: Fri, 11 Oct 2024 11:04:37 -0400 Message-Id: <20241011150439.4027-5-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: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Fri Oct 11 15:04:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13832640 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 E1FB9198822 for ; Fri, 11 Oct 2024 15:06:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659164; cv=none; b=sISRRR3telUldlb5Ut6HALeXHHH8qw0/VA7C4adDYkbd4qgebVYZ5mQQ7W+Jt7UGt8Lsqw0pTX36zhb78LmZCzV/3o0qAiDR8UxO52VLGhoijFFFMSVuzhZKE/6giF+b4W9dtkNCi7UxP6A3marnmL6SZeHra3j+WYwLCjp6yHg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659164; c=relaxed/simple; bh=HOrUBsmnTP5kUCPQrgNppvm3i8MgiMn7KdUPyymMl5I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YPhynN1Z4e/pX+oSI1EapLy3whhmGm6d45WsAPk/FJT7ojGU+9E09CnvmqLkhFB7xAEqfkOwSa/N6+68Upeyp+I3bJF7GV9EXUfL8CZjrIg1S0PJogsCS6q9BzmkHnaO4qCNMTxZQFnYoc0GX0IJYnVJMAT43iu+shhPaji32AI= 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=i5I+mLz7; arc=none smtp.client-ip=209.85.167.52 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="i5I+mLz7" Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-53997328633so3674169e87.3 for ; Fri, 11 Oct 2024 08:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728659161; x=1729263961; darn=lists.linux.dev; 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=uqRNfnCg/qPRyymj7N8Ka+MkmJ8hZ2bKmM3stNf1O/A=; b=i5I+mLz7w6TD78nOlCe5BVX6wxAIOEPoEjzj3tYTcoPlRtVOV3RvyIL7sKtJAWc/ib 3lH5NJaW9OAhOAsQJql1Y0B+3pxQjChQHpTBRvSIUMTerrDpSN5f0GdbvDK7UvBQ5xZe ekIahj6y8MMBjy83cZjWZpF+rFztTTvp4E18iO4Gqlf6OFZwhWva02vuQo/ms9Qs3YPm apPTjXjSvcnCY7weqV9uaCwaIB980Fetfh2hKz2ag7LXMjUte7ZTjkA/6Wg6FOYEMpdx LUENDZdgJBrJwfOfSDLNcUSw/PkLn5Susj5+A+e/zVDEsJgOe9BdvJlkzVWssfSnKaTe DPzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728659161; x=1729263961; 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=uqRNfnCg/qPRyymj7N8Ka+MkmJ8hZ2bKmM3stNf1O/A=; b=BXZqG0VWNp/mt/kirpGO0j9/cONGAVu46sffUqqCAWV8CXE5ipK7odce9Wd3iQY/0w ry5ZZXyL0bmM+hb0YHJ6KlfMCSz+GrZny7fzP2SICj/2pPbVgTqT8xa91a7Pmzk8Xbm/ N/Mk64ptIjhALK5y0FlfimMjumvcsDSzKGykuvzdxginaTgUAI4gkLxzz3MLXcHIjZdm vtLxUMjAN3JH298+DjdRGERQg7gq3i4WtAewL5o+v2X/010cF7xlojYkuYm78NgHrbyt zhpmDhMwbPYlbbCOVkK21HIqRA52npb24vm2yhwDemKj+cZdiZqReou8iU0RoMb95Agz rdDQ== X-Forwarded-Encrypted: i=1; AJvYcCWTYa+S2BN1bKJAQ0iGlMJoHoc7ylLGAgz4iWeKFZKgY/XlZn/XN2hIzZ9UrigymdHGDs4=@lists.linux.dev X-Gm-Message-State: AOJu0YwNFFZAY1NLRN2G9+jUayjIXE7CFRsI+RJJaWNAmjQ2Rb30jZKy SKMRdd+/wUbKkexaUxiz8saoJ7uuicT7OdHZIh+yKueILgz4Y7Wv X-Google-Smtp-Source: AGHT+IEKT0YkXSTJh2zrXW7Gn7aBjsFlDsfYaG04GDGzDuTHMb+ZgvkgKBp+eaHUzrpn0jmr8e3R7w== X-Received: by 2002:a05:6512:1113:b0:536:55cc:963e with SMTP id 2adb3069b0e04-539da564a1dmr2617584e87.44.1728659160589; Fri, 11 Oct 2024 08:06:00 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:05:59 -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 5/6] arm64: dts: imx8qm: add node for VPU dsp Date: Fri, 11 Oct 2024 11:04:38 -0400 Message-Id: <20241011150439.4027-6-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: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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..74857a94bcd3 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>; + 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"; + }; + }; + /* sorted in register address */ #include "imx8-ss-cm41.dtsi" #include "imx8-ss-audio.dtsi" From patchwork Fri Oct 11 15:04:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13832641 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 0A77D198A31 for ; Fri, 11 Oct 2024 15:06:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659166; cv=none; b=Mwu7SE996Gw9xz7jArghlcLCeaBrFDWhdMkP8KsOlsQRELSsuKfNruIDfNshdb3PmJeMd6iLZSi+Wc2tRVJ/BJHNlU1snYYrU1ptFBRzn5H6bxjE82sD8cxfN7QJ3TIB4qIfn2QI7Wa2JjSfKgYM3SCazupsaquvuNOyTbTCSl4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728659166; c=relaxed/simple; bh=p+Z1nDTHR3VSfxUEsfjfEreyzByYrV8byWoxxGPV0LM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UP49imk+HshHZSLDZiG3NR3sqr0Y/gtblcG7gWV4l+qNCjvr4H3uHYgPl/9YrCxcgxh978Q1LnMlY5z2jrfjwC5C/hdm1cnQWnJmpfvqh4i0X3ub+Pfrn9HsYNeLr1555qvQ0sOB2nznZ96ri9X5PoXiitkOOEJqmc923Et8FM0= 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=hcaqgCDN; arc=none smtp.client-ip=209.85.218.41 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="hcaqgCDN" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a9960371b62so242821566b.3 for ; Fri, 11 Oct 2024 08:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728659163; x=1729263963; darn=lists.linux.dev; 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=QoqSFxBQ8OghEwfmeYsld4v/qGzAAXjDzimzS+scfuY=; b=hcaqgCDN9ppQwISgFUmmIQA0Ca8NN0ikkwdAVed8Pa/3yPGroPqMEEB9ADaXrSN+sV HOyChGN5qYXpg7ezlKgyYBIEnxeZjPqX2L58/Dc4YsBR5b/Ql58WYio7VFP2ncSGJog0 c0PdZsISV6RHSfeu8RTXg/JfMmC0zyXsJDzf+XGt6YvX4w3o2iLvKmE5hDaCJ1lBrE8i 8avT3EWre4pCNFaZGoDIU9G25LJ2g5LNrWVO5klFH02uzN8CEvTuBH3zGM0RmxM7fbu3 vdLnaPMPfJhSju9I7fFguouo15z0HV/emK4GcYZ4SusyQWiDJu+PYnjq+grUNLKPXw6h fT7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728659163; x=1729263963; 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=QoqSFxBQ8OghEwfmeYsld4v/qGzAAXjDzimzS+scfuY=; b=A6XhXdeQHIArMUohmREB0ptS2OE+PDrBhjqwzTfXbwzdaqk0aFj1578FbOymAHdemo Wyhj2T4gI4/yBmTtZbkKuATaw87/I7rOL+ybcsIgrlfeDir0+f5k2BJE2cCqPNxu6CR5 2pptTzraY0GFMPSUPzLTBoJeEMqFXqD+CueNpQd+lGnega4Zx4IkrkDoWndZic5Wckzt LWgsSpwUzRdWgShQV0F4mWhRegds2EDPrMAx2yeLlvu4HY++sHe2PXVw61e8d4MyFJ8N 9sdtvk2oTxzUb3ZFFZX9PWunCJUingLIWqLxCptFS4LsOjZymXKe3mVnNhmnBouKThdr 98lw== X-Forwarded-Encrypted: i=1; AJvYcCUI/S7u6l5i79cpKBmz1/6uAYb4R473ZaATd4to2mJ67nhvQlzR9SX/bZbXhbH43Ry918w=@lists.linux.dev X-Gm-Message-State: AOJu0Yzt3qQ8NGB2Pew5RH8WzuSNX6NjcdGYKOUiOCdfj0uGJIdB59e4 d2W4MsLapTS4FZDoi5YZkjj2OShRUew1K4FyQztQhNepQ786HKf4 X-Google-Smtp-Source: AGHT+IEBK2JXyYwVGn8UlFDP/Iu5LT0dm/NXZvW4eFkGnwV5w9jD8Oxv31hD5Iaue0TJQGy9tV1srA== X-Received: by 2002:a17:907:f1d3:b0:a99:4058:67d5 with SMTP id a640c23a62f3a-a99b95849cbmr257504166b.34.1728659163222; Fri, 11 Oct 2024 08:06:03 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7f5b0b5sm220879366b.94.2024.10.11.08.06.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:06: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 v3 6/6] arm64: dts: imx8qm-mek: enable dsp node for rproc usage Date: Fri, 11 Oct 2024 11:04:39 -0400 Message-Id: <20241011150439.4027-7-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: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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>;