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>;