xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/richtek,rtq2134-regulator.yaml (revision 354d7675fe12ace9cde344cb79c7ded792802f88)
1*354d7675SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*354d7675SEmmanuel Vadot%YAML 1.2
3*354d7675SEmmanuel Vadot---
4*354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/richtek,rtq2134-regulator.yaml#
5*354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*354d7675SEmmanuel Vadot
7*354d7675SEmmanuel Vadottitle: Richtek RTQ2134 SubPMIC Regulator
8*354d7675SEmmanuel Vadot
9*354d7675SEmmanuel Vadotmaintainers:
10*354d7675SEmmanuel Vadot  - ChiYuan Huang <cy_huang@richtek.com>
11*354d7675SEmmanuel Vadot
12*354d7675SEmmanuel Vadotdescription: |
13*354d7675SEmmanuel Vadot  The RTQ2134 is a multi-phase, programmable power management IC that
14*354d7675SEmmanuel Vadot  integrates with four high efficient, synchronous step-down converter cores.
15*354d7675SEmmanuel Vadot
16*354d7675SEmmanuel Vadot  Datasheet is available at
17*354d7675SEmmanuel Vadot  https://www.richtek.com/assets/product_file/RTQ2134-QA/DSQ2134-QA-01.pdf
18*354d7675SEmmanuel Vadot
19*354d7675SEmmanuel Vadotproperties:
20*354d7675SEmmanuel Vadot  compatible:
21*354d7675SEmmanuel Vadot    enum:
22*354d7675SEmmanuel Vadot      - richtek,rtq2134
23*354d7675SEmmanuel Vadot
24*354d7675SEmmanuel Vadot  reg:
25*354d7675SEmmanuel Vadot    maxItems: 1
26*354d7675SEmmanuel Vadot
27*354d7675SEmmanuel Vadot  regulators:
28*354d7675SEmmanuel Vadot    type: object
29*354d7675SEmmanuel Vadot
30*354d7675SEmmanuel Vadot    patternProperties:
31*354d7675SEmmanuel Vadot      "^buck[1-3]$":
32*354d7675SEmmanuel Vadot        type: object
33*354d7675SEmmanuel Vadot        $ref: regulator.yaml#
34*354d7675SEmmanuel Vadot        description: |
35*354d7675SEmmanuel Vadot          regulator description for buck[1-3].
36*354d7675SEmmanuel Vadot
37*354d7675SEmmanuel Vadot        properties:
38*354d7675SEmmanuel Vadot          richtek,use-vsel-dvs:
39*354d7675SEmmanuel Vadot            type: boolean
40*354d7675SEmmanuel Vadot            description: |
41*354d7675SEmmanuel Vadot              If specified, buck will listen to 'vsel' pin for dvs config.
42*354d7675SEmmanuel Vadot              Else, use dvs0 voltage by default.
43*354d7675SEmmanuel Vadot
44*354d7675SEmmanuel Vadot          richtek,uv-shutdown:
45*354d7675SEmmanuel Vadot            type: boolean
46*354d7675SEmmanuel Vadot            description: |
47*354d7675SEmmanuel Vadot              If specified, use shutdown as UV action. Else, hiccup by default.
48*354d7675SEmmanuel Vadot
49*354d7675SEmmanuel Vadot        unevaluatedProperties: false
50*354d7675SEmmanuel Vadot
51*354d7675SEmmanuel Vadot    additionalProperties: false
52*354d7675SEmmanuel Vadot
53*354d7675SEmmanuel Vadotrequired:
54*354d7675SEmmanuel Vadot  - compatible
55*354d7675SEmmanuel Vadot  - reg
56*354d7675SEmmanuel Vadot  - regulators
57*354d7675SEmmanuel Vadot
58*354d7675SEmmanuel VadotadditionalProperties: false
59*354d7675SEmmanuel Vadot
60*354d7675SEmmanuel Vadotexamples:
61*354d7675SEmmanuel Vadot  - |
62*354d7675SEmmanuel Vadot    i2c {
63*354d7675SEmmanuel Vadot      #address-cells = <1>;
64*354d7675SEmmanuel Vadot      #size-cells = <0>;
65*354d7675SEmmanuel Vadot
66*354d7675SEmmanuel Vadot      rtq2134@18 {
67*354d7675SEmmanuel Vadot        compatible = "richtek,rtq2134";
68*354d7675SEmmanuel Vadot        reg = <0x18>;
69*354d7675SEmmanuel Vadot
70*354d7675SEmmanuel Vadot        regulators {
71*354d7675SEmmanuel Vadot          buck1 {
72*354d7675SEmmanuel Vadot            regulator-name = "rtq2134-buck1";
73*354d7675SEmmanuel Vadot            regulator-min-microvolt = <300000>;
74*354d7675SEmmanuel Vadot            regulator-max-microvolt = <1850000>;
75*354d7675SEmmanuel Vadot            regulator-always-on;
76*354d7675SEmmanuel Vadot            richtek,use-vsel-dvs;
77*354d7675SEmmanuel Vadot            regulator-state-mem {
78*354d7675SEmmanuel Vadot              regulator-suspend-min-microvolt = <550000>;
79*354d7675SEmmanuel Vadot              regulator-suspend-max-microvolt = <550000>;
80*354d7675SEmmanuel Vadot            };
81*354d7675SEmmanuel Vadot          };
82*354d7675SEmmanuel Vadot          buck2 {
83*354d7675SEmmanuel Vadot            regulator-name = "rtq2134-buck2";
84*354d7675SEmmanuel Vadot            regulator-min-microvolt = <1120000>;
85*354d7675SEmmanuel Vadot            regulator-max-microvolt = <1120000>;
86*354d7675SEmmanuel Vadot            regulator-always-on;
87*354d7675SEmmanuel Vadot            richtek,use-vsel-dvs;
88*354d7675SEmmanuel Vadot            regulator-state-mem {
89*354d7675SEmmanuel Vadot              regulator-suspend-min-microvolt = <1120000>;
90*354d7675SEmmanuel Vadot              regulator-suspend-max-microvolt = <1120000>;
91*354d7675SEmmanuel Vadot            };
92*354d7675SEmmanuel Vadot          };
93*354d7675SEmmanuel Vadot          buck3 {
94*354d7675SEmmanuel Vadot            regulator-name = "rtq2134-buck3";
95*354d7675SEmmanuel Vadot            regulator-min-microvolt = <600000>;
96*354d7675SEmmanuel Vadot            regulator-max-microvolt = <600000>;
97*354d7675SEmmanuel Vadot            regulator-always-on;
98*354d7675SEmmanuel Vadot            richtek,use-vsel-dvs;
99*354d7675SEmmanuel Vadot            regulator-state-mem {
100*354d7675SEmmanuel Vadot              regulator-suspend-min-microvolt = <600000>;
101*354d7675SEmmanuel Vadot              regulator-suspend-max-microvolt = <600000>;
102*354d7675SEmmanuel Vadot            };
103*354d7675SEmmanuel Vadot          };
104*354d7675SEmmanuel Vadot        };
105*354d7675SEmmanuel Vadot      };
106*354d7675SEmmanuel Vadot    };
107