From: sashiko-bot@kernel.org
To: "Viken Dadhaniya" <viken.dadhaniya@oss.qualcomm.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: i2c: Add Qualcomm I2C target controller
Date: Sun, 02 Aug 2026 13:21:37 +0000 [thread overview]
Message-ID: <20260802132138.ACEC61F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260802-i2c-qcom-slave-v2-1-27653118fa75@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The `pinctrl-names` property will reject device trees that specify only the 'default' state because it is missing `minItems: 1`.
--
--- Patch [1]: [PATCH v2 1/2] dt-bindings: i2c: Add Qualcomm I2C target controller ---
commit 3beba2240037bb340190bec9ca3218b520506b95
Author: Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>
dt-bindings: i2c: Add Qualcomm I2C target controller
This commit adds a new device tree binding for the Qualcomm I2C target
controller, a dedicated IP distinct from existing master controllers. It
documents the required properties such as MMIO region, interrupts, clocks,
and interconnect paths, as well as optional pinctrl states.
> diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-target.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-target.yaml
> new file mode 100644
> index 0000000000000..1e34e874cc4c3
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-target.yaml
[ ... ]
> + pinctrl-0: true
> + pinctrl-1: true
> +
> + pinctrl-names:
> + items:
> + - const: default
> + - const: sleep
[Severity: Medium]
Will this strict list reject device trees that only specify the "default"
pinctrl state?
In dt-schema, an items list without an explicit minItems defaults to the
length of the list (2 in this case). This makes both "default" and "sleep"
mandatory whenever pinctrl-names is present. If it is legitimate for a
device to only define a single "default" pinctrl state, would it make sense
to add minItems: 1 here?
> +
> +required:
> + - compatible
> + - reg
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260802-i2c-qcom-slave-v2-0-27653118fa75@oss.qualcomm.com?part=1
next prev parent reply other threads:[~2026-08-02 13:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-02 13:13 [PATCH v2 0/2] Add Qualcomm I2C target controller driver Viken Dadhaniya
2026-08-02 13:13 ` [PATCH v2 1/2] dt-bindings: i2c: Add Qualcomm I2C target controller Viken Dadhaniya
2026-08-02 13:21 ` sashiko-bot [this message]
2026-08-02 13:13 ` [PATCH v2 2/2] i2c: qcom-target: Add driver for " Viken Dadhaniya
2026-08-02 13:29 ` 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=20260802132138.ACEC61F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=viken.dadhaniya@oss.qualcomm.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