Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Fil Dunsky" <filipp.dunsky@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH net-next 1/3] dt-bindings: net: Add Cortina CS7542 MDIO controller
Date: Tue, 24 Nov 2026 18:42:38 +0000	[thread overview]
Message-ID: <sashiko-outbox-231845@kernel.org> (raw)
In-Reply-To: <20261123-b4-cs7542-mdio-v1-1-626d0a0e3b4d@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dt-bindings: net: cortina,cs7542-mdio encodes driver prescaler
  limitation
--

commit 16e4686a613308f65cd1e0ccf5ba35ade585a896
Author: Fil Dunsky <filipp.dunsky@gmail.com>

dt-bindings: net: Add Cortina CS7542 MDIO controller

This commit adds a Devicetree binding schema for the Cortina Systems CS7542
Clause 22 MDIO controller.

> diff --git a/Documentation/devicetree/bindings/net/cortina,cs7542-mdio.yaml b/Documentation/devicetree/bindings/net/cortina,cs7542-mdio.yaml
> new file mode 100644
> index 0000000000000..77b5e2f09f423
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/cortina,cs7542-mdio.yaml
> @@ -0,0 +1,48 @@
[ ... ]
> +description:
> +  Clause 22 MDIO controller. Firmware configures the MDC prescaler before
> +  the operating system starts; the driver retains this setting.
> +
> +allOf:
> +  - $ref: mdio.yaml#
> +
> +properties:
> +  compatible:
> +    const: cortina,cs7542-mdio
> +
> +  reg:
> +    maxItems: 1
> +
> +  clock-frequency: false
> +  suppress-preamble: false

[Severity: Low]
Does setting clock-frequency: false and omitting clocks encode a current
driver limitation into the Devicetree binding?

Since the CS7542 MDIO block has a programmable MDC prescaler, the binding
should describe the hardware capabilities (including its input clock and
optional bus clock-frequency from mdio.yaml) rather than the driver's
reliance on firmware pre-initialization, so device trees describing the
clock configuration do not fail dtbs_check.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-b4-cs7542-mdio-v1-0-626d0a0e3b4d@gmail.com?part=1

  reply	other threads:[~2026-11-24 18:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 18:41 [PATCH net-next 0/3] Add Cortina Systems CS7542 MDIO controller support Fil Dunsky via B4 Relay
2026-11-23 18:41 ` [PATCH net-next 1/3] dt-bindings: net: Add Cortina CS7542 MDIO controller Fil Dunsky via B4 Relay
2026-11-24 18:42   ` sashiko-bot [this message]
2026-11-23 18:41 ` [PATCH net-next 2/3] net: mdio: Add Cortina CS7542 bus controller Fil Dunsky via B4 Relay
2026-11-23 19:40   ` Andrew Lunn
2026-11-23 20:41     ` Fil Dunsky
2026-11-24 18:42   ` sashiko-bot
2026-11-23 18:41 ` [PATCH net-next 3/3] MAINTAINERS: Add Cortina CS7542 MDIO controller entry Fil Dunsky via B4 Relay
2026-11-23 19:41   ` Andrew Lunn

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-231845@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=filipp.dunsky@gmail.com \
    --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