From: Krzysztof Kozlowski <krzk@kernel.org>
To: Matthew Majewski <mattwmajewski@gmail.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Hans Verkuil <hverkuil@xs4all.nl>,
"Dr. David Alan Gilbert" <linux@treblig.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Uwe Kleine-Konig <u.kleine-koenig@baylibre.com>,
Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
Cc: devicetree@vger.kernel.org, linux-media@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] media: dt-bindings: Add dt bindings for m2m-deinterlace device
Date: Wed, 12 Feb 2025 18:22:00 +0100 [thread overview]
Message-ID: <5e9432d7-0be1-4d98-9a61-cd288e53e772@kernel.org> (raw)
In-Reply-To: <20250212170901.3881838-2-mattwmajewski@gmail.com>
On 12/02/2025 18:09, Matthew Majewski wrote:
> Create a new yaml schema file to describe the device tree bindings for
> the generic m2m-deinterlace driver.
Bindings are for hardware, not drivers, and usually not generic.
Please describe here exemplary devices.
>
> Signed-off-by: Matthew Majewski <mattwmajewski@gmail.com>
> ---
> .../bindings/media/m2m-deinterlace.yaml | 41 +++++++++++++++++++
> 1 file changed, 41 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/media/m2m-deinterlace.yaml
>
> diff --git a/Documentation/devicetree/bindings/media/m2m-deinterlace.yaml b/Documentation/devicetree/bindings/media/m2m-deinterlace.yaml
> new file mode 100644
> index 000000000000..3ac9c1e7be88
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/m2m-deinterlace.yaml
> @@ -0,0 +1,41 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/media/m2m-deinterlace.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: M2M Deinterlacer
> +
> +maintainers:
> + - Mauro Carvalho Chehab <mchehab@kernel.org>
> +
> +description: |
> + A generic memory2memory device for deinterlacing video
> + using dmaengine.
And what is this generic device supposed to do? What fits to generic device?
> +
> +properties:
> + compatible:
> + const: m2m-deinterlace
> +
> + dma-names:
> + items:
> + - const: rxtx
> +
> + dmas:
> + items:
> + - description: mem-to-mem capable DMA channel
> +
> +required:
> + - compatible
> + - dma-names
> + - dmas
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + m2m-deinterlace {
> + compatible = "m2m-deinterlace";
> + dma-names = "rxtx";
> + dmas = <&edma 20 0>;
This all looks rather like bindings for driver and not even quite
generic because looks quite simple. I guess media folks will provide
more input, but anyway it looks a bit not-DT-enough.
> + };
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-02-12 17:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-12 17:08 [PATCH 0/2] media: m2m-deinterlace: add device-tree support Matthew Majewski
2025-02-12 17:09 ` [PATCH 1/2] media: dt-bindings: Add dt bindings for m2m-deinterlace device Matthew Majewski
2025-02-12 17:22 ` Krzysztof Kozlowski [this message]
2025-02-12 22:29 ` Matthew Majewski
2025-02-18 8:34 ` Krzysztof Kozlowski
2025-02-12 19:26 ` Rob Herring (Arm)
2025-02-13 19:48 ` Matthew Majewski
2025-02-12 17:09 ` [PATCH 2/2] media: m2m-deinterlace: add device-tree support Matthew Majewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5e9432d7-0be1-4d98-9a61-cd288e53e772@kernel.org \
--to=krzk@kernel.org \
--cc=andrzejtp2010@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hverkuil@xs4all.nl \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux@treblig.org \
--cc=mattwmajewski@gmail.com \
--cc=mchehab@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=robh@kernel.org \
--cc=u.kleine-koenig@baylibre.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox