[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f44a0f08-1b00-49b4-82e6-17135138c55e@collabora.com>
Date: Fri, 12 Sep 2025 10:11:28 +0200
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
To: Ariel D'Alessandro <ariel.dalessandro@...labora.com>, airlied@...il.com,
amergnat@...libre.com, andrew+netdev@...n.ch, andrew-ct.chen@...iatek.com,
broonie@...nel.org, chunkuang.hu@...nel.org, conor+dt@...nel.org,
davem@...emloft.net, dmitry.torokhov@...il.com, edumazet@...gle.com,
flora.fu@...iatek.com, heiko@...ech.de, houlong.wei@...iatek.com,
jeesw@...fas.com, kernel@...labora.com, krzk+dt@...nel.org, kuba@...nel.org,
lgirdwood@...il.com, linus.walleij@...aro.org,
louisalexis.eyraud@...labora.com, luiz.dentz@...il.com,
maarten.lankhorst@...ux.intel.com, marcel@...tmann.org,
matthias.bgg@...il.com, mchehab@...nel.org, minghsiu.tsai@...iatek.com,
mripard@...nel.org, p.zabel@...gutronix.de, pabeni@...hat.com,
robh@...nel.org, sean.wang@...nel.org, simona@...ll.ch,
support.opensource@...semi.com, tiffany.lin@...iatek.com,
tzimmermann@...e.de, yunfei.dong@...iatek.com
Cc: devicetree@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linux-arm-kernel@...ts.infradead.org, linux-bluetooth@...r.kernel.org,
linux-gpio@...r.kernel.org, linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-media@...r.kernel.org,
linux-mediatek@...ts.infradead.org, linux-rockchip@...ts.infradead.org,
linux-sound@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH v2 02/12] dt-bindings: media: Convert MediaTek mt8173-vpu
bindings to DT schema
Il 11/09/25 17:09, Ariel D'Alessandro ha scritto:
> Convert the existing text-based DT bindings for Mediatek MT8173 Video
> Processor Unit to a DT schema.
>
> Signed-off-by: Ariel D'Alessandro <ariel.dalessandro@...labora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
> ---
> .../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.yaml 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 <ariel.dalessandro@...labora.com>
> +
> +description:
> + Video Processor Unit is a HW video controller. It controls HW Codec including
> + 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 <dt-bindings/clock/mt8173-clk.h>
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> + soc {
> + #address-cells = <2>;
> + #size-cells = <2>;
> +
> + vpu: vpu@...20000 {
> + compatible = "mediatek,mt8173-vpu";
> + reg = <0 0x10020000 0 0x30000>,
> + <0 0x10050000 0 0x100>;
> + reg-names = "tcm", "cfg_reg";
> + interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&topckgen CLK_TOP_SCP_SEL>;
> + clock-names = "main";
> + memory-region = <&vpu_dma_reserved>;
> + };
> + };
> +
> +...
Powered by blists - more mailing lists