From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB57C35B639; Fri, 17 Apr 2026 10:05:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776420348; cv=none; b=Ye6ta24h1N/miYlHTYTVeC8VVQAmSrALQeIFmKpRqp1gVH++WWDtKb/dYoSHthg446mTcpltsWjfmq1jX2884UqWtuR+RHF7QTD8UVLh6uGHSXfSty2g5ioYTU8Cxeyu5MMKuEECcwSNfWnObXVon1ZSSzUr5zDOp8QhMKx8X9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776420348; c=relaxed/simple; bh=gntKg/p6Ute2Ge04Uk71QAPx/N5aCDyA4AD6zZ3BpuQ=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=uK5xau5620SFq5HKDqHDj1uJoQRCHN5mu3xXKJoqPslzSdhKOM+qmhdR+tHwIGWHN7EdxgPBKJcG+YkOW06Nl2c/wvnkphurWT4wBW9Y8RvIJf/0TT6VrXAJ27OYlOodJJNC3ak9TltBJwr6aNwbCdiN2CXxF6S1Q7hfMnujKeA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=tKl/lg4T; arc=none smtp.client-ip=60.244.123.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="tKl/lg4T" X-UUID: fc0b87683a4411f1ae70033691e9ac7d-20260417 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=2N6VvNmKKCkniOebhgR1H2gLhy/vJ1xEBtcOvHB+XZM=; b=tKl/lg4T/znRmldkFM8iXH6pnZ4jSKEqgj3hbJLcSphcfsucbnh2ulPmVdv4MjZqukGbax9c4lWMONdHbCdPiJlzcsf9sMLR8IlzU+gCd4HhxcrWNyKzrxB/F/s635391I62WVezQXm1kYJE5RvkPkFOV+lvSnxYgB9gPWm03gY=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.12,REQID:9301b1f9-a1ca-4aab-b6c3-bf31b6cc9e9b,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:e7bac3a,CLOUDID:9222fb24-cb5c-4236-a89a-9a7fb20c9bc4,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102|836|865|888|898,TC:-5,Content:0| 15|50,EDM:-3,IP:nil,URL:0,File:130,RT:0,Bulk:nil,QS:nil,BEC:-1,COL:0,OSI:0 ,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: fc0b87683a4411f1ae70033691e9ac7d-20260417 Received: from mtkmbs14n2.mediatek.inc [(172.21.101.76)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1545030803; Fri, 17 Apr 2026 18:05:38 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by MTKMBS14N2.mediatek.inc (172.21.101.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Fri, 17 Apr 2026 18:05:37 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Fri, 17 Apr 2026 18:05:36 +0800 From: Jianhua Lin To: , , , , , , CC: , , , , , , , , , Jianhua Lin Subject: [PATCH v7 0/3] Mediatek MT8189 JPEG support Date: Fri, 17 Apr 2026 18:05:16 +0800 Message-ID: <20260417100519.1043-1-jianhua.lin@mediatek.com> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain This series is based on tag: next-20260410, linux-next/master Changes compared with v6: - Patches 1/3 (dt-bindings: decoder): update the existing `allOf` condition for mediatek,mt8189-jpgdec to make the 'mediatek,larb' property strictly required for MT8189 SoC. - Patches 2/3 (dt-bindings: encoder): Add an `allOf` condition to enforce that the `mediatek,larb` property is strictly required when the compatible string contains mediatek,mt8189-jpgenc. Changes compared with v5: - Patches 1/3 (dt-bindings: decoder): - Drop top-level minItems/maxItems for clock-names per Krzysztof's review. - Refine allOf block to strictly enforce clock constraints. Changes compared with v4: - Refines the device tree bindings for JPEG decoder and encoder. - Patches 1/3 (dt-bindings: decoder): Moved the standalone compatible string mediatek,mt8189-jpgdec into the first oneOf entry along with mt2701 and mt8173, as suggested by Rob Herring. This correctly groups all independent ICs and removes the redundant items wrapper. - Patches 2/3 (dt-bindings: encoder): Applied the same logic suggested by Rob Herring to the encoder binding. Restructured the compatible property to clearly distinguish between the standalone IC (mediatek,mt8189-jpgenc) and the ICs that must fallback to mediatek,mtk-jpgenc. Changes compared with v3: - The v4 is resending the cover-letter, because the v3 cover-letter was not sent successfully. Changes compared with v2: - Dropped the dts patch (arm64: dts: mt8188: update JPEG encoder/decoder compatible) as it belongs to a different tree/series. - Patches 1/3 (dt-bindings: decoder): - Changed the MT8189 compatible to be a standalone `const` instead of an `enum`. - Added an `allOf` block with conditional checks to enforce the single clock ("jpgdec") requirement for MT8189, while preserving the two-clock requirement for older SoCs. - Updated commit message to reflect the schema structure changes and hardware differences. - Patches 2/3 (dt-bindings: encoder): - Changed the MT8189 compatible to be a standalone `const` instead of an `enum` inside the `items` list, as it does not fallback to "mediatek,mtk-jpgenc" due to 34-bit IOVA requirements. - Updated commit message to explain the standalone compatible design. - Patches 3/3 (media: mediatek: jpeg): - Refined commit message for better clarity regarding 34-bit IOVA and single clock configuration. Changes compared with v1: - Patches 1/4: - Updating commit message - Patches 2/4, 3/4: - Updating commit message - Adjusted property descriptions acorrding to hardware requirements - Improved formatting for better readability and consistency - Patches 4/4: - Updating commit message Jianhua Lin (3): dt-bindings: media: mediatek-jpeg-decoder: add MT8189 compatible string dt-bindings: media: mediatek-jpeg-encoder: add MT8189 compatible string media: mediatek: jpeg: add compatible for MT8189 SoC .../bindings/media/mediatek-jpeg-decoder.yaml | 48 +++++++++++++++---- .../bindings/media/mediatek-jpeg-encoder.yaml | 29 ++++++++--- .../platform/mediatek/jpeg/mtk_jpeg_core.c | 44 +++++++++++++++++ 3 files changed, 107 insertions(+), 14 deletions(-) -- 2.45.2