devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
To: Biju Das <biju.das.jz@bp.renesas.com>
Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>,
	 "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	 Fabrizio Castro <fabrizio.castro.jz@renesas.com>,
	Conor Dooley <conor+dt@kernel.org>,
	 "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	 Magnus Damm <magnus.damm@gmail.com>,
	Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	 Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>,
	 "linux-renesas-soc@vger.kernel.org"
	<linux-renesas-soc@vger.kernel.org>,
	 "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCH v2 3/3] mmc: renesas_sdhi: Add support for RZ/V2H(P) SoC
Date: Thu, 20 Jun 2024 10:59:18 +0100	[thread overview]
Message-ID: <CA+V-a8thqzvbPf53UnjejN4xO4miXShs5NeHJnsrvngmTUXnUw@mail.gmail.com> (raw)
In-Reply-To: <TY3PR01MB1134652A77AFEED63DDEF034886C82@TY3PR01MB11346.jpnprd01.prod.outlook.com>

Hi Biju,

On Thu, Jun 20, 2024 at 10:49 AM Biju Das <biju.das.jz@bp.renesas.com> wrote:
>
> Hi Prabhakar,
>
> > -----Original Message-----
> > From: Lad, Prabhakar <prabhakar.csengg@gmail.com>
> > Subject: Re: [RFC PATCH v2 3/3] mmc: renesas_sdhi: Add support for RZ/V2H(P) SoC
> >
> > Hi Biju,
> >
> > On Thu, Jun 20, 2024 at 10:30 AM Biju Das <biju.das.jz@bp.renesas.com> wrote:
> > >
> > > Hi Wolfram, Prabhakar,
> > >
> > > > -----Original Message-----
> > > > From: Wolfram Sang <wsa+renesas@sang-engineering.com>
> > > > Sent: Thursday, June 20, 2024 8:40 AM
> > > > Subject: Re: [RFC PATCH v2 3/3] mmc: renesas_sdhi: Add support for
> > > > RZ/V2H(P) SoC
> > > >
> > > > Hi Prabhakar,
> > > >
> > > > > I did give it a try with platform_driver_probe() and failed.
> > > >
> > > > Ok, thanks for trying nonetheless!
> > > >
> > > > > - Firstly I had to move the regulator node outside the SDHI node
> > > > > for
> > > > > platform_driver_probe() to succeed or else it failed with -ENODEV
> > > > > (at
> > > > > https://elixir.bootlin.com/linux/latest/source/drivers/base/platfo
> > > > > rm.c
> > > > > #L953)
> > > >
> > > > This makes sense to me because it is just a "regular" regulator.
> > > >
> > > > > - In Renesas SoCs we have multiple instances of SDHI, the problem
> > > > > being for each instance we are calling platform_driver_probe().
> > > > > Which causes a problem as the regulator node will use the first device.
> > > >
> > > > I see... we would need a reg property to differentiate between the
> > > > internal regulators but that is already used by the parent SDHI node.
> > > >
> > > > Okay, so let's scrap that idea. However, we need to ensure that we
> > > > can still have an external regulator. Seeing the bindings, it looks
> > > > like you enable the internal regulator with the "vqmmc- r9a09g057-regulator"
> > > > property? I wonder now if we can simplify this to an
> > > > "use-internal-regulator" property because we have 'compatible' already to differentiate? Needs
> > advice from DT maintainers, probably.
> > >
> > > Why this cannot be modelled as a regular "regulator" as a child device of SDHI device?
> > >
> > The current implementation does implement the regulator as a child device of the sdhi node [0]
> > itself.
> >
> > Wolfram was suggesting to have the regulator outside and use platform_driver_probe(), which caused
> > an issue as mentioned above.
>
> You, mean standalone node with a device compatible for each SDHI device nodes(Assuming 3 sdhi devices)?
>
Yep.

> 3 SDHI devices nodes(stand alone) + 3 regulator device nodes (stand alone) ?
>
This one (since as per the HW we have three SDHI instances and 3
internal regulators) so we need to describe the same in DT.

Cheers,
Prabhakar

  reply	other threads:[~2024-06-20 10:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-13  9:17 [RFC PATCH v2 0/3] Add SD/MMC support for Renesas RZ/V2H(P) SoC Prabhakar
2024-06-13  9:17 ` [RFC PATCH v2 1/3] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support Prabhakar
2024-06-13  9:17 ` [RFC PATCH v2 2/3] mmc: tmio: Use MMC core APIs to control the vqmmc regulator Prabhakar
2024-06-17  7:30   ` Wolfram Sang
2024-06-17  7:37   ` Geert Uytterhoeven
2024-06-13  9:17 ` [RFC PATCH v2 3/3] mmc: renesas_sdhi: Add support for RZ/V2H(P) SoC Prabhakar
2024-06-17  8:31   ` Wolfram Sang
2024-06-19 16:18     ` Lad, Prabhakar
2024-06-20  7:39       ` Wolfram Sang
2024-06-20  9:30         ` Biju Das
2024-06-20  9:43           ` Lad, Prabhakar
2024-06-20  9:49             ` Biju Das
2024-06-20  9:59               ` Lad, Prabhakar [this message]
2024-06-20 17:15         ` Lad, Prabhakar
2024-06-21  7:54           ` Wolfram Sang
2024-06-21 11:58             ` Geert Uytterhoeven
2024-06-21 12:33               ` Lad, Prabhakar
2024-06-28 14:17               ` Lad, Prabhakar
2024-06-20 15:40   ` Geert Uytterhoeven
2024-06-20 15:56     ` Lad, Prabhakar
2024-06-21  7:45       ` Wolfram Sang
2024-06-21  7:47         ` Wolfram Sang
2024-06-21  7:42     ` Wolfram Sang

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=CA+V-a8thqzvbPf53UnjejN4xO4miXShs5NeHJnsrvngmTUXnUw@mail.gmail.com \
    --to=prabhakar.csengg@gmail.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=fabrizio.castro.jz@renesas.com \
    --cc=geert+renesas@glider.be \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=robh@kernel.org \
    --cc=ulf.hansson@linaro.org \
    --cc=wsa+renesas@sang-engineering.com \
    /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).