From: Matthew Majewski <mattwmajewski@gmail.com>
To: 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,
Matthew Majewski <mattwmajewski@gmail.com>
Subject: [PATCH v2 1/2] media: dt-bindings: Add dt bindings for m2m-deinterlace device
Date: Fri, 14 Feb 2025 18:17:58 -0500 [thread overview]
Message-ID: <20250214231759.119481-2-mattwmajewski@gmail.com> (raw)
In-Reply-To: <20250214231759.119481-1-mattwmajewski@gmail.com>
Create a new yaml schema file to describe the device tree bindings for
generic m2m-deinterlace device.
This device is supported on any hardware that provides a MEM_TO_MEM
capable dma channel with interleaved trasfer support. Device tree
bindings are for providing appropriate dma channel to device.
Signed-off-by: Matthew Majewski <mattwmajewski@gmail.com>
---
.../bindings/media/m2m-deinterlace.yaml | 44 +++++++++++++++++++
1 file changed, 44 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..e39599d7d07b
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/m2m-deinterlace.yaml
@@ -0,0 +1,44 @@
+# 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. It can
+ convert between interlaced buffer formats and can convert interlaced to
+ progressive using a simple line-doubling algorithm. This device can be used on
+ any hardware that provides a MEM_TO_MEM capable dma controller that supports
+ interleaved transfers.
+
+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>;
+ };
--
2.25.1
next prev parent reply other threads:[~2025-02-14 23:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-14 23:17 [PATCH v2 0/2] media: m2m-deinterlace: add device-tree support Matthew Majewski
2025-02-14 23:17 ` Matthew Majewski [this message]
2025-02-18 8:30 ` [PATCH v2 1/2] media: dt-bindings: Add dt bindings for m2m-deinterlace device Krzysztof Kozlowski
2025-02-26 22:41 ` Matthew Majewski
2025-03-03 7:31 ` Krzysztof Kozlowski
2025-03-03 7:34 ` Krzysztof Kozlowski
2025-03-03 15:21 ` Matthew Majewski
2025-03-04 7:26 ` Krzysztof Kozlowski
2025-02-14 23:17 ` [PATCH v2 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=20250214231759.119481-2-mattwmajewski@gmail.com \
--to=mattwmajewski@gmail.com \
--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=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