Merge tag 'v5.13-rc3' into asoc-5.13
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / mfd / ti,lp87524-q1.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/mfd/ti,lp87524-q1.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: TI LP87524-Q1 four 1-phase output buck converter
8
9 maintainers:
10   - Keerthy <j-keerthy@ti.com>
11
12 properties:
13   compatible:
14     const: ti,lp87524-q1
15
16   reg:
17     description: I2C slave address
18     const: 0x60
19
20   reset-gpios:
21     description: GPIO connected to NRST pin (active low reset, pin 20)
22     maxItems: 1
23
24   gpio-controller: true
25
26   '#gpio-cells':
27     description:
28       The first cell is the pin number.
29       The second cell is is used to specify flags.
30       See ../gpio/gpio.txt for more information.
31     const: 2
32
33   regulators:
34     type: object
35
36     patternProperties:
37       "^buck[0123]$":
38         type: object
39         $ref: /schemas/regulator/regulator.yaml#
40
41     required:
42       - buck0
43       - buck1
44       - buck2
45       - buck3
46
47     additionalProperties: false
48
49 patternProperties:
50   "^buck[0123]-in-supply$":
51     description: Voltage regulator supply for each BUCK converter
52
53 required:
54   - compatible
55   - reg
56   - gpio-controller
57   - '#gpio-cells'
58   - buck0-in-supply
59   - buck1-in-supply
60   - buck2-in-supply
61   - buck3-in-supply
62   - regulators
63
64 additionalProperties: false
65
66 examples:
67   - |
68     i2c@0 {
69         reg = <0x0 0x100>;
70         #address-cells = <1>;
71         #size-cells = <0>;
72
73         pmic@60 {
74             compatible = "ti,lp87524-q1";
75             reg = <0x60>;
76             gpio-controller;
77             #gpio-cells = <2>;
78
79             buck0-in-supply = <&vdd_5v0>;
80             buck1-in-supply = <&vdd_5v0>;
81             buck2-in-supply = <&vdd_5v0>;
82             buck3-in-supply = <&vdd_5v0>;
83
84             regulators {
85                 buck0_reg: buck0 {
86                     regulator-name = "buck0";
87                     regulator-min-microvolt = <3300000>;
88                     regulator-max-microvolt = <3300000>;
89                     regulator-always-on;
90                 };
91
92                 buck1_reg: buck1 {
93                     regulator-name = "buck1";
94                     regulator-min-microvolt = <1350000>;
95                     regulator-max-microvolt = <1350000>;
96                     regulator-always-on;
97                 };
98
99                 buck2_reg: buck2 {
100                     regulator-name = "buck2";
101                     regulator-min-microvolt = <950000>;
102                     regulator-max-microvolt = <950000>;
103                     regulator-always-on;
104                 };
105
106                 buck3_reg: buck3 {
107                     regulator-name = "buck3";
108                     regulator-min-microvolt = <1800000>;
109                     regulator-max-microvolt = <1800000>;
110                     regulator-always-on;
111                 };
112             };
113         };
114     };
115
116 ...