From: sashiko-bot@kernel.org
To: "Steffen Trumtrar" <s.trumtrar@pengutronix.de>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 2/3] dt-bindings: dp83867: add binding for output-impedance
Date: Thu, 27 Aug 2026 12:49:08 +0000 [thread overview]
Message-ID: <20260827124909.316241F00A3E@smtp.kernel.org> (raw)
In-Reply-To: <20260826-v7-2-topic-dp83867-v2-2-a97b4cec6e93@pengutronix.de>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The property `ti,output-impedance-ohms` expects a register value (0-31) instead of an actual resistance in ohms, violating standard devicetree unit suffix rules.
--
commit baf7480d85f53a0dc882f36f231a4b891961b193
Author: Steffen Trumtrar <s.trumtrar@pengutronix.de>
dt-bindings: dp83867: add binding for output-impedance
This commit adds a new devicetree binding, ti,output-impedance-ohms, to allow
specifying the output impedance for the DP83867 PHY via a fixed value. The
existing boolean values for minimum and maximum still take precedence over the
new value.
> diff --git a/Documentation/devicetree/bindings/net/ti,dp83867.yaml b/Documentation/devicetree/bindings/net/ti,dp83867.yaml
> --- a/Documentation/devicetree/bindings/net/ti,dp83867.yaml
> +++ b/Documentation/devicetree/bindings/net/ti,dp83867.yaml
> @@ -38,6 +38,16 @@ properties:
> items:
> - const: io_impedance_ctrl
>
> + ti,output-impedance-ohms:
> + description: |
> + MAC Interface Impedance control to set the programmable output impedance.
> + Valid range is 0x00 to 0x1f (32 steps).
> + - 0x1f = 35 ohms (minimum impedance)
> + - 0x00 = 70 ohms (maximum impedance)
> + - Step size varies with process.
> + minimum: 0
> + maximum: 31
[Severity: Medium]
Does the property name ti,output-impedance-ohms violate devicetree unit suffix
conventions by accepting raw register values (0-31) instead of actual ohms?
According to standard devicetree property rules, the -ohms suffix dictates
that the value must be specified in Ohms. However, the schema restricts this
property to raw register step values (0 to 31, where 31 configures 35 ohms
and 0 configures 70 ohms).
This mismatch could actively mislead devicetree authors. A developer might
provide a value like 35 which will be rejected by the schema as it exceeds
the maximum of 31, or dangerously configure 31 believing it sets 31 ohms,
but actually configuring 35 ohms.
Could this property be renamed to omit the -ohms suffix, or could the driver
and binding be updated to accept the actual resistance in ohms?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260826-v7-2-topic-dp83867-v2-0-a97b4cec6e93@pengutronix.de?part=2
next prev parent reply other threads:[~2026-08-27 12:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-26 12:48 [PATCH v2 0/3] net: dp83867: add new output-impedance DT binding Steffen Trumtrar
2026-08-26 12:48 ` [PATCH v2 1/3] dt-bindings: net: dp83867: make exclusivity explicit Steffen Trumtrar
2026-08-27 12:49 ` sashiko-bot
2026-08-26 12:48 ` [PATCH v2 2/3] dt-bindings: dp83867: add binding for output-impedance Steffen Trumtrar
2026-08-26 16:01 ` Conor Dooley
2026-08-27 8:04 ` Steffen Trumtrar
2026-08-27 12:47 ` Andrew Lunn
2026-08-27 13:33 ` Steffen Trumtrar
2026-08-27 15:05 ` Andrew Lunn
2026-08-27 16:05 ` Conor Dooley
2026-08-27 12:49 ` sashiko-bot [this message]
2026-08-26 12:48 ` [PATCH v2 3/3] net: phy: dp83867: support setting output-impedance Steffen Trumtrar
2026-08-27 12:49 ` 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=20260827124909.316241F00A3E@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=s.trumtrar@pengutronix.de \
--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