lkml.org 
[lkml]   [2023]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH 1/2] dt-bindings: power: Add regulator-pd yaml file
Date


> -----Original Message-----
> From: Rob Herring <robh+dt@kernel.org>
> Sent: Friday, August 18, 2023 3:52 PM
> To: Shenwei Wang <shenwei.wang@nxp.com>
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>; Conor Dooley
> <conor+dt@kernel.org>; Ulf Hansson <ulf.hansson@linaro.org>; Liam Girdwood
> <lgirdwood@gmail.com>; Mark Brown <broonie@kernel.org>;
> imx@lists.linux.dev; devicetree@vger.kernel.org; linux-kernel@vger.kernel.org;
> dl-linux-imx <linux-imx@nxp.com>
> Subject: [EXT] Re: [PATCH 1/2] dt-bindings: power: Add regulator-pd yaml file
> >
> > Documenting the regulator power domain properties and usage examples.
>
> This needs to answer why we need this.
>
> It looks like just an abstraction layer to make regulators look like a power
> domain.
>

Yes, it is a wrapper that allows using regulators as a power domain. This removes
the need to add regulator operating code in each consumer device driver. As a power
domain, the regulator will be managed automatically by the device driver framework
and PM subsystem.

This is very useful when a device's power is controlled by a GPIO pin, which currently
requires using the fixed-regulator to achieve the same purpose. However, the
fixed-regulator approach may have to add code in the driver in order to use it.

Thanks,
Shenwei

> Rob
\
 
 \ /
  Last update: 2023-08-18 23:07    [W:0.121 / U:1.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site