[PATCH 4/6] regulator: lp872x: Add enable GPIO pin support

Rob Herring robh at kernel.org
Tue Dec 29 12:02:44 PST 2015


On Wed, Dec 23, 2015 at 11:58:37AM +0100, Paul Kocialkowski wrote:
> LP872x regulators are made active via the EN pin, which might be hooked to a
> GPIO. This adds support for driving the GPIO high when the driver is in use.
> 
> Signed-off-by: Paul Kocialkowski <contact at paulk.fr>
> ---
>  .../devicetree/bindings/regulator/lp872x.txt       |  1 +
>  drivers/regulator/lp872x.c                         | 33 ++++++++++++++++++++--
>  include/linux/regulator/lp872x.h                   |  2 ++
>  3 files changed, 33 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/regulator/lp872x.txt b/Documentation/devicetree/bindings/regulator/lp872x.txt
> index 7818318..0559c25 100644
> --- a/Documentation/devicetree/bindings/regulator/lp872x.txt
> +++ b/Documentation/devicetree/bindings/regulator/lp872x.txt
> @@ -28,6 +28,7 @@ Optional properties:
>    - ti,dvs-gpio: GPIO specifier for external DVS pin control of LP872x devices.
>    - ti,dvs-vsel: DVS selector. 0 = SEL_V1, 1 = SEL_V2.
>    - ti,dvs-state: initial DVS pin state. 0 = DVS_LOW, 1 = DVS_HIGH.
> +  - ti,enable-gpio: GPIO specifier for EN pin control of LP872x devices.

Should be "-gpios" instead of "-gpio".

Rob



More information about the linux-arm-kernel mailing list