From mboxrd@z Thu Jan 1 00:00:00 1970 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 71573F43688 for ; Fri, 17 Apr 2026 10:06:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=2N6VvNmKKCkniOebhgR1H2gLhy/vJ1xEBtcOvHB+XZM=; b=moceqGZ8eBI/KYB4eqWjS0nT0A Dotpb+i3pToFhChwxKwPfN0dD+Gw8HaU21FsxU8jhHnULUWOSdbtnnYQpX5/EO/HSumQ8UENpsHo7 8WOS2ttsfuDahni8xNXNerUu6dASjqI+QOfuqUiIieC9h8WuLl2psa8jVpveS5Axdjotzdc4afyMV VRlTaJL/u9Sbt3wDiy2S12zZ7arj51pnldZfV8+MFHM6WAXyj++AOtt8irjqkZFbqFevPNxeSJ6yL aRAL2tJymAMNLJdbHFQmdInEd8s/zqpBZUEgt0IixtavwR1VVZnSZIVwq1Oum/Jv74nEHlzhupskA IMvqECJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wDg57-00000003sJB-1C1Z; Fri, 17 Apr 2026 10:05:50 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wDg54-00000003sH3-1kg4; Fri, 17 Apr 2026 10:05:47 +0000 X-UUID: fcd44d063a4411f1a6de359d7043e138-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:7c4eccfc-49f4-453b-a932-93ce19ea1b24,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:9435fad5-060f-4ecc-9ee0-121eeeb4a682,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: fcd44d063a4411f1a6de359d7043e138-20260417 Received: from mtkmbs14n1.mediatek.inc [(172.21.101.75)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1486696787; Fri, 17 Apr 2026 03:05:39 -0700 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 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260417_030546_475209_149E7194 X-CRM114-Status: GOOD ( 10.15 ) 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 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