From patchwork Thu Jun 9 11:41:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Irui Wang X-Patchwork-Id: 12875451 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 562BFC43334 for ; Thu, 9 Jun 2022 12:07:31 +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: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:In-Reply-To:References: List-Owner; bh=n2ox8zm0CZDpdEyw4Pojmj8/dqSU57oU7WgvObP/gL0=; b=CVu3glkXHLX2v9 /I5QkArMW1b1iifEwpk77R6L2EB8J8UNJfICmCujQwvr1Scu7L8hJ9pglPuUheullkJvc2kvOTtim 7KhT2RxnEnpd7vfzS4kEqbjYcEQsdNd1zQW0r01jLJRsrCwSgzxLAXNoiNVXJIaePjnyWOWhSYm1H fNWG0as4MB2v7bJvveKDD2reqElSsHdEB8NMtLRBWjUR/eZ0KlB0BhYE8FNVizHmbHfQd97MsmFIy 7VRcCtQVgW8/sw3UznsjIbTOHNX0mm/jjL91w9p9uF3waOTOntb1RBAaPwm3baWrP6muEnsp1WyTh y3gENhhx8pzge4vt6CLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzGvK-001Zyn-Rf; Thu, 09 Jun 2022 12:06:03 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzGYv-001QVB-Kk; Thu, 09 Jun 2022 11:42:55 +0000 X-UUID: 4438ae4c0b1e4c198050c73594cf4f27-20220609 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.5,REQID:37cdbf34-34d2-4b60-b8e4-b25be4ef01ec,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,RULE:Release_Ham,ACTI ON:release,TS:0 X-CID-META: VersionHash:2a19b09,CLOUDID:d6b7cc7e-c8dc-403a-96e8-6237210dceee,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil ,QS:0,BEC:nil X-UUID: 4438ae4c0b1e4c198050c73594cf4f27-20220609 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 771920445; Thu, 09 Jun 2022 04:42:43 -0700 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 9 Jun 2022 04:41:55 -0700 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Thu, 9 Jun 2022 19:41:54 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 9 Jun 2022 19:41:53 +0800 From: Irui Wang To: Hans Verkuil , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tzung-Bi Shih CC: , , , , , , Tomasz Figa , , , kyrie wu , Subject: [RESEND,V2,0/2] Enable hardware jpeg encoder for MT8186 Date: Thu, 9 Jun 2022 19:41:49 +0800 Message-ID: <20220609114151.19509-1-irui.wang@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220609_044253_735320_3AE6A6DC X-CRM114-Status: UNSURE ( 9.09 ) 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: kyrie wu This series adds support for MT8186 hardware jpeg encoding. This series has been tested with both MT8186. Encoding worked for this chip. Patches 1 Adds jpeg encoder dt-bindings for mt8186 Patches 2 set bit mask for jpegenc to support 34bits iova space, which means iova rangement from 0 to 16GB. Changes compared with v1: --rebase on latest media_stage tree kyrie wu (2): media: media: jpegenc: add mediatek,mt8186-jpgenc compatible media: media: jpegenc: set bit mask for jpegenc .../devicetree/bindings/media/mediatek-jpeg-encoder.yaml | 6 ++++++ drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c | 3 +++ 2 files changed, 9 insertions(+)