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,tps62360.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments TPS6236x Voltage Regulators
8
9maintainers:
10  - Laxman Dewangan <ldewangan@nvidia.com>
11
12description: |
13  The TPS6236x are a family of step down dc-dc converter with
14  an input voltage range of 2.5V to 5.5V. The devices provide
15  up to 3A peak load current, and an output voltage range of
16  0.77V to 1.4V (TPS62360/62) and 0.5V to 1.77V (TPS62361B/63).
17
18  Datasheet is available at:
19  https://www.ti.com/lit/gpn/tps62360
20
21allOf:
22  - $ref: "regulator.yaml#"
23
24properties:
25  compatible:
26    enum:
27      - ti,tps62360
28      - ti,tps62361
29      - ti,tps62362
30      - ti,tps62363
31
32  reg:
33    maxItems: 1
34
35  ti,vsel0-gpio:
36    description: |
37      GPIO for controlling VSEL0 line. If this property
38      is missing, then assume that there is no GPIO for
39      VSEL0 control.
40    maxItems: 1
41
42  ti,vsel1-gpio:
43    description: |
44      GPIO for controlling VSEL1 line. If this property
45      is missing, then assume that there is no GPIO for
46      VSEL1 control.
47    maxItems: 1
48
49  ti,enable-vout-discharge:
50    description: Enable output discharge.
51    type: boolean
52
53  ti,enable-pull-down:
54    description: Enable pull down.
55    type: boolean
56
57  ti,vsel0-state-high:
58    description: |
59      Initial state of VSEL0 input is high. If this property
60      is missing, then assume the state as low.
61    type: boolean
62
63  ti,vsel1-state-high:
64    description: |
65      Initial state of VSEL1 input is high. If this property
66      is missing, then assume the state as low.
67    type: boolean
68
69required:
70  - compatible
71  - reg
72
73unevaluatedProperties: false
74
75examples:
76  - |
77    #include <dt-bindings/gpio/gpio.h>
78    i2c {
79        #address-cells = <1>;
80        #size-cells = <0>;
81
82        regulator@60 {
83            compatible = "ti,tps62361";
84            reg = <0x60>;
85            regulator-name = "tps62361-vout";
86            regulator-min-microvolt = <500000>;
87            regulator-max-microvolt = <1500000>;
88            regulator-boot-on;
89            ti,vsel0-gpio = <&gpio1 16 GPIO_ACTIVE_HIGH>;
90            ti,vsel1-gpio = <&gpio1 17 GPIO_ACTIVE_HIGH>;
91            ti,vsel0-state-high;
92            ti,vsel1-state-high;
93            ti,enable-pull-down;
94            ti,enable-vout-discharge;
95        };
96    };
97
98...
99