All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Zhentao Guo" <zhentao.guo@amlogic.com>
Cc: robh@kernel.org, conor+dt@kernel.org, neil.armstrong@linaro.org,
	devicetree@vger.kernel.org, media-ci@linuxtv.org,
	linux-amlogic@lists.infradead.org
Subject: Re: [PATCH v6 3/6] media: dt-bindings: Add Amlogic V4L2 video decoder
Date: Fri, 24 Jul 2026 07:13:50 +0000	[thread overview]
Message-ID: <20260724071351.3EF411F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260724-b4-s4-vdec-upstream-v6-3-6072a7ee7428@amlogic.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The `interrupts` property allows up to 3 items but lacks descriptions (`items:`) and omits an `interrupt-names` definition.
- [Medium] The `resets` property is defined and used in the example but is missing from the `required` list.
--

--- Patch [3]: [PATCH v6 3/6] media: dt-bindings: Add Amlogic V4L2 video decoder ---
commit 289a73f667fca4eaf3038cecf5c55be6082f5801
Author: Zhentao Guo <zhentao.guo@amlogic.com>

media: dt-bindings: Add Amlogic V4L2 video decoder

This commit describes the initial support for the V4L2 stateless video decoder
driver used with the Amlogic S4 (S805X2) platform.

> diff --git a/Documentation/devicetree/bindings/media/amlogic,s4-vdec.yaml b/Documentation/devicetree/bindings/media/amlogic,s4-vdec.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/amlogic,s4-vdec.yaml
> @@ -0,0 +1,103 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

[ ... ]

> +  reg-names:
> +    items:
> +      - const: dos
> +      - const: dmc
> +
> +  interrupts:
> +    maxItems: 3

[Severity: Medium]
Is it possible to add descriptions or an interrupt-names array here?

Without descriptions for each array item or an interrupt-names property,
device tree authors do not have documentation on the required order and
purpose of the 3 interrupts.

Additionally, dt_binding_check cannot enforce the exact number of interrupts
or their order without an items list, meaning a device tree node with only
1 or 2 interrupts could silently pass validation.

> +
> +  clocks:
> +    maxItems: 3

[ ... ]

> +  amlogic,canvas:
> +    description: should point to a canvas provider node
> +    $ref: /schemas/types.yaml#/definitions/phandle
> +
> +  secure-monitor:
> +    description: phandle to the secure-monitor node
> +    $ref: /schemas/types.yaml#/definitions/phandle
> +
> +required:
> +  - compatible
> +  - reg
> +  - reg-names
> +  - interrupts
> +  - clocks
> +  - clock-names
> +  - power-domains
> +  - power-domain-names
> +  - amlogic,canvas
> +  - secure-monitor

[Severity: Medium]
Should resets be included in this required properties list?

The resets property is defined above in the schema and used in the example.

Since Amlogic video decoder hardware blocks typically require a hardware
reset line (e.g., the DOS reset) for proper initialization, omitting resets
from the required list might allow an incomplete device tree node to
silently pass schema validation but fail at runtime.

> +
> +additionalProperties: false

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260724-b4-s4-vdec-upstream-v6-0-6072a7ee7428@amlogic.com?part=3

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

WARNING: multiple messages have this Message-ID (diff)
From: sashiko-bot@kernel.org
To: "Zhentao Guo" <zhentao.guo@amlogic.com>
Cc: robh@kernel.org, conor+dt@kernel.org, neil.armstrong@linaro.org,
	devicetree@vger.kernel.org, media-ci@linuxtv.org,
	linux-amlogic@lists.infradead.org
Subject: Re: [PATCH v6 3/6] media: dt-bindings: Add Amlogic V4L2 video decoder
Date: Fri, 24 Jul 2026 07:13:50 +0000	[thread overview]
Message-ID: <20260724071351.3EF411F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260724-b4-s4-vdec-upstream-v6-3-6072a7ee7428@amlogic.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The `interrupts` property allows up to 3 items but lacks descriptions (`items:`) and omits an `interrupt-names` definition.
- [Medium] The `resets` property is defined and used in the example but is missing from the `required` list.
--

--- Patch [3]: [PATCH v6 3/6] media: dt-bindings: Add Amlogic V4L2 video decoder ---
commit 289a73f667fca4eaf3038cecf5c55be6082f5801
Author: Zhentao Guo <zhentao.guo@amlogic.com>

media: dt-bindings: Add Amlogic V4L2 video decoder

This commit describes the initial support for the V4L2 stateless video decoder
driver used with the Amlogic S4 (S805X2) platform.

> diff --git a/Documentation/devicetree/bindings/media/amlogic,s4-vdec.yaml b/Documentation/devicetree/bindings/media/amlogic,s4-vdec.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/amlogic,s4-vdec.yaml
> @@ -0,0 +1,103 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

[ ... ]

> +  reg-names:
> +    items:
> +      - const: dos
> +      - const: dmc
> +
> +  interrupts:
> +    maxItems: 3

[Severity: Medium]
Is it possible to add descriptions or an interrupt-names array here?

Without descriptions for each array item or an interrupt-names property,
device tree authors do not have documentation on the required order and
purpose of the 3 interrupts.

Additionally, dt_binding_check cannot enforce the exact number of interrupts
or their order without an items list, meaning a device tree node with only
1 or 2 interrupts could silently pass validation.

> +
> +  clocks:
> +    maxItems: 3

[ ... ]

> +  amlogic,canvas:
> +    description: should point to a canvas provider node
> +    $ref: /schemas/types.yaml#/definitions/phandle
> +
> +  secure-monitor:
> +    description: phandle to the secure-monitor node
> +    $ref: /schemas/types.yaml#/definitions/phandle
> +
> +required:
> +  - compatible
> +  - reg
> +  - reg-names
> +  - interrupts
> +  - clocks
> +  - clock-names
> +  - power-domains
> +  - power-domain-names
> +  - amlogic,canvas
> +  - secure-monitor

[Severity: Medium]
Should resets be included in this required properties list?

The resets property is defined above in the schema and used in the example.

Since Amlogic video decoder hardware blocks typically require a hardware
reset line (e.g., the DOS reset) for proper initialization, omitting resets
from the required list might allow an incomplete device tree node to
silently pass schema validation but fail at runtime.

> +
> +additionalProperties: false

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260724-b4-s4-vdec-upstream-v6-0-6072a7ee7428@amlogic.com?part=3

  reply	other threads:[~2026-07-24  7:13 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-24  7:04 [PATCH v6 0/6] Add Amlogic stateless H.264 video decoder for S4 Zhentao Guo via B4 Relay
2026-07-24  7:04 ` Zhentao Guo
2026-07-24  7:04 ` Zhentao Guo via B4 Relay
2026-07-24  7:04 ` [PATCH v6 1/6] firmware: meson: sm: Add video firmware loading SMC call Zhentao Guo via B4 Relay
2026-07-24  7:04   ` Zhentao Guo
2026-07-24  7:04   ` Zhentao Guo via B4 Relay
2026-07-24  7:16   ` sashiko-bot
2026-07-24  7:16     ` sashiko-bot
2026-07-24  7:04 ` [PATCH v6 2/6] firmware: meson: sm: video firmware loading via secure monitor Zhentao Guo via B4 Relay
2026-07-24  7:04   ` Zhentao Guo
2026-07-24  7:04   ` Zhentao Guo via B4 Relay
2026-07-24  7:24   ` sashiko-bot
2026-07-24  7:24     ` sashiko-bot
2026-07-24 10:22   ` Ferass El Hafidi
2026-07-24 10:22     ` Ferass El Hafidi
2026-07-24  7:04 ` [PATCH v6 3/6] media: dt-bindings: Add Amlogic V4L2 video decoder Zhentao Guo via B4 Relay
2026-07-24  7:04   ` Zhentao Guo
2026-07-24  7:04   ` Zhentao Guo via B4 Relay
2026-07-24  7:13   ` sashiko-bot [this message]
2026-07-24  7:13     ` sashiko-bot
2026-07-24  7:04 ` [PATCH v6 4/6] decoder: Add V4L2 stateless H.264 decoder driver Zhentao Guo via B4 Relay
2026-07-24  7:04   ` Zhentao Guo
2026-07-24  7:04   ` Zhentao Guo via B4 Relay
2026-07-24  7:28   ` sashiko-bot
2026-07-24  7:28     ` sashiko-bot
2026-07-24  7:04 ` [PATCH v6 5/6] arm64: dts: amlogic: Add video decoder driver support for S4 SOCs Zhentao Guo via B4 Relay
2026-07-24  7:04   ` Zhentao Guo
2026-07-24  7:04   ` Zhentao Guo via B4 Relay
2026-07-24  7:16   ` sashiko-bot
2026-07-24  7:16     ` sashiko-bot
2026-07-24  7:04 ` [PATCH v6 6/6] arm64: defconfig: Enable CONFIG_VIDEO_AMLOGIC_VDEC Zhentao Guo via B4 Relay
2026-07-24  7:04   ` Zhentao Guo
2026-07-24  7:04   ` Zhentao Guo via B4 Relay
2026-07-24 10:13 ` [PATCH v6 0/6] Add Amlogic stateless H.264 video decoder for S4 Ferass El Hafidi
2026-07-24 10:13   ` Ferass El Hafidi

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=20260724071351.3EF411F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=media-ci@linuxtv.org \
    --cc=neil.armstrong@linaro.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=zhentao.guo@amlogic.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.