From: sashiko-bot@kernel.org
To: zjzhao <zjzhao@edatec.cn>
Cc: conor+dt@kernel.org, linux-serial@vger.kernel.org,
robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 2/2] dt-bindings: serial: Document WK2xxx SPI UART bindings
Date: Fri, 04 Sep 2026 07:28:13 +0000 [thread overview]
Message-ID: <20260904072814.435FA1F00A3E@smtp.kernel.org> (raw)
In-Reply-To: <20260904072027.67473-3-zjzhao@edatec.cn>
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] Multi-port UART device incorrectly modeled as a single flat node without subnodes, preventing per-port independent configuration.
- [Low] Missing trailing newline at the end of the YAML file.
- [Low] Missing `default` property for `clock-frequency` despite the description claiming a default exists.
--
commit beaa6c014e093e4f6483f239f3024922536014b5
Author: zjzhao <zjzhao@edatec.cn>
dt-bindings: serial: Document WK2xxx SPI UART bindings
Add a DT binding for the WK2xxx SPI to UART bridge ICs (WK2124, WK2132,
WK2168, WK2202 and WK2204). It covers the compatible strings, SPI properties,
interrupt line, and the crystal clock frequency. It also registers the wkmic
vendor prefix.
> diff --git a/Documentation/devicetree/bindings/serial/wkmic,wk2xxx.yaml b/Documentation/devicetree/bindings/serial/wkmic,wk2xxx.yaml
> new file mode 100644
> index 0000000000000..0ef76957d73f1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/serial/wkmic,wk2xxx.yaml
> @@ -0,0 +1,69 @@
[ ... ]
> + clock-frequency:
> + description:
> + Crystal or external clock frequency for the IC in Hz. The WK2xxx has
> + no internal clock, so this must match the connected crystal. Defaults
> + to 11059200 Hz when the property is absent.
> + minimum: 1
> + maximum: 30000000
[Severity: Low]
Is it possible to include the default property value of 11059200 alongside
the minimum and maximum constraints?
Schema validation tools and external parsers cannot automatically infer the
default fallback value because it is documented in text but not defined as a
JSON schema constraint.
> +
> +required:
> + - compatible
> + - reg
> +
> +allOf:
> + - $ref: /schemas/spi/spi-peripheral-props.yaml#
> + - $ref: /schemas/serial/serial.yaml#
> + - $ref: /schemas/serial/rs485.yaml#
[Severity: High]
Does this single-node model prevent independent configuration of the
individual UART ports?
Because this binding applies the serial.yaml and rs485.yaml definitions
directly to the parent SPI device node, rather than defining child nodes like
serial@0 and serial@1, all configuration properties apply globally to every
channel.
If a user needs to configure RS-485 on only one of the 4 UART channels using
device tree properties, the single flat node approach would force the driver
to apply the configuration identically to every port. Should this binding be
structured to support child nodes for individual port configuration to prevent
permanently restricting these hardware capabilities in the ABI?
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/irq.h>
> + spi {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + serial@0 {
> + compatible = "wkmic,wk2132";
> + reg = <0>;
> + spi-max-frequency = <10000000>;
> + clock-frequency = <11059200>;
> + interrupt-parent = <&gpio>;
> + interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
> + };
> + };
> \ No newline at end of file
[Severity: Low]
Could a trailing newline be added to the end of this file?
Text files without a trailing newline violate standard POSIX conventions and
kernel coding styles, which can cause issues with git diffs, patching, and
text processing tools.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260904072027.67473-1-zjzhao@edatec.cn?part=2
next prev parent reply other threads:[~2026-09-04 7:28 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-04 7:20 [PATCH 0/2] WK2xxx SPI to UART bridge driver zjzhao
2026-09-04 7:20 ` [PATCH 1/2] serial: wk2xxx: Add WK2xxx SPI UART driver zjzhao
2026-09-04 7:35 ` sashiko-bot
2026-09-04 8:17 ` Jiri Slaby
2026-09-04 9:32 ` zjzhao
2026-09-04 7:20 ` [PATCH 2/2] dt-bindings: serial: Document WK2xxx SPI UART bindings zjzhao
2026-09-04 7:28 ` sashiko-bot [this message]
2026-09-04 9:33 ` [PATCH v2 0/2] WK2xxx SPI to UART bridge driver zjzhao
2026-09-04 9:33 ` [PATCH v2 1/2] serial: wk2xxx: Add WK2xxx SPI UART driver zjzhao
2026-09-04 9:53 ` sashiko-bot
2026-09-04 9:33 ` [PATCH v2 2/2] dt-bindings: serial: Document WK2xxx SPI UART bindings zjzhao
2026-09-04 9:40 ` sashiko-bot
2026-09-05 7:31 ` Krzysztof Kozlowski
2026-09-04 10:52 ` [PATCH v3 0/2] WK2xxx SPI to UART bridge driver zjzhao
2026-09-04 10:52 ` [PATCH v3 1/2] serial: wk2xxx: Add WK2xxx SPI UART driver zjzhao
2026-09-04 11:10 ` sashiko-bot
2026-09-04 10:52 ` [PATCH v3 2/2] dt-bindings: serial: Document WK2xxx SPI UART bindings zjzhao
2026-09-04 11:12 ` sashiko-bot
2026-09-04 15:28 ` Conor Dooley
2026-09-05 7:32 ` Krzysztof Kozlowski
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=20260904072814.435FA1F00A3E@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=zjzhao@edatec.cn \
/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