From patchwork Mon Nov 27 22:37:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Brnich X-Patchwork-Id: 13470383 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 8D5DBC10DAA 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=zkuEJ4GuchUyIPm5T+s3ISMudf8hCVIKX2T+Qz0JiPI=; b=emUuV1awD6s/7R A0NK3MgSpoo52xdkdn03rKsB9ZlEZyTh+HZXGdZqoJDizMeB/pxcevjzqDL+975ZT9/viUdySORSs 2dSmJaK+mzcNrGxWihPsRe60V5rxSNxl0miLzRT6L679+KyxsseAhtvE8kp5EWF5XCTn7GQ6Y0iXA no3eRrkIeorpffNtptGwrJ5xB1IC2p4tRfDrUiwMCz53y/lneNZhBuWPs/ZD+H8A9O0Zp3Yv2rAOU /6K+1s+O3xzn3vjKdu4ktxOCw0GG/Gnj/CsowZ5sGg52vPBrPMInH3nlbj6hAPsM1wBbcZwiMbpHd 98NzT2czwsF5fVO9L02A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r7kEk-003bby-1v; Mon, 27 Nov 2023 22:37:54 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r7kES-003bVp-3B 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 fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3ARMbRGP013788; 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=1cQbV8AjwfB6jYA0xecEPw9dIyMbErWCckCHhz2oX+g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=iG/Nd2eXFrQgqny6cA/apXhLjuh0yxrthC/R5Y56t+erN99ocLlls4f5EVoCaqNPw NVA9+OfRDDMc+eJ4mPNifpsGIrW6nGOzA1MRuepBhD3W1hKoNOlRcq6zXLED5Gn/vU /r3FS0dz1wrvNbMY2LVCYzJV+gI3YCTgoJ0GQWvk= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3ARMbRWr016927 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 27 Nov 2023 16:37:27 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE112.ent.ti.com (10.64.6.33) 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:26 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE114.ent.ti.com (10.64.6.35) 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:26 -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 3ARMbOdj097304; Mon, 27 Nov 2023 16:37:26 -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 3/7] arm64: dts: ti: k3-j721s2: Add Wave5 Video Encoder/Decoder node Date: Mon, 27 Nov 2023 16:37:14 -0600 Message-ID: <20231127223718.2651185-4-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_162172_8CFFA21B X-CRM114-Status: GOOD ( 12.24 ) 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: Darren Etheridge Add the Chips and Media wave521cl video decoder/encoder node on J721S2. This functional block also requires an SRAM buffer as a bandwidth saving temporary store so we need to add a carve out of 126K for this as specified in the documentation. Wave521cl needs to use CMA as there is no IO MMU on J721S2-evm. Each 1080p channel requires roughly 98-100 MB. Allocate 896 MB to meet 8 channel capability for J721S2-evm. Signed-off-by: Darren Etheridge Signed-off-by: Brandon Brnich --- .../boot/dts/ti/k3-j721s2-common-proc-board.dts | 4 ++++ arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 15 +++++++++++++++ arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi | 8 ++++++++ 3 files changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts index c6b85bbf9a17..5e6eb0fab1c3 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts @@ -303,6 +303,10 @@ &main_gpio0 { status = "okay"; }; +&vpu { + status = "okay"; +}; + &wkup_gpio0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index b03731b53a26..69144d9d9649 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -28,6 +28,10 @@ atf-sram@0 { reg = <0x0 0x20000>; }; + vpu_sram: vpu-sram@20000 { + reg = <0x20000 0x1f800>; + }; + tifs-sram@1f0000 { reg = <0x1f0000 0x10000>; }; @@ -716,6 +720,17 @@ main_i2c6: i2c@2060000 { status = "disabled"; }; + vpu: video-codec@4210000 { + compatible = "ti,k3-j721s2-wave521c", "cnm,wave521c"; + reg = <0x00 0x4210000 0x00 0x10000>; + interrupts = ; + clocks = <&k3_clks 179 2>; + clock-names = "vcodec"; + power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>; + sram = <&vpu_sram>; + status = "disabled"; + }; + main_sdhci0: mmc@4f80000 { compatible = "ti,j721e-sdhci-8bit"; reg = <0x00 0x04f80000 0x00 0x1000>, diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi index dcad372620b1..b8ae89c4feac 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi @@ -24,6 +24,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>; alignment = <0x1000>;