From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (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 3EAF93093CB; Tue, 31 Mar 2026 00:55:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774918518; cv=none; b=I1g8LN4OTJC6J3+0P8nohYAnqZqRwG+N/5clN9JOTRdDrzSKGEVwAHnlfX9DCBo2ZLnNZuv89dkBc8cNvtoqT9r/Afe7xXlgP4g3vck79buReSdV2xINSZg1KJe+8KROuFHjxydKQueVlXHZ43OfKWdoz0rTOLpuDMCuLyvQYUM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774918518; c=relaxed/simple; bh=vuNu7N9TC5XdNvfsEhskay7pai07FKNxe+qAOeSFyUM=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ErZ3nc0CutPi5DDbDXVirpaNufCyPyobWjA6vFMawIYFBzuiWL+Nu9GFpcdYwvtmAr+6/MPlDpNNTrVcKhji5lfz3b/s8AKC3+VanvueFNHS6fz2GNVNQvOMkXm3rHbz7eHJA/Usmh37W3SFmMZpO03uOFkXDhmeqgV5iTFf/4s= 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=VNITDEKY; arc=none smtp.client-ip=210.61.82.184 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="VNITDEKY" X-UUID: 431aed1c2c9c11f19a16598d5ca7f8ec-20260331 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=vFwqgpylvbY9Gk3NKTjirwo2BcZWyk8OLu8l0+J01nU=; b=VNITDEKYnZedyVxTO5b9BDNY9iuDowJbyrntzcpP9rAQM9E3XNR06XHEqtuCy8mqPEt471Mk2kh9F+dq6BQAn8prMBFACv5NddH3p5UV5DlHwM+Z/xMTz5X1+yDJ7tmMUReM2IIUIaAO2xoaRTjn04ZiqMElx0v4xVSC/z7rPE4=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.12,REQID:ea95065c-40e2-4305-bfd8-ca38a6be2695,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:6031e08e-6df4-4a3d-a7a4-fbdc42d669ce,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102|836|888|898,TC:-5,Content:0|15|5 0,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: 431aed1c2c9c11f19a16598d5ca7f8ec-20260331 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 753361597; Tue, 31 Mar 2026 08:55:07 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Tue, 31 Mar 2026 08:55:06 +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; Tue, 31 Mar 2026 08:55:05 +0800 From: Jianhua Lin To: , , , , , , CC: , , , , , , , , , Jianhua Lin Subject: [PATCH v5 0/3] Mediatek MT8189 JPEG support Date: Tue, 31 Mar 2026 08:54:55 +0800 Message-ID: <20260331005458.24010-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-20260327, linux-next/master 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 | 44 +++++++++++++++---- .../bindings/media/mediatek-jpeg-encoder.yaml | 19 +++++--- .../platform/mediatek/jpeg/mtk_jpeg_core.c | 44 +++++++++++++++++++ 3 files changed, 93 insertions(+), 14 deletions(-) -- 2.45.2