From patchwork Wed Sep 25 23:20:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13812507 Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 43A2012BEBB for ; Wed, 25 Sep 2024 23:21:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727306465; cv=none; b=QD94rVCBBqxPk/k0ScNHpVaJROtpr2mQoAAPcDadszcxYWdkiI20LfJGSTIdmrR5FPqHeTJw55XI5iGC7dlulqop5YHkAwQsDlNx62C5T6JimBBt9Xs3Fgsd7aaSW1Mpa3ljovtdVpwNsbL4i8rpNDUj2/mFNCJzW1dCv0E83ZM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727306465; c=relaxed/simple; bh=m9vxbgSDXad9jA/1Dh0S14qqS2tOjY6TzVftilcJjjY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OPMD90c/mSoA9B7KXWmICNOSyphDVX5C+yzbAYjIHL2QmaLfPUxrXBZ+xK/LuOTcGqOy1lXGE6pidYxn47BrVY49aymJrDE9P06N/yAUl8zwF2heNm8wHYa9SK4PgWTYTE4fvet/Cl/WWFPq8CVCyXuTmxefTSHjMgP9DGjxnM4= 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=I84oHCV0; arc=none smtp.client-ip=209.85.208.180 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="I84oHCV0" Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2f75c205e4aso4070551fa.0 for ; Wed, 25 Sep 2024 16:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727306461; x=1727911261; 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=uu8cS5ZVBT2x5Y4ZLBzCkjnuT+mauwDzK9v+GQaA8mc=; b=I84oHCV0Ij8qqjNzSbSqy5xm370t0HeIrVyysptsES23Bfc8+pRoI4kF/OdblQfEXb 7PFtWDcN03qvsqz3rWwvla093vvNkXQJlSgP+fPn0sFdaJZ8wuByvZTcLZmOcnRWF5ZV xmAcajtWe/u+cUHXuYDMmvnK1M98oTfa8L+zstmPrh7nit/zx2yHxWJ9aWsOtSV6M9JD 7n3VS83TMvJD/OTlCXCZaoo7ZNNTCa0jReSc104iGqHmWQekK985WusKNDVBrgKEljmR jqnPqJP3zA161uQN9FR0BR0zGtlgxZ4NNZAdZR6GHRS6BGyXLvrkPnQJzhRxOOdC7eq0 ePzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727306461; x=1727911261; 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=uu8cS5ZVBT2x5Y4ZLBzCkjnuT+mauwDzK9v+GQaA8mc=; b=HO55Sz4nhBIcHD6bD4/ExOkNJaWOX6LslYEc6tbonphu+HfOZCoOT5AFoifZOb5W3d vV3VE9V34Cr/7TM74+8nJC7kWFE7JnrAQdX+TIZKJPjYTQ3NUgy2fvtXvQV+5IZBYBi6 RoKMnbiffMoo7FEgejpMWu0I3RKzjjf0YHcSfzTvGasPrpeYAKjRJ3ld4UgfMVHSeQYO kTkvA1cXIrPUUqo4mSfq2SOytJMHIveaKRJ/OwgEncm+/L49KQiW7nsS2LAckFIoR25p JD0hnccmvhiBsSiSOruBxWNKVeWK5XLU5A/JsfzhelQFkQDXtTvULpZQ0s855JDfMRir OGMQ== X-Forwarded-Encrypted: i=1; AJvYcCVSPRp11PMdazsvifgBM/TNZw+Zio4cj6tfRiC7ZucHayiBs0ImO0jyC3EOsZbuxcJBhyo=@lists.linux.dev X-Gm-Message-State: AOJu0YzWV64CF2UbFaWkPsqInEvptWdEQq9Ig+172m0cLVQTg3KE+vzT CYj6eU6qAtPaNHsrC/atQbKXGDEqUl8StJaqJMF6TGCP8SdmucxC X-Google-Smtp-Source: AGHT+IHdvjn2giBUs0LazmE6P9wU7waFLc1kqAPFWdrrVS2sXKmllv8Wvmvy0TA72d+Ku978kbQ4dg== X-Received: by 2002:a2e:a995:0:b0:2f5:6b4:1d2b with SMTP id 38308e7fff4ca-2f915fdbad6mr30761441fa.13.1727306460945; Wed, 25 Sep 2024 16:21:00 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c5cf48c315sm2481026a12.15.2024.09.25.16.20.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 16:20:59 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/6] dt-bindings: dsp: fsl,dsp: fix power domain count Date: Wed, 25 Sep 2024 19:20:03 -0400 Message-Id: <20240925232008.205802-2-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> References: <20240925232008.205802-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. This is attached to the platform device of lsio_mu13. This decreases the count to 3. Secondly, drop DSP and DSP_RAM from the count for QXP. These are attached to the platform devices of the lpcgs (used as clock providers for the DSP). With this in mind, the number of required power domains for QXP is 1 (MU13B), while for QM it's 3 (MU13B, DSP, DSP_RAM). Additionally, two extra power domains may be required in the case of QM/QXP DSPs. These are IRQSTR_DSP and MU2A. For the nodes using the "-hifi4" compatibles these PDs are optional, while for nodes using the "-dsp" compatibles these are mandatory. These changes reflect all of this information. Signed-off-by: Laurentiu Mihalcea --- .../devicetree/bindings/dsp/fsl,dsp.yaml | 62 +++++++++++++++---- 1 file changed, 49 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml index 9af40da5688e..e2f016af1048 100644 --- a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml +++ b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml @@ -51,8 +51,6 @@ properties: description: List of phandle and PM domain specifier as documented in Documentation/devicetree/bindings/power/power_domain.txt - minItems: 1 - maxItems: 4 mboxes: description: @@ -97,16 +95,55 @@ allOf: properties: compatible: contains: - enum: - - fsl,imx8qxp-dsp - - fsl,imx8qm-dsp - - fsl,imx8qxp-hifi4 - - fsl,imx8qm-hifi4 + const: fsl,imx8qxp-hifi4 then: properties: power-domains: - minItems: 4 - else: + maxItems: 3 + + - if: + properties: + compatible: + contains: + const: fsl,imx8qxp-dsp + then: + properties: + power-domains: + minItems: 3 + maxItems: 3 + + - if: + properties: + compatible: + contains: + const: fsl,imx8qm-dsp + then: + properties: + power-domains: + minItems: 5 + maxItems: 5 + + - if: + properties: + compatible: + contains: + const: fsl,imx8qm-hifi4 + then: + properties: + power-domains: + minItems: 3 + maxItems: 5 + + - 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 +194,9 @@ 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_IRQSTR_DSP>, + <&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>; From patchwork Wed Sep 25 23:20:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13812508 Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (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 7818F1A3BB0 for ; Wed, 25 Sep 2024 23:21:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727306468; cv=none; b=DLJa+IQJ4ywvUwpgNhMSRM80umDF+8wGhyMtIj+X9tq+JvJQu3FWIQRw9ELsDVDh3jJ9o0LMEgkLogYRlDnSf3wrbjjEOv0MBRE699WGddmUK5g2NS4WSL+I0t9oo+LFAGAZninYFpUQyt7l7d6/XBJhFMjZfwKXTh0XGU9JqEU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727306468; c=relaxed/simple; bh=UZd/1MEL/0YGVQ9XZev+SKB2ICbqx/sGLsFNGZT4cxs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=je3PUundHRcCtJgUSQD25RdAGK2PXe+ECWYXp3lppLsuI++ox27B69lSAdFI4twFxtmOCa5XAlMZD+ZaweEP/sys0En4qA20WNiCuwQPw0DIpIuGDGv2z5y9i9pmqpshwd9NhnhGUc4JsKiO6j4LS9pwYuJicUhQoGRDc5TStG8= 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=ZG4OCrax; arc=none smtp.client-ip=209.85.208.172 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="ZG4OCrax" Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2f754d4a6e4so3923671fa.3 for ; Wed, 25 Sep 2024 16:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727306465; x=1727911265; 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=0bogDjOZyEOHR1iFYz6hiM2rDuEVzKCPss7f3ehg4nU=; b=ZG4OCrax4yzRY+pynAHQ2QO4RwJ/+fP3y+JL38dSHGYzDahYHaxDfGJ+1sGCDq0oyG 0kGiJKnKdw3M21gYp47O0ZhiYR3IlvZqRSjEwJOxmnwDw8ndf8VxKZ+6WSuvAxdSITl3 5PtrWkBpcg8mhPFfc+WO9KOXYJj7dmo1KaQfyyiVHI+sUTbKSTJa648lJiloH/9hQZhS e5bwuiYExsXfS3LcAlZ/kASEiAP0FXizkIKLyG5C4dXh671ORDzHLe5K9jydWeM67/vD AxsYCjRebkArbFYr2Uex6tI6JPp63+PhissX3l2TjU8OZIKBi4/u/wNC2fa05ZSYn+VB zvng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727306465; x=1727911265; 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=0bogDjOZyEOHR1iFYz6hiM2rDuEVzKCPss7f3ehg4nU=; b=MQtN+Nw7U6teK/2xxF+/9p7J9N6m5kBub2anbU7kENI9+otowifa8yaByXj6fgaavc rsUufHAHAfL/xDbQVlAbj35HosjKw/BJ9I78eVP1HZTnG73gzbvnpoz3uVN6AjusBWAQ F3RkJ+fiGhy+zw9aUfR37nq9UV4EsfEfc6cRM4O1qwAbFwLXhqHkHU3oMTxqKlMB/wWz +FVbhOGq+NNDsyXHQEPAx1C+07ICXcvhnSoCO2RtC/O9YiFOWF4ne7abv0FidGjBjT7B nG6ew/sQkjwLPQdmm+QRd8ke844hYpj9n0YNGJjHBNPUrU6QT8MGJ94IHRvteCBKbv9v XhHA== X-Forwarded-Encrypted: i=1; AJvYcCUqBb7i6jvdw8stIihhQ6G9btZDKdp9ete7uJpyxjHQD/A3YCp5zAf8V2W7oRUPjUEVQ2s=@lists.linux.dev X-Gm-Message-State: AOJu0YxiRhq2udmnPs/RL4WOl6KDYeNpoRDYrGJ0fJvMvbI2SqxjyQd+ eONpYwfVWskdbyFnSwtWyauPyBjkILeMHUaOEMkyrOTuPhvbIVm67jWGZ6pv X-Google-Smtp-Source: AGHT+IFzysiJl1nP11kbexTXDIA+NNLYwV/h5+ijVjWxUUQVRdF/d175iEpJG9U0C5fsGowcn2S/qw== X-Received: by 2002:a2e:751:0:b0:2f6:593d:36f with SMTP id 38308e7fff4ca-2f91ca46349mr22985561fa.28.1727306464388; Wed, 25 Sep 2024 16:21:04 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c5cf48c315sm2481026a12.15.2024.09.25.16.21.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 16:21:03 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/6] dt-bindings: arm: arm,mhuv2: remove power domain from example client node Date: Wed, 25 Sep 2024 19:20:04 -0400 Message-Id: <20240925232008.205802-3-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> References: <20240925232008.205802-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 number of power domains required for DT nodes using the 'fsl,imx8qxp-dsp' compatible is 3. Remove one power domain from the example client node using this compatible to align with this. Signed-off-by: Laurentiu Mihalcea --- Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml b/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml index a4f1fe63659a..9e878c028036 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>, <&pd 2>; 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 Wed Sep 25 23:20:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13812509 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 DB2B61A42AF for ; Wed, 25 Sep 2024 23:21:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727306472; cv=none; b=IB+70I9zBnyA+ee17AcHkSk6rfVFELBLSi1teF9uGm6LKIxcQVlYExl6c5lL/UNhYbHZwH6ydjTcr+EnzpnZ5QYByhXN0e3YgiFdt6TsAuAlQGz/sMglPegSHEJY34KnErI/o0cQEG428eUDgpX/EJyfkkLF+mF1LvFyA8WRLwk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727306472; c=relaxed/simple; bh=+XN7JVyQjwitoz17emtEGN97FIhTSCOO/FA3S/viHjM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WR2sdA14N9oImNcfiIKx9G0pF60iv/aNUeZiUQ+DPDAkeKywRSJrmI8TBDPE5uhdOCZH4OkkejJTTvv80AFVs2gBiP3n0cY8KDgegegZg4T26u68QwhLA4mr13M/Z9TwBIfawvz2w+QyOU19OBpXIPxuAPAKZTt33SME7R1xlhs= 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=SS4CWwDq; arc=none smtp.client-ip=209.85.208.49 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="SS4CWwDq" Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5c3d20eed0bso350801a12.0 for ; Wed, 25 Sep 2024 16:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727306468; x=1727911268; 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=BVFuXuwQq4F0ZLDIr2tAnGQIQ63Zn3MBCQOz7VF/F8g=; b=SS4CWwDqiGt9qzjhatLyAIVIKX3LCjtVy2vT/01qflO2PCm08uey88NK0vf/SKMO/j uoJdr69akOCUZB+di6q5fI9DrEDsu4JrJbhfTh289LEKC58HtKcrs6e6FBW+5RjCNfGj r+fNm0iJfGS1WkzpQYmNtlPZeowXOfsehSCeKQCFnnXE2w83t9wBYaQCKX7ORM0rtTn/ XE1C7xtJTYofy2hNad1TcBtgK0YWmHfDBMyRIwdLE/Y0fkIf2UFhMuUTTQhar7m0IYYn PZsmmTGGAkHURCFLVNrYDAPS2Pe+QV7blgUn9frz0SUpfLtl0cadmw7KCAcUQp9bCxiy Xm2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727306468; x=1727911268; 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=BVFuXuwQq4F0ZLDIr2tAnGQIQ63Zn3MBCQOz7VF/F8g=; b=V0iPvkM3wkkqE3L6KQYuVHCUUttQyfj0N/3Ja2lxpg4KR5+93gKeu1dwVAedyz1/2Z ldvKM2KD6LH/Vwkl6ljl6b+wulZ+o1wKbG5mnf09UU19NAdMyFONz7wGxlmm6+7ABx0j 8irdcrdcbrqDUo4SnUCoYVtoLzgMdhwpVjO2phrT8m3RDr7Fm86b4HLzLuXDsUCdQ1T/ wNj7Mknk9J3l4ApTapNn3GY0FywpZr1z+zWASGULwNXg2dkbfMYdrrdFAKnQMgcTTWeQ 8EHyyhHXYz2Z2Hlav1sFAvwbcEu8rwSF79hrDrRgBx86FN7flj71LLC4UFgW6cT+5B5p rHnA== X-Forwarded-Encrypted: i=1; AJvYcCUQQ8KFJZSabmaj50cio4RZTwlolaW8acqUMxim6XibhKWg1WcEpeuc9cgQOW+rqz9WjuY=@lists.linux.dev X-Gm-Message-State: AOJu0YxJuig9afyr58rEBxd5q4JYZJaJ+iv+IX7yW9JYyxs73CIcy/Ez d5GWxCK9Du00u5X2P93iWLlCJZZYMACuCWrHxc43wjAg4Sr8uUwi X-Google-Smtp-Source: AGHT+IELRInJpxqZYi8CTCZwkwth1Bg0Cn73M4nS4KTBgLzsol54vPnsO/e6qWGAoQS7rVrkDGEtfw== X-Received: by 2002:a05:6402:40c5:b0:5c0:ad76:f703 with SMTP id 4fb4d7f45d1cf-5c72063feecmr3058720a12.24.1727306467778; Wed, 25 Sep 2024 16:21:07 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c5cf48c315sm2481026a12.15.2024.09.25.16.21.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 16:21:06 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 3/6] arm64: dts: imx8qxp: configure dsp node for rproc usage Date: Wed, 25 Sep 2024 19:20:05 -0400 Message-Id: <20240925232008.205802-4-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> References: <20240925232008.205802-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 Currently, the dsp node is configured for SOF usage, which is not the "default" case and should be done in a separate SOF DTS. As such, configure the dsp node for rproc usage, which is the "default" case. This also includes the addition of the 2 optional power domains which may be required by some applications. Signed-off-by: Laurentiu Mihalcea --- .../boot/dts/freescale/imx8-ss-audio.dtsi | 20 +++++++++---------- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 15 +++++++++++++- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 19 ++++++++++++++++++ 3 files changed, 42 insertions(+), 12 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..28970211dd67 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi @@ -431,22 +431,20 @@ 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_IRQSTR_DSP>, + <&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"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index 936ba5ecdcac..527933a3eb5c 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -63,7 +63,8 @@ sound-wm8960 { }; &dsp { - memory-region = <&dsp_reserved>; + memory-region = <&dsp_vdev0buffer>, <&dsp_vdev0vring0>, + <&dsp_vdev0vring1>, <&dsp_reserved>; status = "okay"; }; @@ -71,6 +72,18 @@ &dsp_reserved { status = "okay"; }; +&dsp_vdev0buffer { + status = "okay"; +}; + +&dsp_vdev0vring0 { + status = "okay"; +}; + +&dsp_vdev0vring1 { + status = "okay"; +}; + &fec1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_fec1>; diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index 0313f295de2e..9522a65b3e22 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -186,6 +186,25 @@ dsp_reserved: dsp@92400000 { status = "disabled"; }; + dsp_vdev0vring0: vdev0vring0@942f0000 { + reg = <0 0x942f0000 0 0x8000>; + no-map; + status = "disabled"; + }; + + dsp_vdev0vring1: vdev0vring1@942f8000 { + reg = <0 0x942f8000 0 0x8000>; + no-map; + status = "disabled"; + }; + + dsp_vdev0buffer: vdev0buffer@94300000 { + compatible = "shared-dma-pool"; + reg = <0 0x94300000 0 0x100000>; + no-map; + status = "disabled"; + }; + encoder_rpc: encoder-rpc@94400000 { reg = <0 0x94400000 0 0x700000>; no-map; From patchwork Wed Sep 25 23:20:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13812510 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 692BF1A42D3 for ; Wed, 25 Sep 2024 23:21:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727306474; cv=none; b=TN+xjSIeHf+UA58rUUqGapm0CXB4njRWJU58MKyZ1bpoZbvrvqYsEHGYgYJQsKAHImxWz4AJM456xxqflFAeMYlyyGutjXi9aX/hAj8hJktbtwO1JsfFJviAAO0xfO9QWhfi3AGNs+cnpNBDECVlUJ+toZV669/lHo762CzA99w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727306474; c=relaxed/simple; bh=c2sS4xoizsm3otwYaedSca7IFiwsMvhp6CH09ev/rfw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=V1JKfeBsaqEBFCfdeJx5E6s4PfeVD7CLmoId58Xpy455Bm8DxAbUmx8YjNvQfT4KBjhXXzoMbCiZqqjdGj16sVFA53muV4KbRKX9VbCpvUjKlxmeVjei0RIv+TsnqGFxB66YD3s+rFkKGC5As3SnJRHvBXzhvE1bdkTjuvpj928= 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=ckplcKZp; arc=none smtp.client-ip=209.85.218.47 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="ckplcKZp" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a8a7903cb7dso23849766b.3 for ; Wed, 25 Sep 2024 16:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727306471; x=1727911271; 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=ckplcKZppPrhCtTZlj5A7lWa1+hxa8EDT7sbgmQf2W9asSd5toclR8LjJ3C+7AyGkf nl+ffKG+5jy4RSuMkP+mKL8zHLpLJeD1m/4s8TZWMm228Q+oQSWNfMBwvOfEt7/YpoNV 7QSRPcCbVt4cdDh3TOeiU+vBRXdza1PN7vaVrkoYifmsVYkTrJOeu4vXSD4vPHyLYDJa u89ORqw8+wnWX3Fz/QdOETbJG21yUQo4m2ypbeT4CxFSbW3vVkg9+SiU/rSQpFlLmIek VVlx6VNT75DaGbHPGzFC167DZaBAg9pXPi8zBING3peuUfBSuEylh9/URf1KzqX+6cgp +wjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727306471; x=1727911271; 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=wnmHCNcVBJxb3tFd+aSSTiJOYk3krKi2/gLgBUplgoiWF+oos24Nj7bfNM3uSELo+d s9q4ffiBBBDcv9OXnHU2BIVH4rOiEvaouGGJ+ryoJ9KUUuerx9d2Xe0UeS8sg3yonWGh s/yMfSzQskIh4puERRD7a2dw5Xm5Quybco8kvdFJlNPdBAAPQtP0600jR8qJ+Ud4pOF9 JrLZm7b9MzEGVk+WdYV6vPsTQ8I80xp4f0J3pgoBkKDQgT6TElUmL0dpgoy5T/ynHvXZ Cd/YYd13CTtFTV7QHK3NKpMPWQRFXqkquoF8pNqVpANxIz3j4Tkr3RSa4ESoImOVgUvS QB/g== X-Forwarded-Encrypted: i=1; AJvYcCVsAUnqPjNgxhkZwJKDMZBLmqtO+E1gCMwqVFPc2whxL8eAC7fmfcMQxhwSk9ubjyK0Fl0=@lists.linux.dev X-Gm-Message-State: AOJu0YzxBSZC1pZAm0Q60lzdPTsSvjcpqGGA8PFuPpWqd8tFQkeX3XP8 t1TUGdintqekJrqSgqLAsUjp84g9sAvu2SpiWGfBZuknSk1ow6Vq X-Google-Smtp-Source: AGHT+IFurIPGcn3OINfKpRW1ac8UmQhuz6IAdsY7IhLNLaWRW5DT3OY7ioHFhjittAMJtgpcbCsGUQ== X-Received: by 2002:a05:6402:4409:b0:5c7:1ed9:aab7 with SMTP id 4fb4d7f45d1cf-5c7206120c4mr4095600a12.7.1727306470374; Wed, 25 Sep 2024 16:21:10 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c5cf48c315sm2481026a12.15.2024.09.25.16.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 16:21:09 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 4/6] arm64: dts: imx8qm: drop dsp node from audio_subsys bus Date: Wed, 25 Sep 2024 19:20:06 -0400 Message-Id: <20240925232008.205802-5-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> References: <20240925232008.205802-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 --- 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 Wed Sep 25 23:20:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13812511 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 A084B1A4B80 for ; Wed, 25 Sep 2024 23:21:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727306477; cv=none; b=AO2wOZjUgsHgvImYg9ePmmlDZKJ4FRpp1zYFHf1CLAjZsM/tHThg7RCdANQm+lnDdM2GITHlqRfJP/BGXmIFuNqNog3yoGSAYbKmSJzicgiIkF2/etu9kwZ8gXcT0xXnMUQ3+JUiFrxeDwsyyzIXk0C3sbCI0SGFgMAeLZ4aQPg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727306477; c=relaxed/simple; bh=hNzNTRUO1xfArrtGz9hIBWhoLSA7T3wdnmriECFga0A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dCzQ+tkzRaRwxgcYuPlaUWpVeKX7mUFDh9AEKxDVUp9ET+XUP4axjZJoW1hPWFw3eVZ3EIsBe/uP2+6/Rg4wuQZjg4rDP2mrwFDwxSYezfW3w+5O+fHcPfrNLcSo+LyGhhlK2uC+Je/Vr9ScRuLLmXvEZfn7yRjc5pHhlSrCtvU= 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=MHJX4iXq; arc=none smtp.client-ip=209.85.208.53 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="MHJX4iXq" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5c42e7adbddso360955a12.2 for ; Wed, 25 Sep 2024 16:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727306474; x=1727911274; 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=/BZ5x1JardeLzM/m5KAAa5mcr11Ogt+U3TCpeepywJI=; b=MHJX4iXqGxwZ5MpEqDCI3ckgznpb4kCPcCmeaoc3W1yJ0mXah8fcPBS0E6QtBjkDQ9 LjB2Ig3mB+UnziVrzNEnUZPZUcU8X5aWy0/jgDDSoeXIoUh/9BWRDglNm4+MO6r7OzOJ hiruGrs/2E48Ho5GP0hT8F8GHP3o2q6wwzKXxQYe0vARXH2TV8HEIJiy3X5zk7ZgVEAm bRJH69R9bPqW9Hxdh8HPohdJ0MMehH0PWVrZ4SpuiwxwyQC/thUxlMGKeIEdKiznjeoj waVRpjeXgBrdIDicki2Pi76gUm3apfNVZ7V8D/zp5lwz1ohFCIiwB74GqdAqJc3jUeqL /TIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727306474; x=1727911274; 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=/BZ5x1JardeLzM/m5KAAa5mcr11Ogt+U3TCpeepywJI=; b=L/rrMjHgyoP5utHEMKJpTGO0T5Pvehi63hnU1pONP2WGelHZom/zscm3kgmKC1gavH ak/DUymW693A4PqnsNzz/3WACqTJokOPwh2hHzK8dL+XgM1z3uS03M6wg1QTx5A5Iw1r 5+O5sx0buAI05OU4YI0Nvw2eHR6MtUIByvd4qd2BHJJcYE8qN0deg6y9hNRK+YdNKjvm +tc7RXx5J5kiMc4NFCjgcZR/5nir7HIn+2NPRkWpnfUr+Uw60v90hk1iS8g0nqVjm1od 4X1ZorgqqNnG84NCXBJzZuTUP9V3wWZlP/x8MSyXlI7tQSQc+LL+DyF7cL0e1saB87bW 5GBw== X-Forwarded-Encrypted: i=1; AJvYcCU/yXLqVMu4cq0vJyzRKajdO9rtHwOb3PYNmBe5SxZMf7KJFyKBuwo1cWwyMT/TcDjHH4I=@lists.linux.dev X-Gm-Message-State: AOJu0YxnlIDQKwXGwx0+F/78kioV1A7MW1PMivmW9zfWadchb0DGcdfz JC2XJpxP1b9aPrtQQiyHztyHMRROzMlNAJU8DknwfxqLFocPbosK X-Google-Smtp-Source: AGHT+IFSfrNX5+ZdgLCD+cmSwZmmpfoMEsHjHpd/2Frq+M22Gl1QZHtrdQuR+01rVBpVHguU2B3qQw== X-Received: by 2002:a05:6402:51cd:b0:5c5:c2f4:c4e2 with SMTP id 4fb4d7f45d1cf-5c720764447mr2105166a12.36.1727306473734; Wed, 25 Sep 2024 16:21:13 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c5cf48c315sm2481026a12.15.2024.09.25.16.21.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 16:21:12 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 5/6] arm64: dts: imx8qm: add node for VPU dsp Date: Wed, 25 Sep 2024 19:20:07 -0400 Message-Id: <20240925232008.205802-6-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> References: <20240925232008.205802-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 --- arch/arm64/boot/dts/freescale/imx8qm.dtsi | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index f8b577ebdbef..ae0165a44dcd 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -581,6 +581,33 @@ 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_IRQSTR_DSP>, + <&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 Wed Sep 25 23:20:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13812512 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 597D11A4E83 for ; Wed, 25 Sep 2024 23:21:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727306481; cv=none; b=GQU2P2OzR2Lxb/r2xHFkejdzttbWBmDgNlZi+Slch5ROmqdMABMMF+qsBVZVOsxQgXhevyZq7+TgT3faEwlziblUAePSuc5LBAcxvAowkansI2KH9Oqwu0evId1KHR4rECvxl1gWVej2I0tWVoWBm0HtUIw0qw+2iRSqy6CBaw8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727306481; c=relaxed/simple; bh=9MdjDmzaJSXdmEpYVFV1tpaG4DOpRWuJZAVX4CUD5lY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pjXQhVxWmvY47j7g6TF2JGKxV18QziwHUhFVI+J+9cg/qdVZSMzqEYV6SaGQhCja90yg23KoulguLvHRAxMO5YGx/jyxmpcQcBYdwseAVXKbYZe4znjOLItAQr5HeJttlQ+YUwDJmCtaSoSkqRAoqY28fkf0JRfcdyLZl4SWZUc= 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=In3goJUt; arc=none smtp.client-ip=209.85.208.42 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="In3goJUt" Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-5c718af3354so336157a12.0 for ; Wed, 25 Sep 2024 16:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727306477; x=1727911277; 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=6Y0/b/12goaJOUtphQuMfAjI4BvBF9ykQVTYDGjgY+w=; b=In3goJUtbHq+m5y4Wwd6LHvJ7gA6yZKpIKg5dMPbDqJdZUvA+pzcyJ3DDu4CgJCHkY sZZPVyB7YsjZbXpR+z0OzYuX/9KRe7kJu9KeHvA0wCuVCJ0EzJPGzpx+s7zDvLg6gnhu SwK1uw7k7BvCWwnTj5HN6SwgJiUp1lkzfNWWb3koYQOQVFcqs4vz2cWP+CfKMNwgKuOg XqpdvCnIxCNat9Ajw/taoWB3f9GcSERnwaB9eIi8r0oFM3Auo4iF+LsSxMbPku6e6/pZ zgKgwu4gd46+PZGhX89X5mYllcnKZXiw7r02C5CgL9u9EzaZMBS1WlTKCKb0uP9lYZfR Msiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727306477; x=1727911277; 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=6Y0/b/12goaJOUtphQuMfAjI4BvBF9ykQVTYDGjgY+w=; b=lGvvID1p82wZVLazoq4+Ik9Y5K2/Zdjzxeb1yOk45M+9A+NE+G37SLXky9cOmVIxZf cNq8i7Z0TQg8YuRdAk8VfGPPYn2SfI53lqbvbsDBEdiQAq5rPFOGLD2Z4b3feXq9gstK TmHp+5ubIP7NpnQWaKezIbwlpFcrSGSP5/TvIbOJfKFZZcA+DEKsggeVfwzS4isd5IvV GMSmLhH5ekLJcHos0xfBo7qKydOqqBg5x2FXBhPilcfY4GuwqPx5f5f2/Hilf9XETX0I 8+fZLg4mSWXhuIuMQ4agoedkywY85lPVLlKT1nJQKdfIIj1GI4lQ5+YIAAfVQmNUpBtM +m8Q== X-Forwarded-Encrypted: i=1; AJvYcCVONt+hlH0fYkWUtN08+ETetnbEGM6UjyDk34E41gf9Lb5/DMiaCu1uujHHALy7CL/eli8=@lists.linux.dev X-Gm-Message-State: AOJu0YyOoW1BJuZNkutm3ZpPiXgD5qKqInaaeW9Bxtzmy7BCh92iogBB 9PkpuQhB7JPFUcQMRcO8N1TLwYDgaksfMTUoxToh/lvktBVujgwM X-Google-Smtp-Source: AGHT+IEMfbfQnQA9qcYuWORwKKxs2GMl24az24OZdgZIQPCbXrTDPL14Gi7TSLFD2svMh9oBJTgYAg== X-Received: by 2002:a05:6402:354a:b0:5c2:6311:8445 with SMTP id 4fb4d7f45d1cf-5c72060a8edmr3765685a12.2.1727306477046; Wed, 25 Sep 2024 16:21:17 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c5cf48c315sm2481026a12.15.2024.09.25.16.21.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 16:21:15 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 6/6] arm64: dts: imx8qm: enable dsp node for rproc usage Date: Wed, 25 Sep 2024 19:20:08 -0400 Message-Id: <20240925232008.205802-7-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240925232008.205802-1-laurentiumihalcea111@gmail.com> References: <20240925232008.205802-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 --- 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..7ee69ce7b193 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: dsp@92400000 { + reg = <0 0x92400000 0 0x1000000>; + no-map; + }; + + dsp_vdev0vring0: vdev0vring0@942f0000 { + reg = <0 0x942f0000 0 0x8000>; + no-map; + }; + + dsp_vdev0vring1: vdev0vring1@942f8000 { + reg = <0 0x942f8000 0 0x8000>; + no-map; + }; + + dsp_vdev0buffer: vdev0buffer@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>;