From: sashiko-bot@kernel.org
To: "Wang Yang" <yang.wang@deepcomputing.io>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 05/13] dt-bindings: embedded-controller: Add SpacemiT K3 EC window
Date: Fri, 04 Dec 2026 04:32:42 +0000 [thread overview]
Message-ID: <sashiko-outbox-249093@kernel.org> (raw)
In-Reply-To: <20261204042112.2985112-6-yang.wang@deepcomputing.io>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] dt-bindings: spacemit,k3-cros-ec duplicates schema and blocks EC
sub-devices
- [Low] dt-bindings: commit message omits rationale for separate K3 EC
schema
--
commit 4f4efb4e453c6a6ced3361059125c9028c2520f6
Author: Wang Yang <yang.wang@deepcomputing.io>
> dt-bindings: embedded-controller: Add SpacemiT K3 EC window
>
> Describe the K3 non-linear peripheral window before the controller
> binding references it. Reuse the existing keyboard and I2C tunnel
> schemas. Keep the Google EC binding unchanged.
>
> Prepared with OpenAI Codex assistance.
>
> Signed-off-by: Wang Yang <yang.wang@deepcomputing.io>
[Severity: Low]
Could the commit message explain why google,cros-ec.yaml is kept unchanged
instead of extending it or sharing a common schema?
Right now it only states what the patch does without explaining why a
standalone schema is needed, why only keyboard-controller and i2c-tunnel
children are permitted, or why a SoC-specific spacemit,k3-cros-ec
compatible is used for the ChromeOS EC interface.
> diff --git a/Documentation/devicetree/bindings/embedded-controller/spacemit,k3-cros-ec.yaml b/Documentation/devicetree/bindings/embedded-controller/spacemit,k3-cros-ec.yaml
> new file mode 100644
> index 0000000000000..fa9343e3ebf7b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/embedded-controller/spacemit,k3-cros-ec.yaml
> @@ -0,0 +1,77 @@
[ ... ]
> + keyboard-controller:
> + $ref: /schemas/input/google,cros-ec-keyb.yaml#
> +
> +patternProperties:
> + "^i2c-tunnel[0-9]*$":
> + type: object
> + $ref: /schemas/i2c/google,cros-ec-i2c-tunnel.yaml#
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> +
> +additionalProperties: false
[Severity: Low]
Does closing this standalone schema with additionalProperties: false block
valid ChromeOS EC sub-devices that the driver populates?
cros_ec_register() populates all DT children via devm_of_platform_populate(),
so dtbs_check will reject standard sub-nodes such as pwm, typec, extcon,
regulator, or gpio-controller on boards using this binding.
Every property and requirement here is already a subset of
google,cros-ec.yaml, whose allOf rules already require reg and interrupts
while forbidding SPI-, RPMSG-, and FPMCU-only properties without new
conditionals. Controller bindings like mtk,scp.yaml reference it directly.
Adding spacemit,k3-cros-ec to google,cros-ec.yaml, or factoring the shared
ChromeOS EC properties and child nodes into a common schema referenced by
both, would avoid duplicating the binding and keep all EC sub-devices valid.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204042112.2985112-1-yang.wang@deepcomputing.io?part=5
next prev parent reply other threads:[~2026-12-04 4:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 4:20 [PATCH v2 00/13] Add SpacemiT K3 FML13V05 EC keyboard support Wang Yang
2026-12-04 4:21 ` [PATCH v2 05/13] dt-bindings: embedded-controller: Add SpacemiT K3 EC window Wang Yang
2026-12-04 4:32 ` sashiko-bot [this message]
2026-12-04 4:21 ` [PATCH v2 06/13] dt-bindings: bus: Add SpacemiT K3 Intel eSPI controller Wang Yang
2026-12-04 4:44 ` sashiko-bot
2026-12-04 4:21 ` [PATCH v2 10/13] riscv: dts: spacemit: Add K3 eSPI pin group Wang Yang
2026-12-04 4:41 ` sashiko-bot
2026-12-04 4:21 ` [PATCH v2 11/13] riscv: dts: spacemit: Describe the K3 eSPI controller Wang Yang
2026-12-04 4:48 ` sashiko-bot
2026-12-04 4:21 ` [PATCH v2 12/13] riscv: dts: spacemit: Enable the FML13V05 EC keyboard Wang Yang
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=sashiko-outbox-249093@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=yang.wang@deepcomputing.io \
/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