Devicetree
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
Cc: sashiko-reviews@lists.linux.dev, conor+dt@kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH v9 01/14] dt-bindings: media: qcom,glymur-iris: Add glymur video codec
Date: Thu, 16 Jul 2026 11:54:34 -0500	[thread overview]
Message-ID: <20260716165434.GA290489-robh@kernel.org> (raw)
In-Reply-To: <b179ac7a-af91-da67-3232-e9e41203ade0@oss.qualcomm.com>

On Thu, Jul 16, 2026 at 08:37:17AM +0530, Vishnu Reddy wrote:
> 
> On 7/15/2026 7:52 PM, sashiko-bot@kernel.org wrote:
> > Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> > - [Low] Unnecessary `#address-cells` and `#size-cells` properties on a node without addressable children.
> > --
> >
> > --- Patch [1]: [PATCH v9 01/14] dt-bindings: media: qcom,glymur-iris: Add glymur video codec ---
> > commit 8ca344fa9395fcf1d13bd1ea93de8bee21a5c176
> > Author: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
> >
> > dt-bindings: media: qcom,glymur-iris: Add glymur video codec
> >
> > This commit adds the device tree binding for the Qualcomm Glymur Iris video
> > codec. It introduces a new dual-core architecture requiring additional
> > power domains and clocks, and updates the maxItems limits in the common
> > venus schema to accommodate these changes.
> >
> >> diff --git a/Documentation/devicetree/bindings/media/qcom,glymur-iris.yaml b/Documentation/devicetree/bindings/media/qcom,glymur-iris.yaml
> >> new file mode 100644
> >> --- /dev/null
> >> +++ b/Documentation/devicetree/bindings/media/qcom,glymur-iris.yaml
> >> @@ -0,0 +1,255 @@
> > [ ... ]
> >> +  interconnect-names:
> >> +    items:
> >> +      - const: cpu-cfg
> >> +      - const: video-mem
> >> +
> >> +  '#address-cells':
> >> +    const: 2
> >> +
> >> +  '#size-cells':
> >> +    const: 2
> > [Severity: Low]
> > Are these properties necessary here? The schema strictly enforces const: 2
> > for #address-cells and #size-cells at the root node, but none of the child
> > nodes (non-pixel, pixel, firmware) define a reg property, and the parent
> > does not define a ranges property. 
> >
> > Will this cause the DeviceTree compiler (dtc) to emit an 
> > avoid_unnecessary_addr_size warning when compiling device trees using this
> > node?
> >
> >> +
> >> +  non-pixel:
> >> +    type: object
> > [ ... ]
> >> +        resets = <&gcc_video_axi0c_clk_ares>,
> >> +                 <&gcc_video_axi0_clk_ares>,
> >> +                 <&videocc_mvs0c_freerun_clk_ares>,
> >> +                 <&videocc_mvs0_freerun_clk_ares>,
> >> +                 <&gcc_video_axi1_clk_ares>,
> >> +                 <&videocc_mvs1_freerun_clk_ares>;
> >> +        reset-names = "core_bus",
> >> +                      "vcodec0_bus",
> >> +                      "core",
> >> +                      "vcodec0_core",
> >> +                      "vcodec1_bus",
> >> +                      "vcodec1_core";
> >> +
> >> +        #address-cells = <2>;
> >> +        #size-cells = <2>;
> > [Severity: Low]
> > Does the example need #address-cells and #size-cells? It demonstrates their
> > use without any child nodes containing reg properties, which directly causes a
> > dtc warning during dt_binding_check validation.
> 
> Without #address-cells and #size-cells, getting the below kernel warning prints.
> [    6.953615] Missing '#address-cells' in /soc@0/video-codec@aa00000
> [    6.968288] WARNING: drivers/of/base.c:115 at of_bus_n_addr_cells+0xa4/0xf4
> 
> [    7.440909] Missing '#size-cells' in /soc@0/video-codec@aa00000
> [    7.447044] WARNING: drivers/of/base.c:142 at of_bus_n_size_cells+0xa4/0xf8

Then the kernel is wrong.

Rob

  reply	other threads:[~2026-07-16 16:54 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-15 14:09 [PATCH v9 00/14] media: iris: Add support for glymur platform Vishnu Reddy
2026-07-15 14:09 ` [PATCH v9 01/14] dt-bindings: media: qcom,glymur-iris: Add glymur video codec Vishnu Reddy
2026-07-15 14:22   ` sashiko-bot
2026-07-16  3:07     ` Vishnu Reddy
2026-07-16 16:54       ` Rob Herring [this message]
2026-07-16  7:40   ` Krzysztof Kozlowski
2026-07-15 14:09 ` [PATCH v9 02/14] media: iris: Add hooks to initialize and tear down context banks Vishnu Reddy
2026-07-15 14:23   ` sashiko-bot
2026-07-15 14:09 ` [PATCH v9 03/14] media: iris: Add helper to create a context bank device Vishnu Reddy
2026-07-15 14:09 ` [PATCH v9 04/14] media: iris: Add helper to select relevant " Vishnu Reddy
2026-07-15 14:29   ` sashiko-bot
2026-07-16  3:15     ` Vishnu Reddy
2026-07-15 14:09 ` [PATCH v9 05/14] media: iris: Skip DMA mask setting to core device when IOMMU is not mapped Vishnu Reddy
2026-07-15 14:22   ` sashiko-bot
2026-07-15 14:10 ` [PATCH v9 06/14] media: iris: Enable Secure PAS support with IOMMU managed by Linux Vishnu Reddy
2026-07-15 14:37   ` sashiko-bot
2026-07-16  3:25     ` Vishnu Reddy
2026-07-15 14:10 ` [PATCH v9 07/14] media: iris: Replace enum-indexed clock and power domain tables with per-block structures Vishnu Reddy
2026-07-15 14:39   ` sashiko-bot
2026-07-15 14:10 ` [PATCH v9 08/14] media: iris: Add power sequence for glymur Vishnu Reddy
2026-07-15 14:36   ` sashiko-bot
2026-07-15 14:10 ` [PATCH v9 09/14] media: iris: Handle CPU_CS_SCIACMDARG3 register write via program bootup registers hook Vishnu Reddy
2026-07-15 14:10 ` [PATCH v9 10/14] media: iris: Add support to select core for dual core platforms Vishnu Reddy
2026-07-15 14:42   ` sashiko-bot
2026-07-15 14:10 ` [PATCH v9 11/14] media: iris: Add hooks for pixel and non-pixel context banks Vishnu Reddy
2026-07-15 14:52   ` sashiko-bot
2026-07-15 15:27   ` Bryan O'Donoghue
2026-07-16  2:59     ` Vishnu Reddy
2026-07-15 14:10 ` [PATCH v9 12/14] media: iris: Add platform data for glymur Vishnu Reddy
2026-07-15 14:10 ` [PATCH v9 13/14] arm64: dts: qcom: glymur: Add iris video node Vishnu Reddy
2026-07-15 15:18   ` sashiko-bot
2026-07-15 14:10 ` [PATCH v9 14/14] arm64: dts: qcom: glymur-crd: Enable iris video codec node Vishnu Reddy

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=20260716165434.GA290489-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=busanna.reddy@oss.qualcomm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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