* [PATCH v2 0/2] add the dvs support for rk808
@ 2014-12-11 3:16 Chris Zhong
2014-12-11 3:16 ` [PATCH v2 1/2] mfd: dt-bindings: add the description about dvs gpio " Chris Zhong
0 siblings, 1 reply; 4+ messages in thread
From: Chris Zhong @ 2014-12-11 3:16 UTC (permalink / raw)
To: heiko-4mtYJXux2i+zQB+pC5nmwQ, dianders-F7+t8E8rja9g9hUCZPvPmw,
broonie-DgEjT+Ai2ygdnm+yROfE0A
Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Chris Zhong,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Liam Girdwood, Lee Jones,
Kumar Gala, Zhang Qing, Ian Campbell, Rob Herring, Pawel Moll,
Mark Rutland
rk808 has a dvs function, there are 3 pins for dvs, dvs1 & dvs2 & dvsok.
Normally, the voltage of DCDC1/DCDC2 are controlled by BUCKn_ON_VSEL, when
we pull dvs1/dvs2 pin to active, they would be controlled by BUCKn_DVS_VSEL.
And the dvsok pin is used to indicate whether regulating has been completed.
When dvs1/dvs2 pin change, dvsok would be pull down, and it would be pull up
once the regulating is complete.
Changes in v2:
- increase description about dvs pins
- modify the multiline commenting
Chris Zhong (2):
mfd: dt-bindings: add the description about dvs gpio for rk808
regulator: rk808: add dvs support
Documentation/devicetree/bindings/mfd/rk808.txt | 13 +-
drivers/regulator/rk808-regulator.c | 192 ++++++++++++++++++++++--
2 files changed, 192 insertions(+), 13 deletions(-)
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] mfd: dt-bindings: add the description about dvs gpio for rk808
2014-12-11 3:16 [PATCH v2 0/2] add the dvs support for rk808 Chris Zhong
@ 2014-12-11 3:16 ` Chris Zhong
2014-12-11 22:05 ` Doug Anderson
0 siblings, 1 reply; 4+ messages in thread
From: Chris Zhong @ 2014-12-11 3:16 UTC (permalink / raw)
To: heiko, dianders, broonie
Cc: linux-rockchip, Chris Zhong, Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala, Lee Jones, Zhang Qing,
devicetree, linux-kernel
add the description about dvs1, dvs2, dvsok, and add the example.
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
---
Changes in v2:
- increase description about dvs pins
Documentation/devicetree/bindings/mfd/rk808.txt | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/mfd/rk808.txt b/Documentation/devicetree/bindings/mfd/rk808.txt
index 9e6e259..923cdca 100644
--- a/Documentation/devicetree/bindings/mfd/rk808.txt
+++ b/Documentation/devicetree/bindings/mfd/rk808.txt
@@ -24,6 +24,14 @@ Optional properties:
- vcc10-supply: The input supply for LDO_REG6
- vcc11-supply: The input supply for LDO_REG8
- vcc12-supply: The input supply for SWITCH_REG2
+- dvs-gpios: buck1/2 can be controlled by gpio dvs, this is GPIO specifiers
+ for 2 host gpio's used for dvs. The format of the gpio specifier depends in
+ the gpio controller. If DVS GPIOs aren't present, voltage changes will happen
+ without being very quickly with no slow ramp time.
+- dvsok-gpios: if we use dvs gpio to control buck1/2, this gpio will be pull
+ high, once RK808 completed the adjustment of voltage. If the DVSOK isn't
+ present, we'll just delay based on whatever is specified in the regulator
+ constraints.
Regulators: All the regulators of RK808 to be instantiated shall be
listed in a child node named 'regulators'. Each regulator is represented
@@ -55,7 +63,10 @@ Example:
interrupt-parent = <&gpio0>;
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
- pinctrl-0 = <&pmic_int>;
+ pinctrl-0 = <&pmic_int &dvs_ok &dvs_1 &dvs_2>;
+ dvsok-gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>;
+ dvs-gpios = <&gpio7 11 GPIO_ACTIVE_HIGH>,
+ <&gpio7 15 GPIO_ACTIVE_HIGH>;
reg = <0x1b>;
rockchip,system-power-controller;
wakeup-source;
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/2] mfd: dt-bindings: add the description about dvs gpio for rk808
2014-12-11 3:16 ` [PATCH v2 1/2] mfd: dt-bindings: add the description about dvs gpio " Chris Zhong
@ 2014-12-11 22:05 ` Doug Anderson
[not found] ` <CAD=FV=XWPhQgt6xwC4C3=Bv4HbEXM=RpKSqFUWMp1UT7N0XvdA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Doug Anderson @ 2014-12-11 22:05 UTC (permalink / raw)
To: Chris Zhong
Cc: Heiko Stübner, broonie@kernel.org,
open list:ARM/Rockchip SoC..., Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala, Lee Jones, Zhang Qing,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Chris,
On Wed, Dec 10, 2014 at 7:16 PM, Chris Zhong <zyw@rock-chips.com> wrote:
> +- dvs-gpios: buck1/2 can be controlled by gpio dvs, this is GPIO specifiers
> + for 2 host gpio's used for dvs. The format of the gpio specifier depends in
> + the gpio controller. If DVS GPIOs aren't present, voltage changes will happen
> + without being very quickly with no slow ramp time.
Remove the words "without being"
I assume Mark would rather make that change himself instead of getting
a respin, so probably don't send out a new version unless other
changes are needed.
Reviewed-by: Doug Anderson <dianders@chromium.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-12-12 13:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-11 3:16 [PATCH v2 0/2] add the dvs support for rk808 Chris Zhong
2014-12-11 3:16 ` [PATCH v2 1/2] mfd: dt-bindings: add the description about dvs gpio " Chris Zhong
2014-12-11 22:05 ` Doug Anderson
[not found] ` <CAD=FV=XWPhQgt6xwC4C3=Bv4HbEXM=RpKSqFUWMp1UT7N0XvdA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-12-12 13:06 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).