xref: /linux/Documentation/devicetree/bindings/regulator/richtek,rt6245-regulator.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
11623d767SChiYuan Huang# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
21623d767SChiYuan Huang%YAML 1.2
31623d767SChiYuan Huang---
41623d767SChiYuan Huang$id: http://devicetree.org/schemas/regulator/richtek,rt6245-regulator.yaml#
51623d767SChiYuan Huang$schema: http://devicetree.org/meta-schemas/core.yaml#
61623d767SChiYuan Huang
71623d767SChiYuan Huangtitle: Richtek RT6245 High Current Voltage Regulator
81623d767SChiYuan Huang
91623d767SChiYuan Huangmaintainers:
101623d767SChiYuan Huang  - ChiYuan Huang <cy_huang@richtek.com>
111623d767SChiYuan Huang
121623d767SChiYuan Huangdescription: |
131623d767SChiYuan Huang  The RT6245 is a high-performance, synchronous step-down converter
141623d767SChiYuan Huang  that can deliver up to 14A output current with an input supply
151623d767SChiYuan Huang  voltage range of 4.5V to 17V.
161623d767SChiYuan Huang
171623d767SChiYuan HuangallOf:
181623d767SChiYuan Huang  - $ref: regulator.yaml#
191623d767SChiYuan Huang
201623d767SChiYuan Huangproperties:
211623d767SChiYuan Huang  compatible:
221623d767SChiYuan Huang    enum:
231623d767SChiYuan Huang      - richtek,rt6245
241623d767SChiYuan Huang
251623d767SChiYuan Huang  reg:
261623d767SChiYuan Huang    maxItems: 1
271623d767SChiYuan Huang
281623d767SChiYuan Huang  enable-gpios:
291623d767SChiYuan Huang    description: |
301623d767SChiYuan Huang      A connection of the chip 'enable' gpio line. If not provided,
311623d767SChiYuan Huang      it will be treat as a default-on power.
321623d767SChiYuan Huang    maxItems: 1
331623d767SChiYuan Huang
341623d767SChiYuan Huang  richtek,oc-level-select:
35*cff5c895SRob Herring    $ref: /schemas/types.yaml#/definitions/uint8
361623d767SChiYuan Huang    enum: [0, 1, 2, 3]
371623d767SChiYuan Huang    description: |
381623d767SChiYuan Huang      Over current level selection. Each respective value means the current
391623d767SChiYuan Huang      limit 8A, 14A, 12A, 10A. If this property is missing then keep in
401623d767SChiYuan Huang      in chip default.
411623d767SChiYuan Huang
421623d767SChiYuan Huang  richtek,ot-level-select:
43*cff5c895SRob Herring    $ref: /schemas/types.yaml#/definitions/uint8
441623d767SChiYuan Huang    enum: [0, 1, 2]
451623d767SChiYuan Huang    description: |
461623d767SChiYuan Huang      Over temperature level selection. Each respective value means the degree
471623d767SChiYuan Huang      150'c, 130'c, 170'c. If this property is missing then keep in chip
481623d767SChiYuan Huang      default.
491623d767SChiYuan Huang
501623d767SChiYuan Huang  richtek,pgdly-time-select:
51*cff5c895SRob Herring    $ref: /schemas/types.yaml#/definitions/uint8
521623d767SChiYuan Huang    enum: [0, 1, 2, 3]
531623d767SChiYuan Huang    description: |
541623d767SChiYuan Huang      Power good signal delay time selection. Each respective value means the
551623d767SChiYuan Huang      delay time 0us, 10us, 20us, 40us. If this property is missing then keep
561623d767SChiYuan Huang      in chip default.
571623d767SChiYuan Huang
581623d767SChiYuan Huang
591623d767SChiYuan Huang  richtek,switch-freq-select:
60*cff5c895SRob Herring    $ref: /schemas/types.yaml#/definitions/uint8
611623d767SChiYuan Huang    enum: [0, 1, 2]
621623d767SChiYuan Huang    description: |
631623d767SChiYuan Huang      Buck switch frequency selection. Each respective value means 400KHz,
641623d767SChiYuan Huang      800KHz, 1200KHz. If this property is missing then keep in chip default.
651623d767SChiYuan Huang
661623d767SChiYuan Huangrequired:
671623d767SChiYuan Huang  - compatible
681623d767SChiYuan Huang  - reg
691623d767SChiYuan Huang
701623d767SChiYuan HuangunevaluatedProperties: false
711623d767SChiYuan Huang
721623d767SChiYuan Huangexamples:
731623d767SChiYuan Huang  - |
741623d767SChiYuan Huang    i2c {
751623d767SChiYuan Huang      #address-cells = <1>;
761623d767SChiYuan Huang      #size-cells = <0>;
771623d767SChiYuan Huang
781623d767SChiYuan Huang      rt6245@34 {
791623d767SChiYuan Huang        compatible = "richtek,rt6245";
801623d767SChiYuan Huang        reg = <0x34>;
811623d767SChiYuan Huang        enable-gpios = <&gpio26 2 0>;
821623d767SChiYuan Huang
831623d767SChiYuan Huang        regulator-name = "rt6245-regulator";
841623d767SChiYuan Huang        regulator-min-microvolt = <437500>;
851623d767SChiYuan Huang        regulator-max-microvolt = <1387500>;
861623d767SChiYuan Huang        regulator-boot-on;
871623d767SChiYuan Huang      };
881623d767SChiYuan Huang    };
89