From patchwork Wed Aug 16 15:22:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devarsh Thakkar X-Patchwork-Id: 714248 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7AB62C04FE1 for ; Wed, 16 Aug 2023 15:23:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344100AbjHPPWr (ORCPT ); Wed, 16 Aug 2023 11:22:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344151AbjHPPWm (ORCPT ); Wed, 16 Aug 2023 11:22:42 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E20A12D40; Wed, 16 Aug 2023 08:22:32 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 37GFMGXD112809; Wed, 16 Aug 2023 10:22:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1692199336; bh=KaEHWtjdGFRDL7UeW1KjKq0dV2LcaN1iAp8OxqD2/6Q=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=yIszwjmcO1u9TOMWMNHvtOA2XcU2sUM7TgJgZKG1jd6tV8stq3EV7sE4Tf4jdBI/A aywDtfsFvbFfpQncC8GsUPywY8UWE7ozXPmzbbzZZygk/4fVhNoI+natpxkhYrDU2K cGmNXfem9n6HJxi9fbTKKJC+qEE6NSG9T/EjVYTw= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 37GFMGhr027985 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 16 Aug 2023 10:22:16 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 16 Aug 2023 10:22:16 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE101.ent.ti.com (157.170.170.31) 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; Wed, 16 Aug 2023 10:22:16 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 37GFMFnR010342; Wed, 16 Aug 2023 10:22:16 -0500 From: Devarsh Thakkar To: , , , , , , , CC: , , , , , , , , , , , , , , Subject: [DONOTMERGE PATCH v3 3/4] arm64: dts: ti: k3-am62a : Add E5010 JPEG Encoder Date: Wed, 16 Aug 2023 20:52:09 +0530 Message-ID: <20230816152210.4080779-4-devarsht@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230816152210.4080779-1-devarsht@ti.com> References: <20230816152210.4080779-1-devarsht@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This adds node for E5010 JPEG Encoder node which is a stateful JPEG Encoder supporting baseline encoding for semiplanar YUV420 and YUV422 video formats to JPEG with resolutions supported from 64x64 up to 8kx8k resolution. E5010 JPEG Encoder IP is present main domain, so this also adds address range for core and mmu regions of E5010 IP in cbass_main node. Signed-off-by: Devarsh Thakkar --- V2: No change V3: No change arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 11 +++++++++++ arch/arm64/boot/dts/ti/k3-am62a.dtsi | 2 ++ 2 files changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi index 3198af08fb9f..0dd5c9e280eb 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi @@ -816,4 +816,15 @@ ecap2: pwm@23120000 { clock-names = "fck"; status = "disabled"; }; + + e5010: jpeg-encoder@fd20000 { + compatible = "ti,e5010-jpeg-enc", "img,e5010-jpeg-enc"; + reg = <0x00 0xfd20000 0x00 0x100>, + <0x00 0xfd20200 0x00 0x200>; + reg-names = "core", "mmu"; + clocks = <&k3_clks 201 0>; + clock-names = "core_clk"; + power-domains = <&k3_pds 201 TI_SCI_PD_EXCLUSIVE>; + interrupts = ; + }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am62a.dtsi b/arch/arm64/boot/dts/ti/k3-am62a.dtsi index 61a210ecd5ff..2dcd41cddf33 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a.dtsi @@ -61,6 +61,8 @@ cbass_main: bus@f0000 { <0x00 0x08000000 0x00 0x08000000 0x00 0x00200000>, /* Main CPSW */ <0x00 0x0e000000 0x00 0x0e000000 0x00 0x01d20000>, /* Second peripheral window */ <0x00 0x0fd00000 0x00 0x0fd00000 0x00 0x00020000>, /* GPU */ + <0x00 0x0fd20000 0x00 0x0fd20000 0x00 0x00000100>, /* JPEGENC0_CORE */ + <0x00 0x0fd20200 0x00 0x0fd20200 0x00 0x00000200>, /* JPEGENC0_CORE_MMU */ <0x00 0x20000000 0x00 0x20000000 0x00 0x0a008000>, /* Third peripheral window */ <0x00 0x30040000 0x00 0x30040000 0x00 0x00080000>, /* PRUSS-M */ <0x00 0x30101000 0x00 0x30101000 0x00 0x00010100>, /* CSI window */