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: 13812535 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 566A2CCFA06 for ; Wed, 25 Sep 2024 23:29:26 +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=6Y0/b/12goaJOUtphQuMfAjI4BvBF9ykQVTYDGjgY+w=; b=s4ZNGg9BJ6nna7PNuV/iLSakWq GqShM4tyds/s8YBLg7mJyTd6vtwqBXjHovAtfwY3IYsmOPC64fO4giM8xHfsKp8AEImakhKzQr4Us tEGCJCc3Abdzk2YjQwoF9+IfLMrRXEayOuxdxLXu7llfmITXPE2NA1WcKeLaK6fpP1VbFps/ol2O9 Swul4oXegLSFrKbZda4kKgGUGtRqYxzAsOPOXFZ5pPgtkxLu3kzDU2qYFEKLlT4VG3M4dszortKhZ xDz9eLecA4LwUtV3jczzKq+7DYTRo0f+jt+RSlqRXXVxaoDOc78dvclALf74GKRHmNJ6Joe0tLS7K bVu1hUcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stbRc-00000006lOL-2HWH; Wed, 25 Sep 2024 23:29:16 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stbJu-00000006jYu-44dj for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 23:21:20 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5c42e7adbddso360998a12.2 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.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=6Y0/b/12goaJOUtphQuMfAjI4BvBF9ykQVTYDGjgY+w=; b=PqUTYgqTYdo/oCyijycO0Eh4jOdDVrhdL7/YLiwyiI0TQ232kwolyX/0E3/RlJ3XHL 55tx3U6r/DROYOB05maALYL+lPh/5SkZHSYBDyRJmxyshUqUd68j5/+mbKe1Xo5ct1JB PEVlKktDIgpPU107RK3rLrW3gS+7lWQctsscDUs8cmptRkoOlxznPWURx232suppKDIb AZZMfCxa6WH8FuJlNB4vXhnryGlIOS0xKmue9MUgYJTeyGamlia69cH9mnUTRmZG6FWG cedmy70oMDtPQJCtnC0SmHxDy046WVtjTYLzUkqBH1O86NXBMcwMxu24CEgCnwsKkdX/ uNyA== 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=KqaoMxIoVqXhkDnoaZBE6W9XZNswgpq8nbrIvd8gg9WcYOoJJKBxSRohPRjAVoq3/+ 58Z7Ltcx5sXvcHedCfINFtr1N4XkIPp3/zrQ7sdItPFju+lBPZ64Wof4d/Hje+PRhx0p l5jLwQvFAzdFpxywWf02SULL9/YMiKrF0HRoKTyr4g70YWq7QKJCVX0NQ5HcTcJHVvuf nXji+r3BqbLzb7RvoHTxY3lYHB/3UcYWyAWxOVyhHDXXQ6jTXFbpV290hh5Y6pp67g7C irkKKXBRmI3CmKR+tHDCEPgRF57crHfYHz+roBKnEHnkam9A+mC2AkEtzfef8wIuQ3WQ 058w== X-Forwarded-Encrypted: i=1; AJvYcCWOynH/mHizjyM0b2UX2RBm9msqIaYx5+UftN825FDtZlfVxsc0uIiMshisY6Ley8DfEfi3F5KbbQcbaY/ay8dL@lists.infradead.org X-Gm-Message-State: AOJu0Ywn5wDPLzY6zcXxivo8gGVY60anL09IZjGh07ylbJ5OcknW4ziP 4I609GW452M6KoA7JOD41WOUaA7xcVOfU1ybZSn4g+cRgfOkge1P/QJQJNn0 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_162119_039375_1708533E X-CRM114-Status: GOOD ( 11.72 ) 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 --- 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>;