From nobody Thu Oct 2 18:19:33 2025 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 5B15D263F2D; Sun, 14 Sep 2025 12:30:32 +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=1757853036; cv=none; b=S317hYfn7UGaTReNiYZucqywcK1rkoJ87L84UV8j9ABMye+CIY1Wb3a5wzj1dl+FE7S2LhrZbiVwYAouveLuQfE4yTczigAzxJxQgndeobdwdrNWGvnvC5bOsKnuA/Juu31+xBwu0W3yoS/u6eiuc2+6G/oqubQljmBOgK+H10Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757853036; c=relaxed/simple; bh=6c+Q5WHAR7lHSD0QHQFxc9FZVeyYCOXy8sFMikW64jo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=aJV35KSXQ2nXVdvoFnqlK76GyoMak+DysyjLbeSH6RkLMCZIVm5AGwV7J7lOjgFIpQhuKJy59rSAqHjcxlPA54rNaHMXHPX5aIQRdjClHAJUU72uRPVgIWVFjuK+YtqNA92R1N722IUf3cQrWoPQ+sYqoF9P8mU/0cz41K6f/wA= 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=Z6ZBCvan; 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="Z6ZBCvan" X-UUID: 9548ad58916611f0bd5779446731db89-20250914 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=o/LnUjycYKhLdST3uiQvKDxrDNE1WnmNJQyIxHDuaAM=; b=Z6ZBCvan1VUccTFaCV/87G2BY2/N8qKt+Y3uHObGy85QbtGJ98LqSwZ5oHbN1TA0VvPUiP8QipwDZsowdTkCyicLJAIJuLDfJR8gajbMsOGDjeDIT7KXqJGemv3FEaHjEN4eYaOjy0PscRoNDKE55cilBYrFCOu1q6UBSn1HAt4=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.4,REQID:90856e75-c08e-4d34-9097-93721d80cf82,IP:0,UR L:25,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:25 X-CID-META: VersionHash:1ca6b93,CLOUDID:5a1b886c-8443-424b-b119-dc42e68239b0,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:81|82|102,TC:-5,Content:0|15|50,EDM: -3,IP:nil,URL:97|99|83|106|11|1,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,CO L: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,TF_CID_SPAM_ULN X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: 9548ad58916611f0bd5779446731db89-20250914 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 508620035; Sun, 14 Sep 2025 20:30:22 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.39; Sun, 14 Sep 2025 20:30:18 +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.1258.39 via Frontend Transport; Sun, 14 Sep 2025 20:30:17 +0800 From: Xiangzhi Tang To: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Xiangzhi Tang CC: , , , , , Jjian Zhou , Hailong Fan , Xiangzhi Tang Subject: [PATCH v2 1/4] dt-bindings: remoteproc: Add VCP support for mt8196 Date: Sun, 14 Sep 2025 20:29:24 +0800 Message-ID: <20250914122943.10412-2-xiangzhi.tang@mediatek.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20250914122943.10412-1-xiangzhi.tang@mediatek.com> References: <20250914122943.10412-1-xiangzhi.tang@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 new binding document for MediaTek Video Companion Processor(VCP) on MediaTek mt8196. Signed-off-by: Xiangzhi Tang --- .../remoteproc/mediatek,mt8196-vcp.yaml | 165 ++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/mediatek,m= t8196-vcp.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/mediatek,mt8196-v= cp.yaml b/Documentation/devicetree/bindings/remoteproc/mediatek,mt8196-vcp.= yaml new file mode 100644 index 000000000000..71a55943843b --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/mediatek,mt8196-vcp.yaml @@ -0,0 +1,165 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/mediatek,mt8196-vcp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Video Companion Processor (VCP) + +maintainers: + - Xiangzhi Tang + +description: + The MediaTek VCP enables the SoC control the MediaTek Video Companion Ri= sc-V coprocessor. + +properties: + compatible: + enum: + - mediatek,mt8196-vcp + + reg: + items: + - description: sram base + - description: cfg group IO + - description: cfg core group IO + - description: cfg sec group IO + - description: vcp rdy group IO + + reg-names: + items: + - const: sram + - const: cfg + - const: cfg_core + - const: cfg_sec + - const: vcp_vlp_ao_rsvd7 + + interrupts: + maxItems: 1 + + mboxes: + maxItems: 5 + + mbox-names: + maxItems: 5 + + power-domains: + maxItems: 1 + + iommus: + description: + Using MediaTek iommu to apply larb ports for Multimedia Memory + Management Unit and address translation + Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml + maxItems: 1 + + memory-region: + maxItems: 1 + +patternProperties: + "^vcp@[a-f0-9]+$": + type: object + description: + The MediaTek VCP integrated to SoC might be a multi-core version. + The other cores are represented as child nodes of the boot core. + There are some integration differences for the IP like the usage of + address translator for translating SoC bus addresses into address + space for the processor. + + The SRAM are shared by all cores, each VCP core only using a piece + SRAM memory. The power of SRAM should be enabled before booting VCP = cores. + The size of SRAM are varied on differnt SoCs. + + The VCP cores has differences on different SoCs to support for + Hart. + + properties: + compatible: + enum: + - mediatek,vcp-core + + reg: + description: The base address and size of SRAM. + maxItems: 1 + + reg-names: + const: sram + + mtk,vcp-core-twohart: + enum: [0, 1] + $ref: /schemas/types.yaml#/definitions/uint32 + + mtk,vcp-sram-offset: + description: + Allocated SRAM memory for each VCP core used. + $ref: /schemas/types.yaml#/definitions/uint32 + + required: + - compatible + - reg + - reg-names + - mtk,vcp-core-twohart + - mtk,vcp-sram-offset + + additionalProperties: false + +required: + - compatible + - reg + - reg-names + - interrupts + - mboxes + - mbox-names + - power-domains + - iommus + - memory-region + +additionalProperties: false + +examples: + - | + #include + #include + #include + + vcp: vcp@31800000 { + compatible =3D "mediatek,mt8196-vcp"; + reg =3D <0x31800000 0x60000>, + <0x31a04000 0xa000>, + <0x31bd0000 0x1000>, + <0x31a70020 0x100>, + <0x1c00091c 0x4>; + reg-names =3D "sram", + "cfg", + "cfg_core", + "cfg_sec", + "vcp_vlp_ao_rsvd7"; + + interrupts =3D ; + + mboxes =3D <&vcp_mailbox0>, + <&vcp_mailbox1>, + <&vcp_mailbox2>, + <&vcp_mailbox3>, + <&vcp_mailbox4>; + mbox-names =3D "mbox0", "mbox1", "mbox2", "mbox3", "mbox4"; + + power-domains =3D <&scpsys MT8196_POWER_DOMAIN_MM_PROC_DORMANT>; + iommus =3D <&mm_smmu 160>; + memory-region =3D <&vcp_resv_mem>; + + vcp@0 { + compatible =3D "mediatek,vcp-core"; + reg =3D <0x0 0x31000>; + reg-names =3D "sram"; + mtk,vcp-core-twohart =3D <1>; + mtk,vcp-sram-offset =3D <0x0>; + }; + + vcp@31000 { + compatible =3D "mediatek,vcp-core"; + reg =3D <0x31000 0x60000>; + reg-names =3D "sram"; + mtk,vcp-core-twohart =3D <0>; + mtk,vcp-sram-offset =3D <0x31000>; + }; + }; --=20 2.46.0