From patchwork Mon Nov 27 22:37:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Brnich X-Patchwork-Id: 13470382 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 28D53C4167B for ; Mon, 27 Nov 2023 22:38: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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=nElYbOV/sUzB5fmhJ92nUz19NGWbK4q1Z35jShCdUN0=; b=xTFyd2xGHhiHXG yj3PIg8HNSJ+gQtDqJTsdJZn9aSO7WWtq0AZ3d6NrZb6WUmbzMWKFPd8BsdOfH2fTeylbTluWx+A/ XBIer6l/j1vsWvKZgTAqL3XafQS7XYSJReUpbpHQXw+jMS1eDmYlUKD4w+7zMb0ITApR7zp8LOIF0 CUq6id2GOzx8vMmbetBWv0HnZ59/dG6E1ErKsZMUdXECmpbXNqlNpa7Crz5nHtZPGhs+iS9YHxm1O fNZ7+P6IAz6YTIdqFNkm3NHLIT+K53hOReRvObhv9Xt36Fp64SaalYET0bFbVwxFI5BNL/UUizkVR Uctn0pj37WnL6YLmH79Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r7kEj-003bbR-2I; Mon, 27 Nov 2023 22:37:53 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r7kET-003bW5-10 for linux-arm-kernel@lists.infradead.org; Mon, 27 Nov 2023 22:37:40 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3ARMbRhg079898; Mon, 27 Nov 2023 16:37:27 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1701124647; bh=oDSC9P1WzoRNNWiKe67lV32ay9g709SrRg9rfII70Sk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=dYPLRcTj7q09SjqyAYMP7Va+WvSrXCDI1mmHbSYQ3sXmQ3lrrJk+lsmipj61ui+MJ 2cJSCMjuOieOSNqS30riWOJYJxkGB1ZiiGxKe/19aBzt6x8u00p1IHr2j66PHQw5n6 xy0u7X8Dd/nvToTkheU64uLGi8yiVnLA1NNCxlYQ= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3ARMbRXO016931 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 27 Nov 2023 16:37:27 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 27 Nov 2023 16:37:27 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 27 Nov 2023 16:37:27 -0600 Received: from udba0500997.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3ARMbOdk097304; Mon, 27 Nov 2023 16:37:27 -0600 From: Brandon Brnich To: Nishanth Menon , , Vignesh Raghavendra , Sebastian Fricke , Nas Chung CC: Darren Etheridge , Devarsh Thakkar , Praneeth Bajjuri , Brandon Brnich , Prasanth Mantena Subject: [PATCH 4/7] arm64: dts: ti: k3-am68-sk: Enable Wave5 Video Encoder/Decoder Date: Mon, 27 Nov 2023 16:37:15 -0600 Message-ID: <20231127223718.2651185-5-b-brnich@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231127223718.2651185-1-b-brnich@ti.com> References: <20231127223718.2651185-1-b-brnich@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231127_143737_449627_1FAA9A6A X-CRM114-Status: GOOD ( 11.14 ) 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 Update status for Wave5 VPU on AM68. Wave521cl needs to use CMA as there is no IO MMU on AM68. Each 1080p channel requires roughly 98-100 MB. Allocate 896 MB to meet 8 channel capability for AM68. Signed-off-by: Brandon Brnich --- arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts | 4 ++++ arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts b/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts index 1e1a82f9d2b8..a83430589f16 100644 --- a/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts +++ b/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts @@ -387,6 +387,10 @@ &main_gpio0 { pinctrl-0 = <&rpi_header_gpio0_pins_default>; }; +&vpu { + status = "okay"; +}; + &wkup_gpio0 { status = "okay"; pinctrl-names = "default"; diff --git a/arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi b/arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi index 20861a0a46b0..de1dc0cfe708 100644 --- a/arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi @@ -21,6 +21,14 @@ reserved_memory: reserved-memory { #size-cells = <2>; ranges; + /* global cma region */ + linux,cma { + compatible = "shared-dma-pool"; + reusable; + size = <0x00 0x38000000>; + linux,cma-default; + }; + secure_ddr: optee@9e800000 { reg = <0x00 0x9e800000 0x00 0x01800000>; no-map;