Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Olivier Louvignes" <olivier@mgcrea.io>
Cc: mfd@lists.linux.dev, devicetree@vger.kernel.org, robh@kernel.org,
	conor+dt@kernel.org, lee@kernel.org
Subject: Re: [PATCH v2 1/7] dt-bindings: mfd: x-powers,axp152: Add the AXP2101
Date: Sun, 15 Nov 2026 17:20:38 +0000	[thread overview]
Message-ID: <sashiko-outbox-215676@kernel.org> (raw)
In-Reply-To: <20261115171150.64431-2-olivier@mgcrea.io>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] dt-bindings: mfd: x-powers,axp152: x-powers,dcdc-freq: false at
  wrong level
- [Low] dt-bindings: mfd: x-powers,axp152: unwieldy per-compatible
  conditionals
--

commit 520d0c5b7e3c77d62056e2ccbc2df67bc5ef33a7
Author: Olivier Louvignes <olivier@mgcrea.io>

dt-bindings: mfd: x-powers,axp152: Add the AXP2101

This commit adds the x-powers,axp2101 compatible string to the X-Powers AXP
PMIC binding with optional interrupts and no DCDC frequency setting.

> diff --git a/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml b/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
> index 45f015d63df16..024de5553d6b7 100644
> --- a/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
> +++ b/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
> @@ -69,6 +69,7 @@ allOf:
>              contains:
>                enum:
>                  - x-powers,axp15060
> +                - x-powers,axp2101
>                  - x-powers,axp305
>                  - x-powers,axp313a
>                  - x-powers,axp323
> @@ -85,6 +86,7 @@ allOf:
>                - x-powers,axp313a
>                - x-powers,axp323
>                - x-powers,axp15060
> +              - x-powers,axp2101
>                - x-powers,axp717
>  
>      then:

[Severity: Low]
Does adding x-powers,axp2101 to this allOf rule actually forbid
x-powers,dcdc-freq under the regulators child node?

x-powers,dcdc-freq is defined and parsed under properties -> regulators ->
properties, whereas the then clause of this block sets x-powers,dcdc-freq:
false at the top-level PMIC node:

Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml:allOf:
    then:
      properties:
        x-powers,dcdc-freq: false

Because the first allOf entry's else branch defines x-powers,dcdc-freq under
properties -> regulators -> properties with a 1800 to 4050 kHz range, schema
validation still permits x-powers,dcdc-freq inside the regulators node for
x-powers,axp2101. Nesting x-powers,dcdc-freq: false under properties ->
regulators -> properties in this then block would disallow it as intended.

> @@ -108,6 +110,7 @@ properties:
>            - x-powers,axp806
>            - x-powers,axp809
>            - x-powers,axp813
> +          - x-powers,axp2101
>            - x-powers,axp15060
>        - items:
>            - const: x-powers,axp228

[Severity: Low]
This isn't a bug, but x-powers,axp152.yaml already aggregates nearly twenty
PMIC variants with five per-compatible if-then blocks in allOf. Rather than
extending these conditional lists further (and inserting x-powers,axp2101 out
of numerical order after x-powers,axp813), would it be cleaner to split new
variants into a separate binding schema document?

Also, the commit message explains the optional interrupt line in terms of
Linux driver behavior ("the driver then registers only the regulators") and
gives no background on the AXP2101 hardware. Describing the PMIC and why the
interrupt line may be omitted in hardware or board wiring would make the
binding description clearer.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261115171150.64431-1-olivier@mgcrea.io?part=1

  reply	other threads:[~2026-11-15 17:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-15 17:11 [PATCH v2 0/7] Add support for the X-Powers AXP2101 PMIC Olivier Louvignes
2026-11-15 17:11 ` [PATCH v2 1/7] dt-bindings: mfd: x-powers,axp152: Add the AXP2101 Olivier Louvignes
2026-11-15 17:20   ` sashiko-bot [this message]
2026-11-15 17:11 ` [PATCH v2 4/7] dt-bindings: power: supply: axp20x-usb-power: " Olivier Louvignes
2026-11-15 17:19   ` sashiko-bot
2026-11-15 17:11 ` [PATCH v2 6/7] dt-bindings: power: supply: axp20x-battery: " Olivier Louvignes

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-215676@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lee@kernel.org \
    --cc=mfd@lists.linux.dev \
    --cc=olivier@mgcrea.io \
    --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