Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Artem Shimko" <a.shimko.dev@gmail.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH net-next 1/2] dt-bindings: net: add DAPU Telecom DAP8211R(I) PHY binding
Date: Tue, 14 Jul 2026 13:17:27 +0000	[thread overview]
Message-ID: <20260714131728.6C94F1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260713131223.279555-2-a.shimko.dev@gmail.com>

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Medium] The example's `compatible` string does not match the schema's required `compatible` string, causing the example to silently bypass this schema's validation.
- [Medium] The example uses an invalid value for `tx-internal-delay-ps` that violates the strict enum constraints.
- [Medium] The vendor-specific property `tx-inverted-clk` lacks the required vendor prefix.
--

--- Patch [1]: [PATCH net-next 1/2] dt-bindings: net: add DAPU Telecom DAP8211R(I) PHY binding ---
commit acf143bd06413ea91d469e7f087d2e96207a1bec
Author: Artem Shimko <a.shimko.dev@gmail.com>

dt-bindings: net: add DAPU Telecom DAP8211R(I) PHY binding

Add device tree binding documentation for the DAPU Telecom DAP8211R(I)
Gigabit Ethernet PHY.

> diff --git a/Documentation/devicetree/bindings/net/dapu,dap8211r.yaml b/Documentation/devicetree/bindings/net/dapu,dap8211r.yaml
> new file mode 100644
> index 0000000000000..208a82f779d61
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/dapu,dap8211r.yaml

[ ... ]

> +  tx-internal-delay-ps:
> +    description:
> +      RGMII TX clock delay in picoseconds. The PHY supports 150 ps steps
> +      from 0 to 2250 ps. If not specified, defaults to 1950 ps. If the
> +      requested value does not exactly match a supported step, the driver
> +      selects the nearest supported value and issues a warning.
> +    enum: [0, 150, 300, 450, 600, 750, 900, 1050, 1200, 1350, 1500,
> +           1650, 1800, 1950, 2100, 2250]
> +    default: 1950
> +
> +  tx-inverted-clk:

[Severity: Medium]
Since this property is a vendor-specific extension, should it include a
vendor prefix like dapu,tx-inverted-clk? Introducing custom properties
without a prefix risks colliding with future standard properties.

> +    $ref: /schemas/types.yaml#/definitions/flag
> +    description:
> +      If present, the RGMII TX clock to the MAC is inverted (180 degree
> +      phase shift relative to the data lines). This is a vendor-specific

[ ... ]

> +examples:
> +  - |
> +    mdio {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +
> +        ethernet-phy@1 {
> +            compatible = "ethernet-phy-ieee802.3-c22";

[Severity: Medium]
Will this compatible string cause the example to bypass validation for this
schema? The schema requires the compatible string to be exactly
"ethernet-phy-id0008.011b". If the example is not evaluated against this
file's schema, it can hide other validation failures.

> +            reg = <1>;
> +            rx-internal-delay-ps = <1050>;
> +            tx-internal-delay-ps = <1150>;

[Severity: Medium]
Will this value trigger a validation error when the compatible string
mismatch is fixed? The tx-internal-delay-ps property enforces an enum with
strict 150 ps steps, and 1150 is not in the list of allowed values.

> +            tx-inverted-clk;
> +        };
> +    };

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260713131223.279555-1-a.shimko.dev@gmail.com?part=1

  parent reply	other threads:[~2026-07-14 13:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-13 13:12 [PATCH net-next 0/2] Add DAPU Telecom DAP8211R(I) Gigabit Ethernet PHY driver Artem Shimko
2026-07-13 13:12 ` [PATCH net-next 1/2] dt-bindings: net: add DAPU Telecom DAP8211R(I) PHY binding Artem Shimko
2026-07-13 15:51   ` Rob Herring (Arm)
2026-07-13 17:22   ` Rob Herring
2026-07-14 15:11     ` Artem Shimko
2026-07-14 13:17   ` sashiko-bot [this message]
2026-07-14 15:17     ` Artem Shimko
2026-07-13 13:12 ` [PATCH net-next 2/2] net: phy: add DAPU Telecom DAP8210R(I) Gigabit Ethernet PHY driver Artem Shimko
2026-07-14 13:17   ` sashiko-bot
2026-07-14 15:33     ` Artem Shimko

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=20260714131728.6C94F1F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=a.shimko.dev@gmail.com \
    --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