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 A0DCB1061B28 for ; Tue, 31 Mar 2026 00:55:24 +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:References:In-Reply-To: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:List-Owner; bh=kTs9YrvrhIf+mRGvH9WSAN56MDWwC+NWv0xsBwyeppk=; b=1hYm1uQcSmbet4F66lYeymCPDd kvBZaGdQSE+GeyPnq4Ve3c3sl24qbkY7HsSPTMERAcQJx4pt5V7HwRFow1M9IRGxd6/6/gwa/kV2/ 9aU85LpCE5+dJ61xHaT5uExKKuve7lmbSF2gCVEvfSmChIf9HNLoREZ78yMLN8lWhb38hjdQQG2sT jQe1o4SaZyBPxglYCq2fhkDW+tGi9ztZh9l1B0EGHgyJX8rbnsDfguXXAMMYfjK6eMz0tuTwRNnX0 PgycmHYhpaUzFHSoxDILFVQHLgIx8c8wVMhgvefgWGzwmu3KUq9i3c/GNdTPksmpqvKHmmyVb+LED e568tBfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w7NO1-0000000C6Gv-32uk; Tue, 31 Mar 2026 00:55:17 +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 1w7NNz-0000000C6FM-2wBD; Tue, 31 Mar 2026 00:55:16 +0000 X-UUID: 4490b6362c9c11f1a6de359d7043e138-20260330 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:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=kTs9YrvrhIf+mRGvH9WSAN56MDWwC+NWv0xsBwyeppk=; b=f/bMo6Y0rzc8RW8Nbjwb3WEmT/APDcP5Qk7WpDNHGLMcIpRkYB6rSShYEHFnQQxX2BzBskiQ0WeXWk20oimodtp6vw15KI+HaaXyY4rP8D62kM+Lqq3sns6xyLvy4oTQgt+oagqEjct+zIp7p1xEDCKd78AbVNnnsTDtKIhQ/Nw=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.12,REQID:fe2a96ed-ca6c-4555-8010-f9041c71bcde,IP:0,U RL:0,TC:0,Content:-25,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-25 X-CID-META: VersionHash:e7bac3a,CLOUDID:9b6867a7-e101-400a-acb5-0dbb5a913469,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:81|82|102|836|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: 4490b6362c9c11f1a6de359d7043e138-20260330 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 808255509; Mon, 30 Mar 2026 17:55:10 -0700 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs10n2.mediatek.inc (172.21.101.183) 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:07 +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:06 +0800 From: Jianhua Lin To: , , , , , , CC: , , , , , , , , , Jianhua Lin Subject: [PATCH v5 1/3] dt-bindings: media: mediatek-jpeg-decoder: add MT8189 compatible string Date: Tue, 31 Mar 2026 08:54:56 +0800 Message-ID: <20260331005458.24010-2-jianhua.lin@mediatek.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20260331005458.24010-1-jianhua.lin@mediatek.com> References: <20260331005458.24010-1-jianhua.lin@mediatek.com> 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-20260330_175515_762646_89821C0C X-CRM114-Status: GOOD ( 11.88 ) 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 Add the compatible string for the JPEG decoder block found in the MediaTek MT8189 SoC. Compared to previous generation ICs, the MT8189 JPEG decoder requires 34-bit IOVA address space support and only needs a single clock ("jpgdec") instead of two. Therefore, it is added as a standalone compatible string without falling back to older SoCs. Update the binding schema to include the new compatible string and add an `allOf` block with conditional checks. This enforces the single clock requirement for MT8189 while preserving the two-clock requirement ("jpgdec-smi", "jpgdec") for older SoCs. Suggested-by: Rob Herring Signed-off-by: Jianhua Lin --- .../bindings/media/mediatek-jpeg-decoder.yaml | 44 +++++++++++++++---- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml b/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml index a4aacd3eb189..601fe05b73e7 100644 --- a/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml +++ b/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml @@ -15,10 +15,10 @@ description: |- properties: compatible: oneOf: - - items: - - enum: - - mediatek,mt8173-jpgdec - - mediatek,mt2701-jpgdec + - enum: + - mediatek,mt2701-jpgdec + - mediatek,mt8173-jpgdec + - mediatek,mt8189-jpgdec - items: - enum: - mediatek,mt7623-jpgdec @@ -32,13 +32,22 @@ properties: maxItems: 1 clocks: + minItems: 1 maxItems: 2 - minItems: 2 clock-names: - items: - - const: jpgdec-smi - - const: jpgdec + minItems: 1 + maxItems: 2 + oneOf: + - items: + - const: jpgdec + - items: + - const: jpgdec-smi + - const: jpgdec + + mediatek,larb: + $ref: /schemas/types.yaml#/definitions/phandle + description: a phandle to the smi_larb node. power-domains: maxItems: 1 @@ -60,6 +69,25 @@ required: - power-domains - iommus +allOf: + - if: + properties: + compatible: + contains: + const: mediatek,mt8189-jpgdec + then: + properties: + clocks: + maxItems: 1 + clock-names: + maxItems: 1 + else: + properties: + clocks: + minItems: 2 + clock-names: + minItems: 2 + additionalProperties: false examples: -- 2.45.2