From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5ADDB606A31F for ; Sat, 28 Nov 2026 09:50:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=rK/bB6n3; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.a=rsa-sha256 header.s=dk header.b=lMAhhH+o 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-Unsubscribe-Post:List-Owner; bh=Mgp+MQekyGi7tJCQ+RIKGZme+41xxzdDoxvvENdB63Y=; b=rK/bB6n30ymIjsfKNzAegQSM+L +MYYInE0mu+a/+HUSeqcaNtD4w8VtGIBBeiqwbUr1NLLML4ygk34fKHa/5ysvoGCwfMAyQLgCgvrj SEWO+UZtjb+4BDM2Nq303t4MkuyiFs/1kfnjk6phqtLy/AVu3/Gf4XCAit2JTgVAkeGHfM5FaamCM UjL/Cog/Dh0t8QesyfnzTQRPhWvFvGHn/JTLCiAr6FagcV045Wh9hQxoAsAh/cR4tufdD4zZL19+u eXZos84bF+22VKK9spGJANsAKFhfEOPd79rE17w/FPUBozoihq/YLLQSqsZAi+tm2vZG3wM0dwQpP znwdSJ8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXF4i-00000000d6M-29ne; Sat, 28 Nov 2026 09:50:32 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXF4c-00000000d3O-1FYm; Sat, 28 Nov 2026 09:50:27 +0000 X-UUID: 1fc548e2eb1111f1a36277631523a8d6-20261128 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=Mgp+MQekyGi7tJCQ+RIKGZme+41xxzdDoxvvENdB63Y=; b=lMAhhH+o+0H+m8gr8xVEIFGMIgrNZuyY8Y2RD05Bss4ek9wyAe0qY8dZfVJ65nSjfBYaP+B5OYiY2OEh4nR130K63bnH5kQ39pC+x12cTCICnyZb4wr20kUlpZy3Z3x+mULolLAlfQa3MXdOgvNiTo5oLL2fPVGOJmX1AhS9K3E=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.21,REQID:6322b3fd-d9c5-44e4-aff0-dac585c2af06,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:b0318ac,CLOUDID:0716e766-4b51-4c95-bb1b-80ac6aad9c96,B ulkID:nil,BulkQuantity:0,SF:81|82|102|836|865|888|898,TC:-5,Content:0|15|5 0|99,EDM:-3,IP:nil,URL:0,File:130,RT:0,Bulk:nil,QS:nil,BEC:nil,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: 1fc548e2eb1111f1a36277631523a8d6-20261128 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 23127175; Sat, 28 Nov 2026 02:50:20 -0700 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Sat, 28 Nov 2026 17:50:17 +0800 Received: from gcnsap21.gcn.mediatek.inc (10.17.81.22) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.2562.56 via Frontend Transport; Sat, 28 Nov 2026 17:50:16 +0800 From: Kyrie Wu To: Tiffany Lin , Andrew-CT Chen , Yunfei Dong , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Kyrie Wu , Hans Verkuil , Nicolas Dufresne , Nathan Hebert , Arnd Bergmann , Irui Wang , George Sun , , , , , CC: Neil Armstrong , Andrzej Pietrasiewicz , Yilong Zhou Subject: [PATCH v13 01/10] dt-bindings: media: mediatek: decoder: Add MT8189 mediatek,vcodec-decoder Date: Sat, 28 Nov 2026 17:50:05 +0800 Message-ID: <20261128095014.3128536-2-kyrie.wu@mediatek.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261128095014.3128536-1-kyrie.wu@mediatek.com> References: <20261128095014.3128536-1-kyrie.wu@mediatek.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261128_015026_564625_031531BB X-CRM114-Status: GOOD ( 11.40 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Add compatible for video decoder on MT8189 platform. Compared with former ICs, the MT8189 decoder use iommu to instead of smmu, and use scp architecture, the frequency is only 406MHZ, and cannot reach more than 700MHZ. It uses two clocks named soc-vdec and vdec. At the same time, the decoder supports the vp9 decoding protocol for the first time in single IC. Signed-off-by: Kyrie Wu Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Nicolas Dufresne --- .../media/mediatek,vcodec-subdev-decoder.yaml | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml index 90722552d..5e8a9e11d 100644 --- a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml +++ b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml @@ -76,6 +76,7 @@ properties: - mediatek,mt8192-vcodec-dec - mediatek,mt8186-vcodec-dec - mediatek,mt8188-vcodec-dec + - mediatek,mt8189-vcodec-dec - mediatek,mt8195-vcodec-dec - mediatek,mt8196-vcodec-dec @@ -138,7 +139,7 @@ patternProperties: Refer to bindings/iommu/mediatek,iommu.yaml. clocks: - minItems: 4 + minItems: 2 maxItems: 5 clock-names: @@ -163,6 +164,11 @@ patternProperties: - const: lat - const: top + - description: MT8189 clocks + items: + - const: soc-vdec + - const: vdec + assigned-clocks: maxItems: 1 @@ -202,6 +208,35 @@ required: - ranges allOf: + - if: + properties: + compatible: + contains: + const: mediatek,mt8189-vcodec-dec + + then: + patternProperties: + '^video-codec@[0-9a-f]+$': + properties: + clocks: + minItems: 2 + maxItems: 2 + + clock-names: + items: + - const: soc-vdec + - const: vdec + + else: + patternProperties: + '^video-codec@[0-9a-f]+$': + properties: + clocks: + minItems: 4 + + clock-names: + minItems: 4 + - if: properties: compatible: @@ -241,6 +276,7 @@ allOf: - mediatek,mt8192-vcodec-dec - mediatek,mt8186-vcodec-dec - mediatek,mt8188-vcodec-dec + - mediatek,mt8189-vcodec-dec - mediatek,mt8195-vcodec-dec then: -- 2.51.0.windows.2