From nobody Fri Apr 3 14:39:20 2026 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 EF77035AC17; Fri, 3 Apr 2026 06:49:55 +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=1775198998; cv=none; b=aZXlD8Xx+U9KTsE0vhMKCcNdAMZA16oRh2vnsWwrNVl15X6uCJ09GKswVZ1TIv9vnza4Y62FzPrH4WhJ8M/axxSrZgIQwV100njhTYVkNXexdxnvyOR1AQ0IUVKH1unBreiY2LP0sBS1q4k5etdOrGIF0vhzoutxGs1TSmTgkBU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775198998; c=relaxed/simple; bh=fgBBu/lngSrdQg5n9BK3Ngpy3ZXY1jV6vcfXf7XYQ4w=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AnH4NSeyLQWKvnPbCnnN3Vr1Q0wlH3cP2H5jZA1E7BRNvJkBhGOOSB1mKUOznpPsGOW9f0ovyEk8Oej2Afwfz/toHba9LjYKwUH0+Sr5usQ9kX2RVr4MsruaRwvQrm1bS/rNj8YFmehpvhs7o+AQ+wfurgLgX8DyFBXcsehZwLI= 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=tN/YFNZa; 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="tN/YFNZa" X-UUID: 4bb406722f2911f19a16598d5ca7f8ec-20260403 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=Pd9/jlvkvZDv8oEHNPLVPeVdVbxJw94/4nqjbqam0eI=; b=tN/YFNZa7qsHFi1hOYKeM/ceEzwANmHS4cy3ONTMsaWsf35MTPtH1aSgsgoSqfqvDUGOFRuLTTjT1m/CFQf/RYHgneHCZeKy+KbQRLRsE+DB/a3cVz4NmtIQ7vwOqPT9GHDOgYsjWdlVHr56EaodpMQfXkDDcc1qM9gGTDyZ8OI=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.12,REQID:43e7d776-90c8-44e7-8dcd-9f3f6e046bc7,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:bc408894-f8ef-4ca8-bea0-143568f9ca1d,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:81|82|102|836|865|888|898,TC:-5,Cont ent: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: 4bb406722f2911f19a16598d5ca7f8ec-20260403 Received: from mtkmbs14n1.mediatek.inc [(172.21.101.75)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1953996733; Fri, 03 Apr 2026 14:49:43 +0800 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; Fri, 3 Apr 2026 14:49:42 +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, 3 Apr 2026 14:49:41 +0800 From: Jianhua Lin To: , , , , , , CC: , , , , , , , , , Jianhua Lin , "Krzysztof Kozlowski" Subject: [PATCH v6 1/3] dt-bindings: media: mediatek-jpeg-decoder: add MT8189 compatible string Date: Fri, 3 Apr 2026 14:49:10 +0800 Message-ID: <20260403064912.17259-2-jianhua.lin@mediatek.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20260403064912.17259-1-jianhua.lin@mediatek.com> References: <20260403064912.17259-1-jianhua.lin@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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: Krzysztof Kozlowski Suggested-by: Rob Herring Signed-off-by: Jianhua Lin --- .../bindings/media/mediatek-jpeg-decoder.yaml | 46 +++++++++++++++---- 1 file changed, 38 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..6596b686980c 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,20 @@ properties: maxItems: 1 =20 clocks: + minItems: 1 maxItems: 2 - minItems: 2 =20 clock-names: - items: - - const: jpgdec-smi - - const: jpgdec + 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. =20 power-domains: maxItems: 1 @@ -60,6 +67,29 @@ required: - power-domains - iommus =20 +allOf: + - if: + properties: + compatible: + contains: + const: mediatek,mt8189-jpgdec + then: + properties: + clocks: + minItems: 1 + maxItems: 1 + clock-names: + minItems: 1 + maxItems: 1 + else: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + minItems: 2 + maxItems: 2 + additionalProperties: false =20 examples: --=20 2.45.2