From patchwork Sun Sep 1 15:57:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13786543 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 3A0D9CD3420 for ; Sun, 1 Sep 2024 16:04:58 +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: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5Myt184EA2rjc3VnEo4tydZ1Ip2r77/PxY4ntdfv7fs=; b=qR3pz50i3pAY0LpZx0noacNZS1 9yHqghwQVM3Psqiyokud6oqnwXcSyjF+bVz6/h1Y9TG0Oxo40zIx2rF8rScqjnZJlymeudRLXLeS+ Y4E2pqnz80ocLx6/IOIv0OFCWidB4Yhx70lCQC2y73Hr8Ck+PnDJlg0nmFu631RKksXsNW6FxoiWe BfgYT3u00IOQQZHcmvXsqhlrVPa76ITAczKtPnGIvfl0rM3LupWArHtFumlF2e7SmTk4EyAAlkxqX QoTywg4viySWHiiLvoTNF35rH+Yy/BhjqkHAsNZQqCrcdZTfrK9wyLUoQq9doteucprDOCBrb+cEF yOZCjvZg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skn4I-0000000Bu7E-2WrB; Sun, 01 Sep 2024 16:04:46 +0000 Received: from mail11.truemail.it ([2001:4b7e:0:8::81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skmxW-0000000Bskt-3Kp0 for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 15:57:48 +0000 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 B64D81FB1F; Sun, 1 Sep 2024 17:57:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1725206260; bh=5Myt184EA2rjc3VnEo4tydZ1Ip2r77/PxY4ntdfv7fs=; h=From:To:Subject; b=i9VwIEJCaihy9eILIXS2CZ9jhEJE1PTkaunyB7lD4Nw1VXtgHoxDdNCfBhxyMnE7s jeMegmC70/OMPG6RIZI3Ets7t6P/zRR26P8uAQQA5b055oYeOAyla2hX7SOF/2Qz3q YUeU3pD11xVDwbjK3d272/h8Xt0/+MvMWjfdmL1dn2xeNnJSYLxBSMcYsE2BjfGJg3 N3FmEmW5whnjOfemHqmaqj2nOpoHgrlYhEwJhY1jVzv4E4FVg9OtCQk5yXAqFPMyRK SGIvJaxFkf3s7Wtk/PjAxJygsOrRjoPHWy5IGeO0CufKQSMhEPWLb0GrroWXT3T0Pj HKnBwEh9RCrmg== 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 v2 07/10] arm64: dts: colibri-imx8x: Add vpu support Date: Sun, 1 Sep 2024 17:57:18 +0200 Message-Id: <20240901155721.7912-8-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240901155721.7912-1-francesco@dolcini.it> References: <20240901155721.7912-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_085747_029478_2894ACC0 X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. 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: João Paulo Gonçalves Enable VPU on Colibri-iMX8X. Signed-off-by: João Paulo Gonçalves Signed-off-by: Francesco Dolcini --- v2: no changes --- .../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 f929c5f07e64..cc1a0a26fcec 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 */