Skip to content

regulator: add enable GPIO property to pwm-regulator

Alexandre Courbot linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6regulator: core: Allow simultaneous use of enable op and GPIOdrivers/regulator/core.c+20 -144 replies
2/6regulator: of: Add enable GPIO configuration functiondrivers/regulator/of_regulator.c include/linux/regulator/of_regulator.h+66 -01 reply
3/6regulator: fixed: Use of_get_regulator_gpio_configdrivers/regulator/fixed.c+27 -250 replies
4/6regulator: gpio: Use of_get_regulator_gpio_configdrivers/regulator/gpio-regulator.c+25 -220 replies
5/6pwm-regulator: Support for enable GPIOdrivers/regulator/pwm-regulator.c+5 -00 replies
6/6dt-bindings: pwm-regulator: Document enable-gpio propertyDocumentation/devicetree/bindings/regulator/pwm-regulator.txt+6 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] regulator: add enable GPIO property to pwm-regulator

This series adds the ability for the pwm-regulator driver to have an enable-gpio property, a feature that is required for the VDD_GPU regulator of Jetson TX1.

Before doing that though, it goes through a few required changes/improvements in the regulator framework.

Patch 1 allows the regulator core to use both an enable GPIO and an enable callback for a given driver. This is required for our use-case since the PWM also needs to be enabled/disabled in pwm-regulator regardless of whether we are using an enable GPIO or not.

Patches 2-4 factorize the enable GPIO DT parsing code. With fixed and GPIO regulators already using that feature, and PWM to do the same, it probably makes sense to only have one function doing this. The parsing function supports more properties than individual drivers require, but the DT binding is the authority on which properties are valid, not the implementation.

Finally patches 5-6 add support for the enable GPIO in pwm-regulator and the corresponding DT binding. The binding is kept minimal (active-high and open-drain properties can be specified in the GPIO phandle) on purpose.

Alexandre Courbot (6):
regulator: core: Allow simultaneous use of enable op and GPIO
regulator: of: Add enable GPIO configuration function
regulator: fixed: Use of_get_regulator_gpio_config
regulator: gpio: Use of_get_regulator_gpio_config
pwm-regulator: Support for enable GPIO
dt-bindings: pwm-regulator: Document enable-gpio property

 .../bindings/regulator/pwm-regulator.txt           |  7 ++-
 drivers/regulator/core.c                           | 34 ++++++++------
 drivers/regulator/fixed.c                          | 52 +++++++++++-----------
 drivers/regulator/gpio-regulator.c                 | 47 ++++++++++---------
 drivers/regulator/of_regulator.c                   | 52 ++++++++++++++++++++++
 drivers/regulator/pwm-regulator.c                  |  5 +++
 include/linux/regulator/of_regulator.h             | 14 ++++++
 7 files changed, 149 insertions(+), 62 deletions(-)
Signature · 6 lines
2.8.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html