From patchwork Mon Aug 26 21:59:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13778557 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (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 8F6F219D8B4 for ; Mon, 26 Aug 2024 21:59:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724709586; cv=none; b=Gh/oLh61HVNUc0SFEWw+Hszfc/fX+T1ueQCPYYdsMdx4+kWmMQz6qMnU97Bi6CI8yTUdTRU9AeZOGEtJVEZ4Z05EitcO1W77J2MPr7Tn/YeRMgxIYfrW1r51tX+wgUL3ndAEZoSmUYPCND87xYK+04mrM/1X77zQly9W2ZN+DVM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724709586; c=relaxed/simple; bh=oLDDDYHNwoSmGgW/E88FUxShwyIwpyGey1dNTzAopZg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=t+93i4SSAhknr0VZS03Mb1JLJmzYuFNPoe9bgWUz4TjPGDTm5sTDRGsh7ruwVUTrD0vlkb7ykhETDpLukgJ2QN+JwHdySciCT5Awq2j+EutXkFu+tHteK5tCGFGjYnZLj5dJy5hsYZMItg7xa6uUoqhUIWEmPmTiC+igqpzshdc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=bVhjX+Cc; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="bVhjX+Cc" Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 73EF525074; Mon, 26 Aug 2024 23:59:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1724709580; bh=3NPK+p0mJgiOq8GcwZ3CPB6kLXaNxyIbSXm1F2awChY=; h=From:To:Subject; b=bVhjX+CcmYlJAb47TAqqNoeoQwZ3t/AwKxEE2ThglUrZfdl7YVoCKA1Q/QwgcLIhQ wPE2jFSZ5Sf/gitHA9Y4XpfxzgdrIUpn2/4h3cGCuh4Lbld3aEPjvXQqUGxf3uSD/Y m4jBJV4MNWFmKrhyn9U3nNxzspyxlzMQICw7GzvmLgWW7dNR//Rdf7KqmG230t9iro ZzB94C7jS+jw6r9/Y8b9bjmRW8bIdiiFkPMLmLgDQtpsMNj72pDb7b8zQCTQB949tv ENxJ9SMTRQ0bs8dKPWZSJVLH2H3V/xXGxbG3kpCKjHAuGxn/ro86rTLUgHP2pE1cdI kXMTDrKicJB6g== From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: =?utf-8?q?Jo=C3=A3o_Paulo_Gon=C3=A7alves?= , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Francesco Dolcini Subject: [PATCH v1 07/10] arm64: dts: colibri-imx8x: Add vpu support Date: Mon, 26 Aug 2024 23:59:19 +0200 Message-Id: <20240826215922.13225-8-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240826215922.13225-1-francesco@dolcini.it> References: <20240826215922.13225-1-francesco@dolcini.it> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: João Paulo Gonçalves Enable VPU on Colibri-iMX8X. Signed-off-by: João Paulo Gonçalves Signed-off-by: Francesco Dolcini --- .../boot/dts/freescale/imx8x-colibri.dtsi | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index 7c728208f385..782546a35bf9 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -424,6 +424,15 @@ &lsio_pwm2 { pinctrl-names = "default"; }; +/* VPU Mailboxes */ +&mu_m0 { + status="okay"; +}; + +&mu1_m0 { + status="okay"; +}; + /* TODO MIPI CSI */ /* TODO MIPI DSI with DSI-to-HDMI bridge lt8912 */ @@ -511,7 +520,24 @@ &usdhc2 { no-1-8-v; }; -/* TODO VPU Encoder/Decoder */ +&vpu { + compatible = "nxp,imx8qxp-vpu"; + status = "okay"; +}; + +/* VPU Decoder */ +&vpu_core0 { + reg = <0x2d040000 0x10000>; + memory-region = <&decoder_boot>, <&decoder_rpc>; + status = "okay"; +}; + +/* VPU Encoder */ +&vpu_core1 { + reg = <0x2d050000 0x10000>; + memory-region = <&encoder_boot>, <&encoder_rpc>; + status = "okay"; +}; &iomuxc { /* On-module touch pen-down interrupt */