From: Krzysztof Kozlowski <krzk@kernel.org>
To: "Yassine Ouaissa" <yassine.ouaissa@allegrodvt.com>,
"Michael Tretter" <m.tretter@pengutronix.de>,
"Pengutronix Kernel Team" <kernel@pengutronix.de>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Michal Simek" <michal.simek@amd.com>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Heiko Stuebner" <heiko@sntech.de>,
"Aradhya Bhatia" <a-bhatia1@ti.com>,
"Rafał Miłecki" <rafal@milecki.pl>,
"Junhao Xie" <bigfoot@classfun.cn>,
"Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>,
"Kever Yang" <kever.yang@rock-chips.com>,
"Hans Verkuil" <hverkuil@xs4all.nl>,
"Christophe JAILLET" <christophe.jaillet@wanadoo.fr>,
"Andrzej Pietrasiewicz" <andrzejtp2010@gmail.com>,
"Joe Hattori" <joe@pf.is.s.u-tokyo.ac.jp>,
"Gaosheng Cui" <cuigaosheng1@huawei.com>,
"Wolfram Sang" <wsa+renesas@sang-engineering.com>,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Ricardo Ribalda" <ribalda@chromium.org>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 3/3] media: allegro-dvt: Add DT-bindings for the Gen 3 IP
Date: Sun, 11 May 2025 22:03:30 +0200 [thread overview]
Message-ID: <595adbaa-15b4-4917-b3ad-9bac3e2333e2@kernel.org> (raw)
In-Reply-To: <20250511144752.504162-4-yassine.ouaissa@allegrodvt.com>
On 11/05/2025 16:47, Yassine Ouaissa wrote:
> Add the device-tree bindings for the allegro-dvt Gen 3 IP decoders, and
> update the MAINTAINERS file.
>
> Signed-off-by: Yassine Ouaissa <yassine.ouaissa@allegrodvt.com>
> ---
> .../bindings/media/allegrodvt,al300-vdec.yaml | 86 +++++++++++++++++++
Looks untested so limited review follows.
A nit, subject: drop second/last, redundant "DT bindings". The
"dt-bindings" prefix is already stating that these are DT bindings.
See also:
https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18
> MAINTAINERS | 1 +
> 2 files changed, 87 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/media/allegrodvt,al300-vdec.yaml
>
Please organize the patch documenting compatible (DT bindings) before
their user.
See also:
https://elixir.bootlin.com/linux/v6.14-rc6/source/Documentation/devicetree/bindings/submitting-patches.rst#L46
> diff --git a/Documentation/devicetree/bindings/media/allegrodvt,al300-vdec.yaml b/Documentation/devicetree/bindings/media/allegrodvt,al300-vdec.yaml
> new file mode 100644
> index 000000000000..ea4a55de570c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/allegrodvt,al300-vdec.yaml
> @@ -0,0 +1,86 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/media/allegrodvt,al300-vdec.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Allegro DVT Video IP Decoder Gen 3
> +
> +maintainers:
> + - Yassine OUAISSA <yassine.ouaissa@allegrodvt.com>
> +
> +description: |-
> + The al300-vdec represents the latest generation of Allegro DVT IP decoding technology, offering
Wrap at 80, see Linux coding style.
> + significant advancements over its predecessors. This new decoder features
> + enhanced processing capabilities with improved throughput and reduced latency.
> +
> + Communication between the host driver software and the MCU is implemented through
> + a specialized mailbox interface mechanism. This mailbox system provides a
> + structured channel for exchanging commands, parameters, and status information
> + between the host CPU and the MCU controlling the codec engines.
> +
> +properties:
> + compatible:
> + const: allegrodvt,al300-vdec
Undocumented prefix.
What is the actual device name? al300? Can you have al300-adec? or
al300-dec?
> +
> + reg:
> + items:
> + - description: The registers
> + - description: the MCU APB register
> +
> + reg-names:
> + items:
> + - const: regs
> + - const: apb
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + items:
> + - description: MCU clock
> +
> + clock-names:
> + items:
> + - const: mcu_clk
Drop clock-names, pretty obvious
> +
> + memory-region:
> + items:
> + - description: Used to allocate memory for the MCU firmware,
> + and is also used for various operational buffers required by the MCU during codec operations.
> +
> + firmware-name:
> + $ref: /schemas/types.yaml#/definitions/string
Drop, type is already fixed.
missing maxItems: 1
> + description:
> + If present, name of the file within the firmware search path containing
> + the MCU firmware.
> +
> +required:
> + - compatible
> + - reg
> + - reg-names
> + - interrupts
> + - clocks
> + - clock-names
> +
> +additionalProperties: False
> +
> +examples:
> + - |
> + axi {
> + #address-cells = <2>;
> + #size-cells = <2>;
> +
> + ald300: ald300@a0120000 {
Drop unused label.
Node names should be generic. See also an explanation and list of
examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
> + compatible = "allegrodvt,al300-vdec";
> + reg = <0 0xa0120000 0 0x80000>,
Here 0 is not hex
> + <0x01 0x8000000 0x00 0x8000000>;
but here is hex?
Also misaligned.
Also: very odd large address space.
>
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-05-11 20:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-11 14:47 [PATCH 0/3] media: Add Gen 3 IP stateful decoder driver Yassine Ouaissa
2025-05-11 14:47 ` [PATCH 1/3] media: allegro-dvt: Move the current driver to a subdirectory Yassine Ouaissa
2025-05-11 14:47 ` [PATCH 2/3] media: allegro-dvt: Add Gen 3 IP stateful decoder driver Yassine Ouaissa
2025-05-11 20:49 ` kernel test robot
2025-05-12 22:39 ` kernel test robot
2025-05-11 14:47 ` [PATCH 3/3] media: allegro-dvt: Add DT-bindings for the Gen 3 IP Yassine Ouaissa
2025-05-11 16:38 ` Rob Herring (Arm)
2025-05-11 20:03 ` Krzysztof Kozlowski [this message]
2025-05-12 8:23 ` Yassine Ouaissa
2025-05-12 10:42 ` Krzysztof Kozlowski
2025-05-12 11:17 ` Yassine Ouaissa
2025-05-14 8:01 ` Krzysztof Kozlowski
2025-05-14 7:59 ` Krzysztof Kozlowski
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=595adbaa-15b4-4917-b3ad-9bac3e2333e2@kernel.org \
--to=krzk@kernel.org \
--cc=a-bhatia1@ti.com \
--cc=andrzejtp2010@gmail.com \
--cc=bigfoot@classfun.cn \
--cc=christophe.jaillet@wanadoo.fr \
--cc=conor+dt@kernel.org \
--cc=cuigaosheng1@huawei.com \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=hverkuil@xs4all.nl \
--cc=joe@pf.is.s.u-tokyo.ac.jp \
--cc=kernel@pengutronix.de \
--cc=kever.yang@rock-chips.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=m.tretter@pengutronix.de \
--cc=manivannan.sadhasivam@linaro.org \
--cc=mchehab@kernel.org \
--cc=michal.simek@amd.com \
--cc=neil.armstrong@linaro.org \
--cc=rafal@milecki.pl \
--cc=ribalda@chromium.org \
--cc=robh@kernel.org \
--cc=u.kleine-koenig@baylibre.com \
--cc=wsa+renesas@sang-engineering.com \
--cc=yassine.ouaissa@allegrodvt.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