* [PATCH 2/2] regulator: tps65132: add device-tree binding
@ 2017-03-06 16:37 Venkat Reddy Talla
2017-03-15 17:05 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Venkat Reddy Talla @ 2017-03-06 16:37 UTC (permalink / raw)
To: lgirdwood-Re5JQEeQqe8AvxtiuMwx3w, broonie-DgEjT+Ai2ygdnm+yROfE0A,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8,
devicetree-u79uwXL29TY76Z2rM5mHXA
Cc: ldewangan-DDmLM1+adcrQT0dZR+AlfA,
vreddytalla-DDmLM1+adcrQT0dZR+AlfA
Adding tps65132 regulator devicetree binding documentation
Signed-off-by: Venkat Reddy Talla <vreddytalla-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
.../bindings/regulator/tps65132-regulator.txt | 46 ++++++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 Documentation/devicetree/bindings/regulator/tps65132-regulator.txt
diff --git a/Documentation/devicetree/bindings/regulator/tps65132-regulator.txt b/Documentation/devicetree/bindings/regulator/tps65132-regulator.txt
new file mode 100644
index 0000000..1ef6ede
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/tps65132-regulator.txt
@@ -0,0 +1,46 @@
+TPS65132 regulators
+
+Required properties:
+- compatible: "ti,tps65132"
+- reg: I2C slave address
+
+Optional Subnode:
+Device supports two regulators OUTP and OUTN. A sub node within the
+ device node descrbe the properties of these regulators. The sub-node
+ names must be as follows:
+ -For regulator outp, the sub node name should be "outp".
+ -For regulator outn, the sub node name should be "outn".
+
+-ti,enable-gpio: Regulators are controlled by the input pins. If
+ it is connected to GPIO through host system then provide the
+ gpio number as per gpio.txt.
+-ti,disable-active-discharge: Boolean, presence of this property
+ will disable active discharge on the regulator output.
+-ti,active-discharge-gpio: Some configurations use delay mechanisms
+ on the enable pin, to keep the regulator enabled for some time after
+ the enable signal goes low. This GPIO is used to actively discharge
+ the delay mechanism. Requires specification of ti,active-discharge-time
+-ti,active-discharge-time: how long the active discharge gpio should be
+ asserted for during active discharge, in microseconds.
+
+Each regulator is defined using the standard binding for regulators.
+
+Example:
+
+ tps65132@3e {
+ compatible = "ti,tps65132";
+
+ outp {
+ regulator-name = "outp";
+ regulator-boot-on;
+ regulator-always-on;
+ ti,enable-gpio = <&gpio 23 0>;
+ };
+
+ outn {
+ regulator-name = "outn";
+ regulator-boot-on;
+ regulator-always-on;
+ ti,enable-gpio = <&gpio 40 0>;
+ };
+ };
--
2.1.4
--
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 related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] regulator: tps65132: add device-tree binding
2017-03-06 16:37 [PATCH 2/2] regulator: tps65132: add device-tree binding Venkat Reddy Talla
@ 2017-03-15 17:05 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2017-03-15 17:05 UTC (permalink / raw)
To: Venkat Reddy Talla
Cc: lgirdwood, broonie, linux-kernel, mark.rutland, devicetree,
ldewangan
On Mon, Mar 06, 2017 at 10:07:40PM +0530, Venkat Reddy Talla wrote:
> Adding tps65132 regulator devicetree binding documentation
>
> Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
> ---
> .../bindings/regulator/tps65132-regulator.txt | 46 ++++++++++++++++++++++
> 1 file changed, 46 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/regulator/tps65132-regulator.txt
>
> diff --git a/Documentation/devicetree/bindings/regulator/tps65132-regulator.txt b/Documentation/devicetree/bindings/regulator/tps65132-regulator.txt
> new file mode 100644
> index 0000000..1ef6ede
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/regulator/tps65132-regulator.txt
> @@ -0,0 +1,46 @@
> +TPS65132 regulators
> +
> +Required properties:
> +- compatible: "ti,tps65132"
> +- reg: I2C slave address
> +
> +Optional Subnode:
> +Device supports two regulators OUTP and OUTN. A sub node within the
> + device node descrbe the properties of these regulators. The sub-node
> + names must be as follows:
> + -For regulator outp, the sub node name should be "outp".
> + -For regulator outn, the sub node name should be "outn".
> +
> +-ti,enable-gpio: Regulators are controlled by the input pins. If
> + it is connected to GPIO through host system then provide the
> + gpio number as per gpio.txt.
-gpios instead. Also, need to state the active state.
> +-ti,disable-active-discharge: Boolean, presence of this property
> + will disable active discharge on the regulator output.
> +-ti,active-discharge-gpio: Some configurations use delay mechanisms
-gpios and active state
> + on the enable pin, to keep the regulator enabled for some time after
> + the enable signal goes low. This GPIO is used to actively discharge
> + the delay mechanism. Requires specification of ti,active-discharge-time
> +-ti,active-discharges-time: how long the active discharge gpio should be
> + asserted for during active discharge, in microseconds.
unit suffix.
> +
> +Each regulator is defined using the standard binding for regulators.
> +
> +Example:
> +
> + tps65132@3e {
> + compatible = "ti,tps65132";
reg?
> +
> + outp {
> + regulator-name = "outp";
> + regulator-boot-on;
> + regulator-always-on;
> + ti,enable-gpio = <&gpio 23 0>;
> + };
> +
> + outn {
> + regulator-name = "outn";
> + regulator-boot-on;
> + regulator-always-on;
> + ti,enable-gpio = <&gpio 40 0>;
> + };
> + };
> --
> 2.1.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-15 17:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-06 16:37 [PATCH 2/2] regulator: tps65132: add device-tree binding Venkat Reddy Talla
2017-03-15 17:05 ` Rob Herring
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).