xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*4882a593Smuzhiyun%YAML 1.2
3*4882a593Smuzhiyun---
4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/regulator/nxp,pca9450-regulator.yaml#
5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuntitle: NXP PCA9450A/B/C Power Management Integrated Circuit regulators
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunmaintainers:
10*4882a593Smuzhiyun  - Robin Gong <yibin.gong@nxp.com>
11*4882a593Smuzhiyun
12*4882a593Smuzhiyundescription: |
13*4882a593Smuzhiyun  Regulator nodes should be named to BUCK_<number> and LDO_<number>. The
14*4882a593Smuzhiyun  definition for each of these nodes is defined using the standard
15*4882a593Smuzhiyun  binding for regulators at
16*4882a593Smuzhiyun  Documentation/devicetree/bindings/regulator/regulator.txt.
17*4882a593Smuzhiyun  Datasheet is available at
18*4882a593Smuzhiyun  https://www.nxp.com/docs/en/data-sheet/PCA9450DS.pdf
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun#The valid names for PCA9450 regulator nodes are:
21*4882a593Smuzhiyun#BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6,
22*4882a593Smuzhiyun#LDO1, LDO2, LDO3, LDO4, LDO5
23*4882a593Smuzhiyun#Note: Buck3 removed on PCA9450B and connect with Buck1 on PCA9450C.
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunproperties:
26*4882a593Smuzhiyun  compatible:
27*4882a593Smuzhiyun    enum:
28*4882a593Smuzhiyun      - nxp,pca9450a
29*4882a593Smuzhiyun      - nxp,pca9450b
30*4882a593Smuzhiyun      - nxp,pca9450c
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun  reg:
33*4882a593Smuzhiyun    maxItems: 1
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun  interrupts:
36*4882a593Smuzhiyun    maxItems: 1
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun  regulators:
39*4882a593Smuzhiyun    type: object
40*4882a593Smuzhiyun    description: |
41*4882a593Smuzhiyun      list of regulators provided by this controller
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun    patternProperties:
44*4882a593Smuzhiyun      "^LDO[1-5]$":
45*4882a593Smuzhiyun        type: object
46*4882a593Smuzhiyun        $ref: regulator.yaml#
47*4882a593Smuzhiyun        description:
48*4882a593Smuzhiyun          Properties for single LDO regulator.
49*4882a593Smuzhiyun
50*4882a593Smuzhiyun        unevaluatedProperties: false
51*4882a593Smuzhiyun
52*4882a593Smuzhiyun      "^BUCK[1-6]$":
53*4882a593Smuzhiyun        type: object
54*4882a593Smuzhiyun        $ref: regulator.yaml#
55*4882a593Smuzhiyun        description:
56*4882a593Smuzhiyun          Properties for single BUCK regulator.
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun        properties:
59*4882a593Smuzhiyun          nxp,dvs-run-voltage:
60*4882a593Smuzhiyun            $ref: "/schemas/types.yaml#/definitions/uint32"
61*4882a593Smuzhiyun            minimum: 600000
62*4882a593Smuzhiyun            maximum: 2187500
63*4882a593Smuzhiyun            description:
64*4882a593Smuzhiyun              PMIC default "RUN" state voltage in uV. Only Buck1~3 have such
65*4882a593Smuzhiyun              dvs(dynamic voltage scaling) property.
66*4882a593Smuzhiyun
67*4882a593Smuzhiyun          nxp,dvs-standby-voltage:
68*4882a593Smuzhiyun            $ref: "/schemas/types.yaml#/definitions/uint32"
69*4882a593Smuzhiyun            minimum: 600000
70*4882a593Smuzhiyun            maximum: 2187500
71*4882a593Smuzhiyun            description:
72*4882a593Smuzhiyun              PMIC default "STANDBY" state voltage in uV. Only Buck1~3 have such
73*4882a593Smuzhiyun              dvs(dynamic voltage scaling) property.
74*4882a593Smuzhiyun
75*4882a593Smuzhiyun        unevaluatedProperties: false
76*4882a593Smuzhiyun
77*4882a593Smuzhiyun    additionalProperties: false
78*4882a593Smuzhiyun
79*4882a593Smuzhiyunrequired:
80*4882a593Smuzhiyun  - compatible
81*4882a593Smuzhiyun  - reg
82*4882a593Smuzhiyun  - interrupts
83*4882a593Smuzhiyun  - regulators
84*4882a593Smuzhiyun
85*4882a593SmuzhiyunadditionalProperties: false
86*4882a593Smuzhiyun
87*4882a593Smuzhiyunexamples:
88*4882a593Smuzhiyun  - |
89*4882a593Smuzhiyun    #include <dt-bindings/interrupt-controller/irq.h>
90*4882a593Smuzhiyun
91*4882a593Smuzhiyun    i2c {
92*4882a593Smuzhiyun        #address-cells = <1>;
93*4882a593Smuzhiyun        #size-cells = <0>;
94*4882a593Smuzhiyun        pmic: pmic@25 {
95*4882a593Smuzhiyun            compatible = "nxp,pca9450b";
96*4882a593Smuzhiyun            reg = <0x25>;
97*4882a593Smuzhiyun            pinctrl-0 = <&pinctrl_pmic>;
98*4882a593Smuzhiyun            interrupt-parent = <&gpio1>;
99*4882a593Smuzhiyun            interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
100*4882a593Smuzhiyun
101*4882a593Smuzhiyun            regulators {
102*4882a593Smuzhiyun                buck1: BUCK1 {
103*4882a593Smuzhiyun                    regulator-name = "BUCK1";
104*4882a593Smuzhiyun                    regulator-min-microvolt = <600000>;
105*4882a593Smuzhiyun                    regulator-max-microvolt = <2187500>;
106*4882a593Smuzhiyun                    regulator-boot-on;
107*4882a593Smuzhiyun                    regulator-always-on;
108*4882a593Smuzhiyun                    regulator-ramp-delay = <3125>;
109*4882a593Smuzhiyun                };
110*4882a593Smuzhiyun                buck2: BUCK2 {
111*4882a593Smuzhiyun                    regulator-name = "BUCK2";
112*4882a593Smuzhiyun                    regulator-min-microvolt = <600000>;
113*4882a593Smuzhiyun                    regulator-max-microvolt = <2187500>;
114*4882a593Smuzhiyun                    regulator-boot-on;
115*4882a593Smuzhiyun                    regulator-always-on;
116*4882a593Smuzhiyun                    regulator-ramp-delay = <3125>;
117*4882a593Smuzhiyun                    nxp,dvs-run-voltage = <950000>;
118*4882a593Smuzhiyun                    nxp,dvs-standby-voltage = <850000>;
119*4882a593Smuzhiyun                };
120*4882a593Smuzhiyun                buck4: BUCK4 {
121*4882a593Smuzhiyun                    regulator-name = "BUCK4";
122*4882a593Smuzhiyun                    regulator-min-microvolt = <600000>;
123*4882a593Smuzhiyun                    regulator-max-microvolt = <3400000>;
124*4882a593Smuzhiyun                    regulator-boot-on;
125*4882a593Smuzhiyun                    regulator-always-on;
126*4882a593Smuzhiyun                };
127*4882a593Smuzhiyun                buck5: BUCK5 {
128*4882a593Smuzhiyun                    regulator-name = "BUCK5";
129*4882a593Smuzhiyun                    regulator-min-microvolt = <600000>;
130*4882a593Smuzhiyun                    regulator-max-microvolt = <3400000>;
131*4882a593Smuzhiyun                    regulator-boot-on;
132*4882a593Smuzhiyun                    regulator-always-on;
133*4882a593Smuzhiyun                };
134*4882a593Smuzhiyun                buck6: BUCK6 {
135*4882a593Smuzhiyun                    regulator-name = "BUCK6";
136*4882a593Smuzhiyun                    regulator-min-microvolt = <600000>;
137*4882a593Smuzhiyun                    regulator-max-microvolt = <3400000>;
138*4882a593Smuzhiyun                    regulator-boot-on;
139*4882a593Smuzhiyun                    regulator-always-on;
140*4882a593Smuzhiyun                };
141*4882a593Smuzhiyun
142*4882a593Smuzhiyun                ldo1: LDO1 {
143*4882a593Smuzhiyun                    regulator-name = "LDO1";
144*4882a593Smuzhiyun                    regulator-min-microvolt = <1600000>;
145*4882a593Smuzhiyun                    regulator-max-microvolt = <3300000>;
146*4882a593Smuzhiyun                    regulator-boot-on;
147*4882a593Smuzhiyun                    regulator-always-on;
148*4882a593Smuzhiyun                };
149*4882a593Smuzhiyun                ldo2: LDO2 {
150*4882a593Smuzhiyun                    regulator-name = "LDO2";
151*4882a593Smuzhiyun                    regulator-min-microvolt = <800000>;
152*4882a593Smuzhiyun                    regulator-max-microvolt = <1150000>;
153*4882a593Smuzhiyun                    regulator-boot-on;
154*4882a593Smuzhiyun                    regulator-always-on;
155*4882a593Smuzhiyun                };
156*4882a593Smuzhiyun                ldo3: LDO3 {
157*4882a593Smuzhiyun                    regulator-name = "LDO3";
158*4882a593Smuzhiyun                    regulator-min-microvolt = <800000>;
159*4882a593Smuzhiyun                    regulator-max-microvolt = <3300000>;
160*4882a593Smuzhiyun                    regulator-boot-on;
161*4882a593Smuzhiyun                    regulator-always-on;
162*4882a593Smuzhiyun                };
163*4882a593Smuzhiyun                ldo4: LDO4 {
164*4882a593Smuzhiyun                    regulator-name = "LDO4";
165*4882a593Smuzhiyun                    regulator-min-microvolt = <800000>;
166*4882a593Smuzhiyun                    regulator-max-microvolt = <3300000>;
167*4882a593Smuzhiyun                    regulator-boot-on;
168*4882a593Smuzhiyun                    regulator-always-on;
169*4882a593Smuzhiyun                };
170*4882a593Smuzhiyun                ldo5: LDO5 {
171*4882a593Smuzhiyun                    regulator-name = "LDO5";
172*4882a593Smuzhiyun                    regulator-min-microvolt = <1800000>;
173*4882a593Smuzhiyun                    regulator-max-microvolt = <3300000>;
174*4882a593Smuzhiyun                    regulator-boot-on;
175*4882a593Smuzhiyun                    regulator-always-on;
176*4882a593Smuzhiyun                };
177*4882a593Smuzhiyun            };
178*4882a593Smuzhiyun        };
179*4882a593Smuzhiyun    };
180