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: 13778568 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 988B5C5321D for ; Mon, 26 Aug 2024 22:07:03 +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=3NPK+p0mJgiOq8GcwZ3CPB6kLXaNxyIbSXm1F2awChY=; b=KImOMGzxJp9goDbjk8jNO8/Xx5 Fyx/cs2MugEn1Kd5hSwNwWGSpSQd1ezIhVJBqyL/DxSgUGigJRMTFZss23ZrD0cy60Tw4Tthu5GZl znvbG2U/MAQlBNyj+004FOVRWwn5+ODfrwIlewxXNCrB/plYIwfBRvnFnwZ271VGMtScklluV27v+ rTU3SywHlrjA4yxmF4Upaw3LSkG6vREY2M7ccS35q+vV+RsTG3TCTuw/Iu3LtjasFJtTK+DJmirry 95QfuJvD8BDBU1MJEeexvKRKLvA/OIy9X/YPNTf/BOAuHzCe/x2Ygnv98vxImR4+1tYc28oJxsi8c GmJvXNOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sihrR-00000008wEY-1vwu; Mon, 26 Aug 2024 22:06:53 +0000 Received: from mail11.truemail.it ([217.194.8.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sihkZ-00000008ubr-1p8v for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 21:59:49 +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 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_145947_701588_F0E20454 X-CRM114-Status: UNSURE ( 9.32 ) 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 --- .../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 */