Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Robert Marko" <robert.marko@sartura.hr>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 1/5] dt-bindings: net: maxlinear: add MxL86211C MDIO I/O regulator
Date: Thu, 01 Oct 2026 12:23:31 +0000	[thread overview]
Message-ID: <20261001122331.B69DE1F00898@smtp.kernel.org> (raw)
In-Reply-To: <20260930122305.293686-1-robert.marko@sartura.hr>

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Medium] dt-bindings: net: maxlinear: PHY incorrectly modeled as regulator provider instead of consumer
- [Medium] dt-bindings: net: maxlinear: missing 'vddp-supply' definition breaks dt-schema validation
- [Low] dt-bindings: net: maxlinear: schema property 'mdio-regulator' lacks top-level definition
--

commit 03684e9eca992ab6bfa5c8f894e3de06a76d36a7
Author: Robert Marko <robert.marko@sartura.hr>

dt-bindings: net: maxlinear: add MxL86211C MDIO I/O regulator
    
Document the MDIO I/O voltage regulator exposed by the MxL86211C PHY.
The regulator configures the MDIO, MDC, and MDINT pad voltage between 1.8 V
and 3.3 V.

> diff --git a/Documentation/devicetree/bindings/net/maxlinear,gpy2xx.yaml b/Documentation/devicetree/bindings/net/maxlinear,gpy2xx.yaml
> index 8a3713abd1ca9..0645e885f1747 100644
> --- a/Documentation/devicetree/bindings/net/maxlinear,gpy2xx.yaml
> +++ b/Documentation/devicetree/bindings/net/maxlinear,gpy2xx.yaml
> @@ -12,6 +12,29 @@ maintainers:
>  
>  allOf:
>    - $ref: ethernet-phy.yaml#
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: ethernet-phy-idc133.5400
> +      required:
> +        - compatible
> +
> +    then:
> +      properties:
> +        mdio-regulator:

[Severity: Low]
Is it standard practice to define properties exclusively inside the allOf
conditional branch?

Standard dt-schema convention requires all properties to be explicitly defined
in the top-level properties block, using conditional blocks only to apply
restrictions or to disallow the property for specific compatibles.

> +          type: object
> +          description: |
> +            Initial data for the MxL86211C MDIO I/O voltage regulator. Set
> +            this to 1.8 V or 3.3 V to configure the MDIO, MDC, and MDINT
> +            pad voltage. The board must supply the VDDP pin at the selected
> +            voltage.
> +          $ref: /schemas/regulator/regulator.yaml#

[Severity: Medium]
Does this misrepresent the physical hardware topology by modeling the PHY
as a regulator provider?

Since the documentation states "The board must supply the VDDP pin", the PHY
is a power consumer. In Device Tree, an external hardware supply must be
modeled as a consumer property (e.g., vddp-supply). Modeling this as an
mdio-regulator provider node referencing regulator.yaml appears to be
an architectural abuse of the framework.

Shouldn't the PHY driver read this supply via regulator_get_voltage() to
configure its registers instead of registering a dummy regulator provider?

[Severity: Medium]
Will valid device trees that accurately model the VDDP hardware supply fail
dt_binding_check validation?

The documentation explicitly mandates that the board must supply the VDDP pin,
meaning a correct hardware description requires a vddp-supply property.
However, the schema contains unevaluatedProperties: false but omits the
definition of vddp-supply.

Since neither this schema nor ethernet-phy.yaml implicitly allows vddp-supply,
won't this cause validation errors for users who correctly model the physical
hardware?

> +          unevaluatedProperties: false

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260930122305.293686-1-robert.marko@sartura.hr?part=1

  parent reply	other threads:[~2026-10-01 12:23 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-30 12:22 [PATCH 1/5] dt-bindings: net: maxlinear: add MxL86211C MDIO I/O regulator Robert Marko
2026-09-30 12:22 ` [PATCH 2/5] net: phy: mxl-gpy: " Robert Marko
2026-10-01 12:23   ` sashiko-bot
2026-10-04 13:17   ` netdev-bot+sashiko
2026-09-30 12:22 ` [PATCH 3/5] net: phy: mxl-gpy: release MxL86211C Super Isolate Robert Marko
2026-10-01 12:23   ` sashiko-bot
2026-10-04 13:17   ` netdev-bot+sashiko
2026-09-30 12:22 ` [PATCH 4/5] dt-bindings: net: maxlinear: add MxL86211C lane mapping support Robert Marko
2026-10-01  5:55   ` Krzysztof Kozlowski
2026-10-01 12:14     ` Robert Marko
2026-10-01 12:33       ` Andrew Lunn
2026-10-07  8:49         ` Robert Marko
2026-10-07 13:14           ` Andrew Lunn
2026-10-01 16:25   ` Rob Herring (Arm)
2026-10-04 13:17   ` netdev-bot+sashiko
2026-09-30 12:22 ` [PATCH 5/5] net: phy: mxl-gpy: support MxL86211C lane mapping Robert Marko
2026-09-30 15:35   ` Andrew Lunn
2026-09-30 16:58     ` Robert Marko
2026-10-01 12:23   ` sashiko-bot
2026-10-04 13:17   ` netdev-bot+sashiko
2026-10-01 12:23 ` sashiko-bot [this message]
2026-10-04 13:17 ` [PATCH 1/5] dt-bindings: net: maxlinear: add MxL86211C MDIO I/O regulator netdev-bot+sashiko

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=20261001122331.B69DE1F00898@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robert.marko@sartura.hr \
    --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