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