blob: 6a6d1a3d6fa7e75fb387d936219ec2a8e9c3f713 [file] [log] [blame]
Tom Rini6bb92fc2024-05-20 09:54:58 -06001# 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
7title: TI TPS65132 Dual Output Power Regulators
8
9maintainers:
10 - devicetree@vger.kernel.org
11
12description: |
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
18properties:
19 compatible:
20 enum:
21 - ti,tps65132
22
23 reg:
24 maxItems: 1
25
26patternProperties:
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
51required:
52 - compatible
53 - reg
54
55additionalProperties: false
56
57examples:
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 };