* [PATCH v2 10/14] Documentation: mfd: s2mps11: Document support for S2MPS14 [not found] <1392282847-25444-1-git-send-email-k.kozlowski@samsung.com> @ 2014-02-13 9:14 ` Krzysztof Kozlowski 2014-02-13 14:55 ` Tomasz Figa 2014-02-13 9:14 ` [PATCH v2 12/14] Documentation: mfd/regulator: s2mps11: Document the "op_mode" bindings Krzysztof Kozlowski 1 sibling, 1 reply; 3+ messages in thread From: Krzysztof Kozlowski @ 2014-02-13 9:14 UTC (permalink / raw) To: Sangbeom Kim, Samuel Ortiz, Lee Jones, linux-kernel, linux-samsung-soc Cc: Kyungmin Park, Marek Szyprowski, Bartlomiej Zolnierkiewicz, Krzysztof Kozlowski, Mark Brown, Liam Girdwood, Tomasz Figa, devicetree, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala Add bindings documentation for S2MPS14 device to the s2mps11 driver. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Cc: Mark Brown <broonie@kernel.org> Cc: Liam Girdwood <lgirdwood@gmail.com> Cc: Tomasz Figa <t.figa@samsung.com> Cc: devicetree@vger.kernel.org Cc: Rob Herring <robh+dt@kernel.org> Cc: Pawel Moll <pawel.moll@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> Cc: Kumar Gala <galak@codeaurora.org> --- Documentation/devicetree/bindings/mfd/s2mps11.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/s2mps11.txt b/Documentation/devicetree/bindings/mfd/s2mps11.txt index 15ee89c3cc7b..f69bec294f02 100644 --- a/Documentation/devicetree/bindings/mfd/s2mps11.txt +++ b/Documentation/devicetree/bindings/mfd/s2mps11.txt @@ -1,5 +1,5 @@ -* Samsung S2MPS11 Voltage and Current Regulator +* Samsung S2MPS11 and S2MPS14 Voltage and Current Regulator The Samsung S2MPS11 is a multi-function device which includes voltage and current regulators, RTC, charger controller and other sub-blocks. It is @@ -7,7 +7,7 @@ interfaced to the host controller using an I2C interface. Each sub-block is addressed by the host system using different I2C slave addresses. Required properties: -- compatible: Should be "samsung,s2mps11-pmic". +- compatible: Should be "samsung,s2mps11-pmic" or "samsung,s2mps14-pmic". - reg: Specifies the I2C slave address of the pmic block. It should be 0x66. Optional properties: @@ -59,10 +59,14 @@ supports. Note: The 'n' in LDOn and BUCKn represents the LDO or BUCK number as per the datasheet of s2mps11. - LDOn - - valid values for n are 1 to 38 + - valid values for n are: + - S2MPS11: 1 to 38 + - S2MPS14: 1 to 25 - Example: LDO1, LD02, LDO28 - BUCKn - - valid values for n are 1 to 10. + - valid values for n are: + - S2MPS11: 1 to 10 + - S2MPS14: 1 to 5 - Example: BUCK1, BUCK2, BUCK9 Example: -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2 10/14] Documentation: mfd: s2mps11: Document support for S2MPS14 2014-02-13 9:14 ` [PATCH v2 10/14] Documentation: mfd: s2mps11: Document support for S2MPS14 Krzysztof Kozlowski @ 2014-02-13 14:55 ` Tomasz Figa 0 siblings, 0 replies; 3+ messages in thread From: Tomasz Figa @ 2014-02-13 14:55 UTC (permalink / raw) To: Krzysztof Kozlowski, Sangbeom Kim, Samuel Ortiz, Lee Jones, linux-kernel, linux-samsung-soc Cc: Kyungmin Park, Marek Szyprowski, Bartlomiej Zolnierkiewicz, Mark Brown, Liam Girdwood, devicetree, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala Hi, On 13.02.2014 10:14, Krzysztof Kozlowski wrote: > Add bindings documentation for S2MPS14 device to the s2mps11 driver. > > Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> > Cc: Mark Brown <broonie@kernel.org> > Cc: Liam Girdwood <lgirdwood@gmail.com> > Cc: Tomasz Figa <t.figa@samsung.com> > Cc: devicetree@vger.kernel.org > Cc: Rob Herring <robh+dt@kernel.org> > Cc: Pawel Moll <pawel.moll@arm.com> > Cc: Mark Rutland <mark.rutland@arm.com> > Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> > Cc: Kumar Gala <galak@codeaurora.org> > --- > Documentation/devicetree/bindings/mfd/s2mps11.txt | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mfd/s2mps11.txt b/Documentation/devicetree/bindings/mfd/s2mps11.txt > index 15ee89c3cc7b..f69bec294f02 100644 > --- a/Documentation/devicetree/bindings/mfd/s2mps11.txt > +++ b/Documentation/devicetree/bindings/mfd/s2mps11.txt > @@ -1,5 +1,5 @@ > > -* Samsung S2MPS11 Voltage and Current Regulator > +* Samsung S2MPS11 and S2MPS14 Voltage and Current Regulator > > The Samsung S2MPS11 is a multi-function device which includes voltage and > current regulators, RTC, charger controller and other sub-blocks. It is > @@ -7,7 +7,7 @@ interfaced to the host controller using an I2C interface. Each sub-block is > addressed by the host system using different I2C slave addresses. > > Required properties: > -- compatible: Should be "samsung,s2mps11-pmic". > +- compatible: Should be "samsung,s2mps11-pmic" or "samsung,s2mps14-pmic". > - reg: Specifies the I2C slave address of the pmic block. It should be 0x66. > > Optional properties: > @@ -59,10 +59,14 @@ supports. Note: The 'n' in LDOn and BUCKn represents the LDO or BUCK number > as per the datasheet of s2mps11. > > - LDOn > - - valid values for n are 1 to 38 > + - valid values for n are: > + - S2MPS11: 1 to 38 > + - S2MPS14: 1 to 25 > - Example: LDO1, LD02, LDO28 > - BUCKn > - - valid values for n are 1 to 10. > + - valid values for n are: > + - S2MPS11: 1 to 10 > + - S2MPS14: 1 to 5 > - Example: BUCK1, BUCK2, BUCK9 > > Example: > Acked-by: Tomasz Figa <t.figa@samsung.com> Best regards, Tomasz ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2 12/14] Documentation: mfd/regulator: s2mps11: Document the "op_mode" bindings [not found] <1392282847-25444-1-git-send-email-k.kozlowski@samsung.com> 2014-02-13 9:14 ` [PATCH v2 10/14] Documentation: mfd: s2mps11: Document support for S2MPS14 Krzysztof Kozlowski @ 2014-02-13 9:14 ` Krzysztof Kozlowski 1 sibling, 0 replies; 3+ messages in thread From: Krzysztof Kozlowski @ 2014-02-13 9:14 UTC (permalink / raw) To: Sangbeom Kim, Samuel Ortiz, Lee Jones, linux-kernel, linux-samsung-soc Cc: Kyungmin Park, Marek Szyprowski, Bartlomiej Zolnierkiewicz, Krzysztof Kozlowski, Chanwoo Choi, Mark Brown, Liam Girdwood, Tomasz Figa, devicetree, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala Document the "op_mode" properties parsed from DTS by s2mps11 driver. S2MPS11/S2MPS14 regulators support different modes of operation: - Always off; - On/Off controlled by pin/GPIO (PWREN/LDOEN/EMMCEN); - Always on; This is very similar to S5M8767 regulator driver which also supports opmodes (although S5M8767 have also low-power mode). Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Cc: Mark Brown <broonie@kernel.org> Cc: Liam Girdwood <lgirdwood@gmail.com> Cc: Tomasz Figa <t.figa@samsung.com> Cc: devicetree@vger.kernel.org Cc: Rob Herring <robh+dt@kernel.org> Cc: Pawel Moll <pawel.moll@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> Cc: Kumar Gala <galak@codeaurora.org> --- Documentation/devicetree/bindings/mfd/s2mps11.txt | 46 +++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/s2mps11.txt b/Documentation/devicetree/bindings/mfd/s2mps11.txt index f69bec294f02..ffad6bfe2ebf 100644 --- a/Documentation/devicetree/bindings/mfd/s2mps11.txt +++ b/Documentation/devicetree/bindings/mfd/s2mps11.txt @@ -54,6 +54,15 @@ BUCK[3, 4], and BUCK[7, 8, 10] The regulator constraints inside the regulator nodes use the standard regulator bindings which are documented elsewhere. +On S2MPS14 chipset the driver additionally supports "op_mode" properties for +each regulator. + - op_mode: describes the different operating modes of the regulators with + power mode change in SOC. The different possible values are, + 0 - always off mode + 1 - on in normal mode + 3 - suspend mode + (NOTE: value of 2 is reserved) + The following are the names of the regulators that the s2mps11 pmic block supports. Note: The 'n' in LDOn and BUCKn represents the LDO or BUCK number as per the datasheet of s2mps11. @@ -112,3 +121,40 @@ Example: }; }; }; + + s2mps14_pmic@66 { + compatible = "samsung,s2mps14-pmic"; + reg = <0x66>; + + s2m_osc: clocks { + compatible = "samsung,s2mps14-clk"; + #clock-cells = 1; + clock-output-names = "xx", "", "zz"; + }; + + regulators { + ldo1_reg: LDO1 { + regulator-name = "VAP_ALIVE_1.0V"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + op_mode = <1>; /* Normal Mode */ + }; + + ldo2_reg: LDO2 { + regulator-name = "VAP_M1_1.2V"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + op_mode = <1>; /* Normal Mode */ + }; + + buck1_reg: BUCK1 { + regulator-name = "VAP_MIF_1.0V"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + op_mode = <3>; /* Standby Mode */ + }; + }; + }; -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-13 14:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1392282847-25444-1-git-send-email-k.kozlowski@samsung.com>
2014-02-13 9:14 ` [PATCH v2 10/14] Documentation: mfd: s2mps11: Document support for S2MPS14 Krzysztof Kozlowski
2014-02-13 14:55 ` Tomasz Figa
2014-02-13 9:14 ` [PATCH v2 12/14] Documentation: mfd/regulator: s2mps11: Document the "op_mode" bindings Krzysztof Kozlowski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox