xref: /freebsd-src/sys/contrib/device-tree/Bindings/regulator/richtek,rt6190.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1*8bab661aSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*8bab661aSEmmanuel Vadot%YAML 1.2
3*8bab661aSEmmanuel Vadot---
4*8bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/richtek,rt6190.yaml#
5*8bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8bab661aSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Richtek RT6190 4-Switch BuckBoost controller
8*8bab661aSEmmanuel Vadot
9*8bab661aSEmmanuel Vadotmaintainers:
10*8bab661aSEmmanuel Vadot  - ChiYuan Huang <cy_huang@richtek.com>
11*8bab661aSEmmanuel Vadot
12*8bab661aSEmmanuel Vadotdescription: |
13*8bab661aSEmmanuel Vadot  The RT6190 is 4-Switch BuckBoost controller designed for converting input
14*8bab661aSEmmanuel Vadot  voltage to output voltage that can be equal to, higher or lower than input
15*8bab661aSEmmanuel Vadot  voltage. It operates with wide input voltage range from 4.5V to 36V, and
16*8bab661aSEmmanuel Vadot  the output voltage can be set from 3V to 36V by external FB pin. It's commonly
17*8bab661aSEmmanuel Vadot  used for the application like as BuckBoost bus supply, docking station and USB
18*8bab661aSEmmanuel Vadot  power delivery product.
19*8bab661aSEmmanuel Vadot
20*8bab661aSEmmanuel Vadot  Datasheet is available at
21*8bab661aSEmmanuel Vadot  https://www.richtek.com/assets/product_file/RT6190/DS6190-02.pdf
22*8bab661aSEmmanuel Vadot
23*8bab661aSEmmanuel VadotallOf:
24*8bab661aSEmmanuel Vadot  - $ref: regulator.yaml#
25*8bab661aSEmmanuel Vadot
26*8bab661aSEmmanuel Vadotproperties:
27*8bab661aSEmmanuel Vadot  compatible:
28*8bab661aSEmmanuel Vadot    enum:
29*8bab661aSEmmanuel Vadot      - richtek,rt6190
30*8bab661aSEmmanuel Vadot
31*8bab661aSEmmanuel Vadot  reg:
32*8bab661aSEmmanuel Vadot    maxItems: 1
33*8bab661aSEmmanuel Vadot
34*8bab661aSEmmanuel Vadot  enable-gpios:
35*8bab661aSEmmanuel Vadot    maxItems: 1
36*8bab661aSEmmanuel Vadot
37*8bab661aSEmmanuel Vadot  wakeup-source: true
38*8bab661aSEmmanuel Vadot
39*8bab661aSEmmanuel Vadot  interrupts:
40*8bab661aSEmmanuel Vadot    maxItems: 1
41*8bab661aSEmmanuel Vadot
42*8bab661aSEmmanuel Vadot  regulator-allowed-modes:
43*8bab661aSEmmanuel Vadot    description: |
44*8bab661aSEmmanuel Vadot      buck allowed operating mode
45*8bab661aSEmmanuel Vadot        0: PSM mode (light load Power Saving Mode)
46*8bab661aSEmmanuel Vadot        1: FCCM mode (Forced-CCM mode)
47*8bab661aSEmmanuel Vadot    maxItems: 2
48*8bab661aSEmmanuel Vadot    items:
49*8bab661aSEmmanuel Vadot      enum: [0, 1]
50*8bab661aSEmmanuel Vadot
51*8bab661aSEmmanuel Vadotrequired:
52*8bab661aSEmmanuel Vadot  - compatible
53*8bab661aSEmmanuel Vadot  - reg
54*8bab661aSEmmanuel Vadot
55*8bab661aSEmmanuel VadotunevaluatedProperties: false
56*8bab661aSEmmanuel Vadot
57*8bab661aSEmmanuel Vadotexamples:
58*8bab661aSEmmanuel Vadot  - |
59*8bab661aSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
60*8bab661aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
61*8bab661aSEmmanuel Vadot
62*8bab661aSEmmanuel Vadot    i2c {
63*8bab661aSEmmanuel Vadot      #address-cells = <1>;
64*8bab661aSEmmanuel Vadot      #size-cells = <0>;
65*8bab661aSEmmanuel Vadot
66*8bab661aSEmmanuel Vadot      regulator@2c {
67*8bab661aSEmmanuel Vadot        compatible = "richtek,rt6190";
68*8bab661aSEmmanuel Vadot        reg = <0x2c>;
69*8bab661aSEmmanuel Vadot        wakeup-source;
70*8bab661aSEmmanuel Vadot        interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
71*8bab661aSEmmanuel Vadot        enable-gpios = <&gpio26 1 GPIO_ACTIVE_HIGH>;
72*8bab661aSEmmanuel Vadot        regulator-name = "richtek,rt6190-buckboost";
73*8bab661aSEmmanuel Vadot        regulator-min-microvolt = <3000000>;
74*8bab661aSEmmanuel Vadot        regulator-max-microvolt = <32000000>;
75*8bab661aSEmmanuel Vadot        regulator-min-microamp = <306000>;
76*8bab661aSEmmanuel Vadot        regulator-max-microamp = <12114000>;
77*8bab661aSEmmanuel Vadot        regulator-allowed-modes = <0 1>;
78*8bab661aSEmmanuel Vadot      };
79*8bab661aSEmmanuel Vadot    };
80