xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/richtek,rt6245-regulator.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
15956d97fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
25956d97fSEmmanuel Vadot%YAML 1.2
35956d97fSEmmanuel Vadot---
45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/richtek,rt6245-regulator.yaml#
55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65956d97fSEmmanuel Vadot
75956d97fSEmmanuel Vadottitle: Richtek RT6245 High Current Voltage Regulator
85956d97fSEmmanuel Vadot
95956d97fSEmmanuel Vadotmaintainers:
105956d97fSEmmanuel Vadot  - ChiYuan Huang <cy_huang@richtek.com>
115956d97fSEmmanuel Vadot
125956d97fSEmmanuel Vadotdescription: |
135956d97fSEmmanuel Vadot  The RT6245 is a high-performance, synchronous step-down converter
145956d97fSEmmanuel Vadot  that can deliver up to 14A output current with an input supply
155956d97fSEmmanuel Vadot  voltage range of 4.5V to 17V.
165956d97fSEmmanuel Vadot
175956d97fSEmmanuel VadotallOf:
185956d97fSEmmanuel Vadot  - $ref: regulator.yaml#
195956d97fSEmmanuel Vadot
205956d97fSEmmanuel Vadotproperties:
215956d97fSEmmanuel Vadot  compatible:
225956d97fSEmmanuel Vadot    enum:
235956d97fSEmmanuel Vadot      - richtek,rt6245
245956d97fSEmmanuel Vadot
255956d97fSEmmanuel Vadot  reg:
265956d97fSEmmanuel Vadot    maxItems: 1
275956d97fSEmmanuel Vadot
285956d97fSEmmanuel Vadot  enable-gpios:
295956d97fSEmmanuel Vadot    description: |
305956d97fSEmmanuel Vadot      A connection of the chip 'enable' gpio line. If not provided,
315956d97fSEmmanuel Vadot      it will be treat as a default-on power.
325956d97fSEmmanuel Vadot    maxItems: 1
335956d97fSEmmanuel Vadot
345956d97fSEmmanuel Vadot  richtek,oc-level-select:
35*fac71e4eSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint8
365956d97fSEmmanuel Vadot    enum: [0, 1, 2, 3]
375956d97fSEmmanuel Vadot    description: |
385956d97fSEmmanuel Vadot      Over current level selection. Each respective value means the current
395956d97fSEmmanuel Vadot      limit 8A, 14A, 12A, 10A. If this property is missing then keep in
405956d97fSEmmanuel Vadot      in chip default.
415956d97fSEmmanuel Vadot
425956d97fSEmmanuel Vadot  richtek,ot-level-select:
43*fac71e4eSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint8
445956d97fSEmmanuel Vadot    enum: [0, 1, 2]
455956d97fSEmmanuel Vadot    description: |
465956d97fSEmmanuel Vadot      Over temperature level selection. Each respective value means the degree
475956d97fSEmmanuel Vadot      150'c, 130'c, 170'c. If this property is missing then keep in chip
485956d97fSEmmanuel Vadot      default.
495956d97fSEmmanuel Vadot
505956d97fSEmmanuel Vadot  richtek,pgdly-time-select:
51*fac71e4eSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint8
525956d97fSEmmanuel Vadot    enum: [0, 1, 2, 3]
535956d97fSEmmanuel Vadot    description: |
545956d97fSEmmanuel Vadot      Power good signal delay time selection. Each respective value means the
555956d97fSEmmanuel Vadot      delay time 0us, 10us, 20us, 40us. If this property is missing then keep
565956d97fSEmmanuel Vadot      in chip default.
575956d97fSEmmanuel Vadot
585956d97fSEmmanuel Vadot
595956d97fSEmmanuel Vadot  richtek,switch-freq-select:
60*fac71e4eSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint8
615956d97fSEmmanuel Vadot    enum: [0, 1, 2]
625956d97fSEmmanuel Vadot    description: |
635956d97fSEmmanuel Vadot      Buck switch frequency selection. Each respective value means 400KHz,
645956d97fSEmmanuel Vadot      800KHz, 1200KHz. If this property is missing then keep in chip default.
655956d97fSEmmanuel Vadot
665956d97fSEmmanuel Vadotrequired:
675956d97fSEmmanuel Vadot  - compatible
685956d97fSEmmanuel Vadot  - reg
695956d97fSEmmanuel Vadot
705956d97fSEmmanuel VadotunevaluatedProperties: false
715956d97fSEmmanuel Vadot
725956d97fSEmmanuel Vadotexamples:
735956d97fSEmmanuel Vadot  - |
745956d97fSEmmanuel Vadot    i2c {
755956d97fSEmmanuel Vadot      #address-cells = <1>;
765956d97fSEmmanuel Vadot      #size-cells = <0>;
775956d97fSEmmanuel Vadot
785956d97fSEmmanuel Vadot      rt6245@34 {
795956d97fSEmmanuel Vadot        compatible = "richtek,rt6245";
805956d97fSEmmanuel Vadot        reg = <0x34>;
815956d97fSEmmanuel Vadot        enable-gpios = <&gpio26 2 0>;
825956d97fSEmmanuel Vadot
835956d97fSEmmanuel Vadot        regulator-name = "rt6245-regulator";
845956d97fSEmmanuel Vadot        regulator-min-microvolt = <437500>;
855956d97fSEmmanuel Vadot        regulator-max-microvolt = <1387500>;
865956d97fSEmmanuel Vadot        regulator-boot-on;
875956d97fSEmmanuel Vadot      };
885956d97fSEmmanuel Vadot    };
89