devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Kemnade <andreas@kemnade.info>
To: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
Cc: lee@kernel.org, krzk+dt@kernel.org, robh@kernel.org,
	conor+dt@kernel.org, ukleinek@kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-pwm@vger.kernel.org, shuah@kernel.org
Subject: Re: [PATCH v5] dt-bindings: mfd: twl: Add missing sub-nodes for TWL4030 & TWL603x
Date: Wed, 3 Sep 2025 16:46:43 +0200	[thread overview]
Message-ID: <20250903164643.0d0d2144@akair> (raw)
In-Reply-To: <CANBuOYrcdzDytx0f=ZbpMujcNGn8RLGZwOJBE8FzPsGtt1y9iQ@mail.gmail.com>

Am Wed, 3 Sep 2025 00:55:25 +0200
schrieb Jihed Chaibi <jihed.chaibi.dev@gmail.com>:

> > > +                  - ti,twl4030-power-idle-osc-off  
> >
> > this allows quite weird combinations like
> >  "ti,twl4030-power-idle", "ti,twl4030-power-idle".
> > I would propose to rather clean this up to things used in
> > twl4030-power.c and at the same time available in dts, also
> > taking the brush in the dts. I do not expect that these specific
> > compatibles are in use anywhere. I looked around earlier.
> >
> > Regards,
> > Andreas  
> 
> Hi Andreas,
> 
> Thank you for the feedback. I've done a deeper investigation into
> the 'power:compatible' strings to see if the schema could be made
> stricter.
> 
> While cleaning up the list, I found an existing DTSI file
> (logicpd-torpedo-som.dtsi) that uses the combination:
> 'compatible = "ti,twl4030-power-idle-osc-off", "ti,twl4030-power-idle";'
> 
> Since this "idle, idle" combination is already in use, it seems we
> cannot make the schema stricter without breaking this existing
> board.
> 
well the only maybe fallback line  I see here is
ti,twl4030-power-idle-osc-off -> ti,twl4030-power-idle ->
ti,twl4030-power.
But you allow "twl,twl4030-power-idle", "ti,twl4030-power-idle"
That absolutely makes no sense.

Then the question is whether there is the need for fallback compatibles.
They are needed if there is one piece of software which does only know
the fallback and can use the hardware in some limited mode, e.g.
u-boot using some mmc controller only without some high speed mode.
Looking around, I do not find anything in u-boot or barebox for the
twl4030-power compatibles.

And if we define "ti,twl4030-power-idle" as a fallback for
"ti,twl4030-power-idle-osc-off", then it is a fallback for everyone
using "ti,twl4030-power-idle-osc-off", so then the dts would need to be
corrected.

There is one exception: "ti,twl4030-power-omap3-evm" is still used but
not everybody knows it (e.g. pm34xx.c), so there is a reason for a
fallback compatible:"ti,twl4030-power-idle"

And the rest, time for the brush and lets not totally mess up
ti,twl.yaml.

Regards,
Andreas

  reply	other threads:[~2025-09-03 14:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-02 21:29 [PATCH v5] dt-bindings: mfd: twl: Add missing sub-nodes for TWL4030 & TWL603x Jihed Chaibi
2025-09-02 22:08 ` Andreas Kemnade
2025-09-02 22:55   ` Jihed Chaibi
2025-09-03 14:46     ` Andreas Kemnade [this message]
2025-09-03 16:57       ` Rob Herring
2025-09-03 17:10 ` Rob Herring

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=20250903164643.0d0d2144@akair \
    --to=andreas@kemnade.info \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jihed.chaibi.dev@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=shuah@kernel.org \
    --cc=ukleinek@kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).