aboutsummaryrefslogtreecommitdiff
path: root/dts/upstream/Bindings/mfd/ti,tps6594.yaml
blob: 6341b6070366e9138ffbebc8a507bb284ed9edd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/mfd/ti,tps6594.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: TI TPS6594 Power Management Integrated Circuit

maintainers:
  - Julien Panis <jpanis@baylibre.com>

description:
  TPS6594 is a Power Management IC which provides regulators and others
  features like GPIOs, RTC, watchdog, ESMs (Error Signal Monitor), and
  PFSM (Pre-configurable Finite State Machine) managing the state of the device.
  TPS6594 is the super-set device while TPS6593 and LP8764 are derivatives.

properties:
  compatible:
    enum:
      - ti,lp8764-q1
      - ti,tps6593-q1
      - ti,tps6594-q1
      - ti,tps65224-q1

  reg:
    description: I2C slave address or SPI chip select number.
    maxItems: 1

  ti,primary-pmic:
    type: boolean
    description: |
      Identify the primary PMIC on SPMI bus.
      A multi-PMIC synchronization scheme is implemented in the PMIC device
      to synchronize the power state changes with other PMIC devices. This is
      accomplished through a SPMI bus: the primary PMIC is the controller
      device on the SPMI bus, and the secondary PMICs are the target devices
      on the SPMI bus.

  system-power-controller: true

  gpio-controller: true

  '#gpio-cells':
    const: 2
    description: |
      The first cell is the pin number, the second cell is used to specify flags.
      See ../gpio/gpio.txt for more information.

  interrupts:
    maxItems: 1

  regulators:
    type: object
    description: List of regulators provided by this controller.

    patternProperties:
      "^buck([1-5]|12|34|123|1234)$":
        type: object
        $ref: /schemas/regulator/regulator.yaml#

        unevaluatedProperties: false

      "^ldo[1-4]$":
        type: object
        $ref: /schemas/regulator/regulator.yaml#

        unevaluatedProperties: false

    allOf:
      - if:
          required:
            - buck12
        then:
          properties:
            buck123: false
            buck1234: false
      - if:
          required:
            - buck123
        then:
          properties:
            buck34: false
      - if:
          required:
            - buck1234
        then:
          properties:
            buck34: false

    additionalProperties: false

patternProperties:
  "^buck([1-5]|12|34|123|1234)-supply$":
    description: Input supply phandle for each buck.

  "^ldo[1-4]-supply$":
    description: Input supply phandle for each ldo.

required:
  - compatible
  - reg
  - interrupts

additionalProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        tps6593: pmic@48 {
            compatible = "ti,tps6593-q1";
            reg = <0x48>;
            ti,primary-pmic;
            system-power-controller;

            gpio-controller;
            #gpio-cells = <2>;

            pinctrl-names = "default";
            pinctrl-0 = <&pmic_irq_pins_default>;
            interrupt-parent = <&mcu_gpio0>;
            interrupts = <0 IRQ_TYPE_EDGE_FALLING>;

            buck123-supply = <&vcc_3v3_sys>;
            buck4-supply = <&vcc_3v3_sys>;
            buck5-supply = <&vcc_3v3_sys>;
            ldo1-supply = <&vcc_3v3_sys>;
            ldo2-supply = <&vcc_3v3_sys>;
            ldo3-supply = <&buck5>;
            ldo4-supply = <&vcc_3v3_sys>;

            regulators {
                buck123: buck123 {
                    regulator-name = "vcc_core";
                    regulator-min-microvolt = <750000>;
                    regulator-max-microvolt = <850000>;
                    regulator-boot-on;
                    regulator-always-on;
                };

                buck4: buck4 {
                    regulator-name = "vcc_1v1";
                    regulator-min-microvolt = <1100000>;
                    regulator-max-microvolt = <1100000>;
                    regulator-boot-on;
                    regulator-always-on;
                };

                buck5: buck5 {
                    regulator-name = "vcc_1v8_sys";
                    regulator-min-microvolt = <1800000>;
                    regulator-max-microvolt = <1800000>;
                    regulator-boot-on;
                    regulator-always-on;
                };

                ldo1: ldo1 {
                    regulator-name = "vddshv5_sdio";
                    regulator-min-microvolt = <3300000>;
                    regulator-max-microvolt = <3300000>;
                    regulator-boot-on;
                    regulator-always-on;
                };

                ldo2: ldo2 {
                    regulator-name = "vpp_1v8";
                    regulator-min-microvolt = <1800000>;
                    regulator-max-microvolt = <1800000>;
                    regulator-boot-on;
                    regulator-always-on;
                };

                ldo3: ldo3 {
                    regulator-name = "vcc_0v85";
                    regulator-min-microvolt = <850000>;
                    regulator-max-microvolt = <850000>;
                    regulator-boot-on;
                    regulator-always-on;
                };

                ldo4: ldo4 {
                    regulator-name = "vdda_1v8";
                    regulator-min-microvolt = <1800000>;
                    regulator-max-microvolt = <1800000>;
                    regulator-boot-on;
                    regulator-always-on;
                };
            };
        };
    };