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,lp87565-q1.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: TI LP87565-Q1 / LP87565 dual 2-phase output buck converter
8
9maintainers:
10  - Keerthy <j-keerthy@ti.com>
11
12properties:
13  compatible:
14    enum:
15      - ti,lp87565
16      - ti,lp87565-q1
17
18  reg:
19    description: I2C slave address
20    const: 0x60
21
22  reset-gpios:
23    description: GPIO connected to NRST pin (active low reset, pin 20)
24    maxItems: 1
25
26  gpio-controller: true
27
28  '#gpio-cells':
29    description:
30      The first cell is the pin number.
31      The second cell is is used to specify flags.
32      See ../gpio/gpio.txt for more information.
33    const: 2
34
35  buck10-in-supply:
36    description:
37      Voltage regulator supply for BUCK0 and BUCK1 converters.
38
39  buck23-in-supply:
40    description:
41      Voltage regulator supply for BUCK2 and BUCK3 converters.
42
43  regulators:
44    type: object
45
46    patternProperties:
47      "^buck(10|23)$":
48        type: object
49        $ref: /schemas/regulator/regulator.yaml#
50
51    required:
52      - buck10
53      - buck23
54
55    additionalProperties: false
56
57required:
58  - compatible
59  - reg
60  - gpio-controller
61  - '#gpio-cells'
62  - buck10-in-supply
63  - buck23-in-supply
64
65additionalProperties: false
66
67examples:
68  - |
69    i2c@0 {
70        reg = <0x0 0x100>;
71        #address-cells = <1>;
72        #size-cells = <0>;
73
74        pmic@60 {
75            compatible = "ti,lp87565-q1";
76            reg = <0x60>;
77            gpio-controller;
78            #gpio-cells = <2>;
79
80            buck10-in-supply = <&vsys_3v3>;
81            buck23-in-supply = <&vsys_3v3>;
82
83            regulators {
84                buck10_reg: buck10 {
85                    /* VDD_MPU */
86                    regulator-name = "buck10";
87                    regulator-min-microvolt = <850000>;
88                    regulator-max-microvolt = <1250000>;
89                    regulator-always-on;
90                    regulator-boot-on;
91                };
92
93                buck23_reg: buck23 {
94                    /* VDD_GPU */
95                    regulator-name = "buck23";
96                    regulator-min-microvolt = <850000>;
97                    regulator-max-microvolt = <1250000>;
98                    regulator-boot-on;
99                    regulator-always-on;
100                };
101            };
102        };
103    };
104
105...
106