From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Subject: Re: [PATCH v2 5/5] regulator: add documentation for regulator modes and suspend states Date: Tue, 11 Dec 2018 16:13:24 -0600 Message-ID: <20181211221324.GA14658@bogus> References: <1543319801-19100-1-git-send-email-claudiu.beznea@microchip.com> <1543319801-19100-6-git-send-email-claudiu.beznea@microchip.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1543319801-19100-6-git-send-email-claudiu.beznea@microchip.com> Sender: linux-kernel-owner@vger.kernel.org To: Claudiu.Beznea@microchip.com Cc: lgirdwood@gmail.com, broonie@kernel.org, mark.rutland@arm.com, Nicolas.Ferre@microchip.com, alexandre.belloni@bootlin.com, Ludovic.Desroches@microchip.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org List-Id: devicetree@vger.kernel.org On Tue, Nov 27, 2018 at 11:57:25AM +0000, Claudiu.Beznea@microchip.com wrote: > From: Claudiu Beznea > > Add documentation for regulator modes and suspend states. > > Signed-off-by: Claudiu Beznea > --- > .../bindings/regulator/act8945a-regulator.txt | 34 ++++++++++++++++++++++ > 1 file changed, 34 insertions(+) > > diff --git a/Documentation/devicetree/bindings/regulator/act8945a-regulator.txt b/Documentation/devicetree/bindings/regulator/act8945a-regulator.txt > index ac955dea00d1..4017527619ab 100644 > --- a/Documentation/devicetree/bindings/regulator/act8945a-regulator.txt > +++ b/Documentation/devicetree/bindings/regulator/act8945a-regulator.txt > @@ -15,11 +15,17 @@ Optional input supply properties: > - inl67-supply: The input supply for REG_LDO3 and REG_LDO4 > > Any standard regulator properties can be used to configure the single regulator. > +regulator-initial-mode, regulator-allowed-modes and regulator-mode could be > +specified using mode values from dt-bindings/regulator/active-semi,8945a-regulator.h > +file. > > The valid names for regulators are: > REG_DCDC1, REG_DCDC2, REG_DCDC3, REG_LDO1, REG_LDO2, REG_LDO3, REG_LDO4. > > Example: > + > +#include This file belongs in this patch. > + > pmic@5b { > compatible = "active-semi,act8945a"; > reg = <0x5b>; > @@ -32,6 +38,18 @@ Example: > regulator-min-microvolt = <1350000>; > regulator-max-microvolt = <1350000>; > regulator-always-on; > + > + regulator-allowed-modes = , > + ; > + regulator-initial-mode = ; > + > + regulator-state-mem { > + regulator-on-in-suspend; > + regulator-suspend-min-microvolt=<1400000>; > + regulator-suspend-max-microvolt=<1400000>; > + regulator-changeable-in-suspend; > + regulator-mode=; > + }; > }; > > vdd_1v2_reg: REG_DCDC2 { > @@ -39,6 +57,14 @@ Example: > regulator-min-microvolt = <1100000>; > regulator-max-microvolt = <1300000>; > regulator-always-on; > + > + regulator-allowed-modes = , > + ; > + regulator-initial-mode = ; > + > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > }; > > vdd_3v3_reg: REG_DCDC3 { > @@ -53,6 +79,14 @@ Example: > regulator-min-microvolt = <2500000>; > regulator-max-microvolt = <2500000>; > regulator-always-on; > + > + regulator-allowed-modes = , > + ; > + regulator-initial-mode = ; > + > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > }; > > vdd_3v3_lp_reg: REG_LDO2 { > -- > 2.7.4 >