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 7F114383C88; Thu, 9 Jul 2026 03:27:48 +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=1783567670; cv=none; b=bLxKtHSyxVDrCkTS4gCDMyhIcXSos+r/tnJC4WNKOL9kNm/ADEvtgiIb/+pqerF6pblTHW7UkK5lzPDXtFR7T3Sqb3Ragcx7b1SY+JC5jP2T4l23kXYrsx5mFx6R9C+MYHJJkKa3R1lpuvjBFKlEqJXpsRFMsXuYRlPveK0D6qw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783567670; c=relaxed/simple; bh=OhKIzhyPphPE7XF0tX/j+yL1U7tn2OY9OK4wIlzJ1hs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=REZd4PL1Y3HGRRpwwM8a8LNw4xDOOG9JCkjygQLMo5cczBQCa+UGGs6UWa1v/u2qv2T4ZBGFl9P4vHoORHKidJ6ukJC8d8sveYKvXDRqbHHCSTPEcrbps3EzuGeVlxfUclEwpNyJ29+OpdPuy/LzOp3IbWEd+bI+UPF/cmbClT0= 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=FIAnpXRE; 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="FIAnpXRE" X-UUID: 2038cbe07b4611f1b1788b6acf885367-20260709 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=YPIulzBzzSjRzeVrKrRnT1ZUkoYtICzdzWxddReKMC4=; b=FIAnpXREU9JXzaOPIQAEtgq9xM+4rCFiC5GrX3T1GDVi5gQcJJcw2a5xZD12golTMB5NEaCQSgtv0Me5okNWU+zRSSydVSQkmLP1b1fpMDJTCSgxD5iOK6ExhGyONLTHiwAu81r02yjyzgoMgWa+s2OduI4hS0B4jo4k2H5mAP8=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.17,REQID:5e95d2da-736b-42f5-be5b-2a80a2e1c8dd,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:d497b38,CLOUDID:03862d82-6310-4e6b-a6b1-aca20d98ed8b,B ulkID:nil,BulkQuantity:0,SF:81|82|102|836|865|888|898,TC:-5,Content:0|15|5 0|99|100|102|156,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: 2038cbe07b4611f1b1788b6acf885367-20260709 Received: from mtkmbs14n1.mediatek.inc [(172.21.101.75)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1972572732; Thu, 09 Jul 2026 11:27:34 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by MTKMBS09N2.mediatek.inc (172.21.101.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Thu, 9 Jul 2026 11:27:33 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Thu, 9 Jul 2026 11:27:33 +0800 From: Jianhua Lin To: , , , , , , CC: , , , , , , , , , Jianhua Lin Subject: [PATCH v9 1/3] dt-bindings: media: mediatek-jpeg-decoder: add MT8189 compatible string Date: Thu, 9 Jul 2026 11:26:54 +0800 Message-ID: <20260709032657.25730-2-jianhua.lin@mediatek.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20260709032657.25730-1-jianhua.lin@mediatek.com> References: <20260709032657.25730-1-jianhua.lin@mediatek.com> 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 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. Signed-off-by: Jianhua Lin --- .../bindings/media/mediatek-jpeg-decoder.yaml | 49 ++++++++++++++++--- 1 file changed, 41 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..13fb4fb61f2b 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,16 @@ properties: maxItems: 1 clocks: + minItems: 1 maxItems: 2 - minItems: 2 clock-names: - items: - - const: jpgdec-smi - - const: jpgdec + oneOf: + - items: + - const: jpgdec + - items: + - const: jpgdec-smi + - const: jpgdec power-domains: maxItems: 1 @@ -51,6 +54,15 @@ properties: Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. Ports are according to the HW. + mediatek,larb: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + A phandle to the local arbiter (SMI LARB) node. This explicitly + describes the hardware topology where the JPEG block is connected + to a dedicated SMI LARB for memory bandwidth arbitration. It is + required to accurately represent the hardware connection independently + of the IOMMU. + required: - compatible - reg @@ -60,6 +72,27 @@ required: - power-domains - iommus +allOf: + - if: + properties: + compatible: + contains: + const: mediatek,mt8189-jpgdec + then: + properties: + clocks: + maxItems: 1 + clock-names: + maxItems: 1 + required: + - mediatek,larb + else: + properties: + clocks: + minItems: 2 + clock-names: + minItems: 2 + additionalProperties: false examples: -- 2.45.2