xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/richtek,rt5759-regulator.yaml (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
1*d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*d5b0e70fSEmmanuel Vadot%YAML 1.2
3*d5b0e70fSEmmanuel Vadot---
4*d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/richtek,rt5759-regulator.yaml#
5*d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*d5b0e70fSEmmanuel Vadot
7*d5b0e70fSEmmanuel Vadottitle: Richtek RT5759 High Performance DCDC Converter
8*d5b0e70fSEmmanuel Vadot
9*d5b0e70fSEmmanuel Vadotmaintainers:
10*d5b0e70fSEmmanuel Vadot  - ChiYuan Huang <cy_huang@richtek.com>
11*d5b0e70fSEmmanuel Vadot
12*d5b0e70fSEmmanuel Vadotdescription: |
13*d5b0e70fSEmmanuel Vadot  The RT5759 is a high-performance, synchronous step-down DC-DC converter that
14*d5b0e70fSEmmanuel Vadot  can deliver up to 9A output current from 3V to 6.5V input supply, The output
15*d5b0e70fSEmmanuel Vadot  voltage can be programmable with I2C controlled 7-Bit VID.
16*d5b0e70fSEmmanuel Vadot
17*d5b0e70fSEmmanuel Vadot  Datasheet is available at
18*d5b0e70fSEmmanuel Vadot  https://www.richtek.com/assets/product_file/RT5759/DS5759-00.pdf
19*d5b0e70fSEmmanuel Vadot
20*d5b0e70fSEmmanuel Vadotproperties:
21*d5b0e70fSEmmanuel Vadot  compatible:
22*d5b0e70fSEmmanuel Vadot    enum:
23*d5b0e70fSEmmanuel Vadot      - richtek,rt5759
24*d5b0e70fSEmmanuel Vadot      - richtek,rt5759a
25*d5b0e70fSEmmanuel Vadot
26*d5b0e70fSEmmanuel Vadot  reg:
27*d5b0e70fSEmmanuel Vadot    maxItems: 1
28*d5b0e70fSEmmanuel Vadot
29*d5b0e70fSEmmanuel Vadot  regulator-allowed-modes:
30*d5b0e70fSEmmanuel Vadot    description: |
31*d5b0e70fSEmmanuel Vadot      buck allowed operating mode
32*d5b0e70fSEmmanuel Vadot        0: auto mode (PSKIP: pulse skipping)
33*d5b0e70fSEmmanuel Vadot        1: force pwm mode
34*d5b0e70fSEmmanuel Vadot    items:
35*d5b0e70fSEmmanuel Vadot      enum: [0, 1]
36*d5b0e70fSEmmanuel Vadot
37*d5b0e70fSEmmanuel Vadot  richtek,watchdog-enable:
38*d5b0e70fSEmmanuel Vadot    description: enable the external watchdog reset pin listening
39*d5b0e70fSEmmanuel Vadot    type: boolean
40*d5b0e70fSEmmanuel Vadot
41*d5b0e70fSEmmanuel VadotallOf:
42*d5b0e70fSEmmanuel Vadot  - $ref: regulator.yaml#
43*d5b0e70fSEmmanuel Vadot
44*d5b0e70fSEmmanuel Vadot  - if:
45*d5b0e70fSEmmanuel Vadot      properties:
46*d5b0e70fSEmmanuel Vadot        compatible:
47*d5b0e70fSEmmanuel Vadot          contains:
48*d5b0e70fSEmmanuel Vadot            const: richtek,rt5759
49*d5b0e70fSEmmanuel Vadot    then:
50*d5b0e70fSEmmanuel Vadot      properties:
51*d5b0e70fSEmmanuel Vadot        richtek,watchdog-enable: false
52*d5b0e70fSEmmanuel Vadot
53*d5b0e70fSEmmanuel Vadotrequired:
54*d5b0e70fSEmmanuel Vadot  - compatible
55*d5b0e70fSEmmanuel Vadot  - reg
56*d5b0e70fSEmmanuel Vadot
57*d5b0e70fSEmmanuel VadotunevaluatedProperties: false
58*d5b0e70fSEmmanuel Vadot
59*d5b0e70fSEmmanuel Vadotexamples:
60*d5b0e70fSEmmanuel Vadot  # example 1 for RT5759
61*d5b0e70fSEmmanuel Vadot  - |
62*d5b0e70fSEmmanuel Vadot    i2c {
63*d5b0e70fSEmmanuel Vadot      #address-cells = <1>;
64*d5b0e70fSEmmanuel Vadot      #size-cells = <0>;
65*d5b0e70fSEmmanuel Vadot
66*d5b0e70fSEmmanuel Vadot      regulator@62 {
67*d5b0e70fSEmmanuel Vadot        compatible = "richtek,rt5759";
68*d5b0e70fSEmmanuel Vadot        reg = <0x62>;
69*d5b0e70fSEmmanuel Vadot        regulator-name = "rt5759-buck";
70*d5b0e70fSEmmanuel Vadot        regulator-min-microvolt = <600000>;
71*d5b0e70fSEmmanuel Vadot        regulator-max-microvolt = <1500000>;
72*d5b0e70fSEmmanuel Vadot        regulator-boot-on;
73*d5b0e70fSEmmanuel Vadot      };
74*d5b0e70fSEmmanuel Vadot    };
75*d5b0e70fSEmmanuel Vadot  # example 2 for RT5759A
76*d5b0e70fSEmmanuel Vadot  - |
77*d5b0e70fSEmmanuel Vadot    i2c {
78*d5b0e70fSEmmanuel Vadot      #address-cells = <1>;
79*d5b0e70fSEmmanuel Vadot      #size-cells = <0>;
80*d5b0e70fSEmmanuel Vadot
81*d5b0e70fSEmmanuel Vadot      regulator@62 {
82*d5b0e70fSEmmanuel Vadot        compatible = "richtek,rt5759a";
83*d5b0e70fSEmmanuel Vadot        reg = <0x62>;
84*d5b0e70fSEmmanuel Vadot        regulator-name = "rt5759a-buck";
85*d5b0e70fSEmmanuel Vadot        regulator-min-microvolt = <600000>;
86*d5b0e70fSEmmanuel Vadot        regulator-max-microvolt = <1725000>;
87*d5b0e70fSEmmanuel Vadot        regulator-boot-on;
88*d5b0e70fSEmmanuel Vadot        richtek,watchdog-enable;
89*d5b0e70fSEmmanuel Vadot      };
90*d5b0e70fSEmmanuel Vadot    };
91