From patchwork Mon Nov 27 22:37:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Brnich X-Patchwork-Id: 13470379 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 9BBF5C4167B for ; Mon, 27 Nov 2023 22:38:21 +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=dlV8Sp0ienxS6tXTOtGFa0hrEqTJrQTP3DrZxVd6DnI=; b=iPO8Dt179xLAN/ VSX+2klKa4A5aDS1hfYQC/ADx+olPF6MOtRTkSS33vUe4FSCF1JbCXJhfZ+0Ev6U6pV9VLMeMNlLj klmT7lGHzWtdb/AV2fBFQD6yFDnpPkN63wHEBKumxGHy5QvAjGvlsh3Gc6sG8dyg9uvJnrj1J/OFw FGXS9JwsSA7wCBIXFhdiP1mTNpbHNSnqLY61VmpQD65BsIpiTndBeUUEMDYClQH6jBQ6yhNpJX1eN 1zYq4efqWBjLc24La/PDjqS21N/bOyeu5VRbetYzIxq56/KAdFG+7Sbu1zpWeGILXVJAQ1uf7Al3M RRgOmWwf3WJrkEmx3r5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r7kEl-003bcP-1G; Mon, 27 Nov 2023 22:37:55 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r7kEU-003bWB-04 for linux-arm-kernel@lists.infradead.org; Mon, 27 Nov 2023 22:37:40 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3ARMbTWA063600; Mon, 27 Nov 2023 16:37:29 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1701124649; bh=Sv0I20CSUFFIxcQW5teZhDKwPesMJrJoLxagOKePvMg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ezZw6yUQx+1RvUkjeEcLQCnLCQ9Y51WKlmp/YznWCCTWfd/ywfuc74jsqUjyrqTfK 5fIjPl15Y10GBqalPY7q/tV65+1UtKJWSGD8x8L3cmoaW2Av2qNCB+gOSRdz+O6pj7 bZB5gp4LzPX5ryk0BGY4QNqyR5yer8/r4MQGlQoc= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3ARMbTas048006 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 27 Nov 2023 16:37:29 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE109.ent.ti.com (10.64.6.30) 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:29 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) 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 via Frontend Transport; Mon, 27 Nov 2023 16:37:29 -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 3ARMbOdm097304; Mon, 27 Nov 2023 16:37:29 -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 6/7] arm64: dts: ti: k3-am62p: Add Wave5 Video Encoder/Decoder Node Date: Mon, 27 Nov 2023 16:37:17 -0600 Message-ID: <20231127223718.2651185-7-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_143738_244997_82B54752 X-CRM114-Status: GOOD ( 11.70 ) 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 This patch adds support for the Wave521cl on the AM62P. The node requires an SRAM buffer to reduce bandwidth by saving temporal information. Can only allocate 62KB for this given there is only 64 KB SRAM available on AM62P. Wave521cl needs to use CMA as there is no IO MMU on AM62P. Allocate 544 MB of CMA to meet 12 channel 720x480 use-case for this device. Signed-off-by: Brandon Brnich --- arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 15 +++++++++++++++ arch/arm64/boot/dts/ti/k3-am62p5-sk.dts | 12 ++++++++++++ 2 files changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi index 963758c7d377..55c2a69617f5 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi @@ -11,6 +11,10 @@ oc_sram: sram@70000000 { #address-cells = <1>; #size-cells = <1>; ranges = <0x00 0x00 0x70000000 0x10000>; + + vpu_sram: vpu-sram@70000000 { + reg = <0x70000000 0xf800>; + }; }; gic500: interrupt-controller@1800000 { @@ -881,4 +885,15 @@ mcasp2: audio-controller@2b20000 { power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>; status = "disabled"; }; + + vpu: video-codec@30210000 { + compatible = "cnm,cm521c-vpu"; + reg = <0x00 0x30210000 0x00 0x10000>; + interrupts = ; + clocks = <&k3_clks 204 2>; + clock-names = "vcodec"; + power-domains = <&k3_pds 204 TI_SCI_PD_EXCLUSIVE>; + sram = <&vpu_sram>; + status = "disabled"; + }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts index f377eadef0c1..2a5bcda15584 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts @@ -46,6 +46,14 @@ reserved-memory { #size-cells = <2>; ranges; + /* global cma region */ + linux,cma { + compatible = "shared-dma-pool"; + reusable; + size = <0x00 0x24000000>; + linux,cma-default; + }; + secure_tfa_ddr: tfa@9e780000 { reg = <0x00 0x9e780000 0x00 0x80000>; no-map; @@ -598,3 +606,7 @@ &wkup_uart0 { status = "reserved"; bootph-all; }; + +&vpu { + status = "okay"; +};