From nobody Thu Oct 2 21:28:35 2025 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (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 7858D15746E; Thu, 11 Sep 2025 15:13:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.112 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757603616; cv=pass; b=rO+8nFcsrRoJam0EcpD9hbGmws/uHJv6M+3FMZNcmEIClzqRyKua3YBQqNapquNFPiqnlTkozdH13bwcV3znd72zv5y0gepohy+OOZzrcqYODfxJL2TANOe3kN1CkIXoMll0GPWRntGp4i3Ym1O9duyhCLVyoj7w59b3l9sf3WI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757603616; c=relaxed/simple; bh=AnONaMIMkj2CgTS6ipSc1BUFSllqZe4llQV5gKz47no=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H13mavVnlK2tSDdAv6LbqdWnvQ+2j1J4h3Y+1fUSWwTRXJ2FJTXYkyC7wK2aM1K6zy1MFusvZ9JIBnJCaP5AxOuyRVdZexwjuYR6DlAFk0W9+ksukAio1AGpByhlIJPl6xJPiJ+i0Rnh2JIzVVRy5ZglBMbxQyT6/KO3Ib8mkM0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=ariel.dalessandro@collabora.com header.b=bzw7cccg; arc=pass smtp.client-ip=136.143.188.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=ariel.dalessandro@collabora.com header.b="bzw7cccg" ARC-Seal: i=1; a=rsa-sha256; t=1757603562; cv=none; d=zohomail.com; s=zohoarc; b=Sk8xiL21oMFfmPf8BFpYOcwdsmVz43m+6vORj5aRkJ/5w/3kNpY2g97ZOaA8A4xhr+fx28boLz378h6EXrmqnYeydEwVUpMtmqSiVlb9nr9ziUU16u4APQnpM/JsBevvyRb6+NgSX6hmWAzHFb2gy65/okhj/05r5ISeMB28WyI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1757603562; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=wttN825obVRDY+218WZP0Gddgh8r79xjMuher+/aCXo=; b=QrtsjRvu+E91QxAhifEmz7VjYzPO3OgslSBOgfhMOFbglbDp1iYSQfeEpFfciftQjkgiqak3XuqAxAVh3W/U9aQ9u1GCXIZys5AInrvQL4FAwDor6VKdSm0ttavjmbtmq+PGAQTRWKUAOmLUCpRwUI96USDGldQZuCEYBq4FaCk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=ariel.dalessandro@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1757603562; s=zohomail; d=collabora.com; i=ariel.dalessandro@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=wttN825obVRDY+218WZP0Gddgh8r79xjMuher+/aCXo=; b=bzw7cccg9BscPjDXn0C3Q11CjLDHw1a3dxoJx4+dvaKyco0kbRgws6Lzf/iOjBiL BBc2H9w1qyEDm++UA5SlR/3TQyPNwgLtcoV3QpuUFykRWJW/ZYsdP77gnrD8PYecg/p fsNnn9tXa7l5mDtYiIatOnd6u5B5qFxogWIjneq8= Received: by mx.zohomail.com with SMTPS id 1757603561608572.0058830992018; Thu, 11 Sep 2025 08:12:41 -0700 (PDT) From: Ariel D'Alessandro To: airlied@gmail.com, amergnat@baylibre.com, andrew+netdev@lunn.ch, andrew-ct.chen@mediatek.com, angelogioacchino.delregno@collabora.com, ariel.dalessandro@collabora.com, broonie@kernel.org, chunkuang.hu@kernel.org, conor+dt@kernel.org, davem@davemloft.net, dmitry.torokhov@gmail.com, edumazet@google.com, flora.fu@mediatek.com, heiko@sntech.de, houlong.wei@mediatek.com, jeesw@melfas.com, kernel@collabora.com, krzk+dt@kernel.org, kuba@kernel.org, lgirdwood@gmail.com, linus.walleij@linaro.org, louisalexis.eyraud@collabora.com, luiz.dentz@gmail.com, maarten.lankhorst@linux.intel.com, marcel@holtmann.org, matthias.bgg@gmail.com, mchehab@kernel.org, minghsiu.tsai@mediatek.com, mripard@kernel.org, p.zabel@pengutronix.de, pabeni@redhat.com, robh@kernel.org, sean.wang@kernel.org, simona@ffwll.ch, support.opensource@diasemi.com, tiffany.lin@mediatek.com, tzimmermann@suse.de, yunfei.dong@mediatek.com Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-bluetooth@vger.kernel.org, linux-gpio@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-sound@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v2 02/12] dt-bindings: media: Convert MediaTek mt8173-vpu bindings to DT schema Date: Thu, 11 Sep 2025 12:09:51 -0300 Message-ID: <20250911151001.108744-3-ariel.dalessandro@collabora.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250911151001.108744-1-ariel.dalessandro@collabora.com> References: <20250911151001.108744-1-ariel.dalessandro@collabora.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 X-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" Convert the existing text-based DT bindings for Mediatek MT8173 Video Processor Unit to a DT schema. Signed-off-by: Ariel D'Alessandro Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Krzysztof Kozlowski --- .../bindings/media/mediatek,mt8173-vpu.yaml | 74 +++++++++++++++++++ .../bindings/media/mediatek-vpu.txt | 31 -------- 2 files changed, 74 insertions(+), 31 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mt8173= -vpu.yaml delete mode 100644 Documentation/devicetree/bindings/media/mediatek-vpu.txt diff --git a/Documentation/devicetree/bindings/media/mediatek,mt8173-vpu.ya= ml b/Documentation/devicetree/bindings/media/mediatek,mt8173-vpu.yaml new file mode 100644 index 0000000000000..8a47761f1e6b5 --- /dev/null +++ b/Documentation/devicetree/bindings/media/mediatek,mt8173-vpu.yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mt8173-vpu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek MT8173 Video Processor Unit + +maintainers: + - Ariel D'Alessandro + +description: + Video Processor Unit is a HW video controller. It controls HW Codec incl= uding + H.264/VP8/VP9 Decode, H.264/VP8 Encode and Image Processor (scale/rotate= /color + convert). + +properties: + compatible: + const: mediatek,mt8173-vpu + + reg: + maxItems: 2 + + reg-names: + items: + - const: tcm + - const: cfg_reg + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: main + + memory-region: + maxItems: 1 + +required: + - compatible + - reg + - reg-names + - interrupts + - clocks + - clock-names + - memory-region + +additionalProperties: false + +examples: + - | + #include + #include + + soc { + #address-cells =3D <2>; + #size-cells =3D <2>; + + vpu: vpu@10020000 { + compatible =3D "mediatek,mt8173-vpu"; + reg =3D <0 0x10020000 0 0x30000>, + <0 0x10050000 0 0x100>; + reg-names =3D "tcm", "cfg_reg"; + interrupts =3D ; + clocks =3D <&topckgen CLK_TOP_SCP_SEL>; + clock-names =3D "main"; + memory-region =3D <&vpu_dma_reserved>; + }; + }; + +... diff --git a/Documentation/devicetree/bindings/media/mediatek-vpu.txt b/Doc= umentation/devicetree/bindings/media/mediatek-vpu.txt deleted file mode 100644 index 2a5bac37f9a22..0000000000000 --- a/Documentation/devicetree/bindings/media/mediatek-vpu.txt +++ /dev/null @@ -1,31 +0,0 @@ -* Mediatek Video Processor Unit - -Video Processor Unit is a HW video controller. It controls HW Codec includ= ing -H.264/VP8/VP9 Decode, H.264/VP8 Encode and Image Processor (scale/rotate/c= olor convert). - -Required properties: - - compatible: "mediatek,mt8173-vpu" - - reg: Must contain an entry for each entry in reg-names. - - reg-names: Must include the following entries: - "tcm": tcm base - "cfg_reg": Main configuration registers base - - interrupts: interrupt number to the cpu. - - clocks : clock name from clock manager - - clock-names: must be main. It is the main clock of VPU - -Optional properties: - - memory-region: phandle to a node describing memory (see - Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt) - to be used for VPU extended memory; if not present, VPU may be located - anywhere in the memory - -Example: - vpu: vpu@10020000 { - compatible =3D "mediatek,mt8173-vpu"; - reg =3D <0 0x10020000 0 0x30000>, - <0 0x10050000 0 0x100>; - reg-names =3D "tcm", "cfg_reg"; - interrupts =3D ; - clocks =3D <&topckgen TOP_SCP_SEL>; - clock-names =3D "main"; - }; --=20 2.50.1