Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Amber Kao" <amber.kao@ite.com.tw>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v6 1/2] dt-bindings: usb: Add ITE IT8851/IT8853 Type-C PD controllers
Date: Fri, 31 Jul 2026 10:09:39 +0000	[thread overview]
Message-ID: <20260731100939.B34741F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260731-ucsi-itepd-v6-1-d25ae12b181f@ite.com.tw>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The `#address-cells` and `#size-cells` properties are omitted from the `required` list, which allows structurally invalid device tree nodes with unit-addressed children to pass schema validation.
--

--- Patch [1]: [PATCH v6 1/2] dt-bindings: usb: Add ITE IT8851/IT8853 Type-C PD controllers ---
commit 71cd2c5efffec87b0126175a226c30906e7e82a5
Author: Amber Kao <amber.kao@ite.com.tw>

dt-bindings: usb: Add ITE IT8851/IT8853 Type-C PD controllers

This commit adds device tree bindings for the ITE IT8851 and IT8853 I2C-based
USB Type-C Power Delivery controllers. It defines the required properties
and child nodes for handling one or two Type-C ports depending on the
hardware variant.

> diff --git a/Documentation/devicetree/bindings/usb/ite,it8851.yaml b/Documentation/devicetree/bindings/usb/ite,it8851.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/ite,it8851.yaml
[ ... ]
> +patternProperties:
> +  '^connector@[01]$':
> +    $ref: /schemas/connector/usb-connector.yaml#
> +    unevaluatedProperties: false
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts

[Severity: Low]
Should #address-cells and #size-cells be included in this required block?

Since this binding has unit-addressed child nodes (connector@0 and
connector@1), omitting these properties from the required list allows
structurally invalid device tree nodes to pass YAML schema validation.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260731-ucsi-itepd-v6-0-d25ae12b181f@ite.com.tw?part=1

  reply	other threads:[~2026-07-31 10:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-31 10:02 [PATCH v6 0/2] usb: typec: ucsi: Add ITE IT8851/IT8853 support Amber Kao
2026-07-31 10:02 ` [PATCH v6 1/2] dt-bindings: usb: Add ITE IT8851/IT8853 Type-C PD controllers Amber Kao
2026-07-31 10:09   ` sashiko-bot [this message]
2026-07-31 10:02 ` [PATCH v6 2/2] usb: typec: ucsi: Add ITE IT8851/IT8853 Type-C PD controller driver Amber Kao
2026-07-31 10:13   ` sashiko-bot

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=20260731100939.B34741F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=amber.kao@ite.com.tw \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@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