Linux 6.9-rc1
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / regulator / ti,tps65132.yaml
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/regulator/ti,tps65132.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: TI TPS65132 Dual Output Power Regulators
8
9 maintainers:
10   - devicetree@vger.kernel.org
11
12 description: |
13   The TPS65132 is designed to supply positive/negative driven applications.
14
15   Datasheet is available at:
16   https://www.ti.com/lit/gpn/tps65132
17
18 properties:
19   compatible:
20     enum:
21       - ti,tps65132
22
23   reg:
24     maxItems: 1
25
26 patternProperties:
27   "^out[pn]$":
28     type: object
29     $ref: regulator.yaml#
30     unevaluatedProperties: false
31     description:
32       Properties for single regulator.
33
34     properties:
35       enable-gpios:
36         maxItems: 1
37         description:
38           GPIO specifier to enable the GPIO control (on/off) for regulator.
39
40       active-discharge-gpios:
41         maxItems: 1
42         description:
43           GPIO specifier to actively discharge the delay mechanism.
44
45       ti,active-discharge-time-us:
46         description: Regulator active discharge time in microseconds.
47
48     dependencies:
49       active-discharge-gpios: [ 'ti,active-discharge-time-us' ]
50
51 required:
52   - compatible
53   - reg
54
55 additionalProperties: false
56
57 examples:
58   - |
59     #include <dt-bindings/gpio/gpio.h>
60
61     i2c {
62         #address-cells = <1>;
63         #size-cells = <0>;
64
65         regulator@3e {
66             compatible = "ti,tps65132";
67             reg = <0x3e>;
68
69             outp {
70                 regulator-name = "outp";
71                 regulator-boot-on;
72                 regulator-always-on;
73                 enable-gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
74             };
75
76             outn {
77                 regulator-name = "outn";
78                 regulator-boot-on;
79                 regulator-always-on;
80                 regulator-active-discharge = <0>;
81                 enable-gpios = <&gpio 40 GPIO_ACTIVE_HIGH>;
82             };
83         };
84     };