xref: /linux/Documentation/devicetree/bindings/regulator/adi,max77857.yaml (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
1*6d5373e9SOkan Sahin# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*6d5373e9SOkan Sahin# Copyright 2022 Analog Devices Inc.
3*6d5373e9SOkan Sahin%YAML 1.2
4*6d5373e9SOkan Sahin---
5*6d5373e9SOkan Sahin$id: http://devicetree.org/schemas/regulator/adi,max77857.yaml#
6*6d5373e9SOkan Sahin$schema: http://devicetree.org/meta-schemas/core.yaml#
7*6d5373e9SOkan Sahin
8*6d5373e9SOkan Sahintitle: Analog Devices MAX77857 Buck-Boost Converter
9*6d5373e9SOkan Sahin
10*6d5373e9SOkan Sahinmaintainers:
11*6d5373e9SOkan Sahin  - Ibrahim Tilki <Ibrahim.Tilki@analog.com>
12*6d5373e9SOkan Sahin  - Okan Sahin <Okan.Sahin@analog.com>
13*6d5373e9SOkan Sahin
14*6d5373e9SOkan Sahindescription: Analog Devices MAX77857 Buck-Boost Converter
15*6d5373e9SOkan Sahin
16*6d5373e9SOkan Sahinproperties:
17*6d5373e9SOkan Sahin  compatible:
18*6d5373e9SOkan Sahin    enum:
19*6d5373e9SOkan Sahin      - adi,max77831
20*6d5373e9SOkan Sahin      - adi,max77857
21*6d5373e9SOkan Sahin      - adi,max77859
22*6d5373e9SOkan Sahin      - adi,max77859a
23*6d5373e9SOkan Sahin
24*6d5373e9SOkan Sahin  reg:
25*6d5373e9SOkan Sahin    description: I2C address of the device
26*6d5373e9SOkan Sahin    items:
27*6d5373e9SOkan Sahin      - enum: [0x66, 0x67, 0x6E, 0x6F]
28*6d5373e9SOkan Sahin
29*6d5373e9SOkan Sahin  interrupts:
30*6d5373e9SOkan Sahin    maxItems: 1
31*6d5373e9SOkan Sahin
32*6d5373e9SOkan Sahin  adi,switch-frequency-hz:
33*6d5373e9SOkan Sahin    description: Switching frequency of the Buck-Boost converter in Hz.
34*6d5373e9SOkan Sahin    items:
35*6d5373e9SOkan Sahin      - enum: [1200000, 1500000, 1800000, 2100000]
36*6d5373e9SOkan Sahin
37*6d5373e9SOkan Sahin  adi,rtop-ohms:
38*6d5373e9SOkan Sahin    description: Top feedback resistor value in ohms for external feedback.
39*6d5373e9SOkan Sahin    minimum: 150000
40*6d5373e9SOkan Sahin    maximum: 330000
41*6d5373e9SOkan Sahin
42*6d5373e9SOkan Sahin  adi,rbot-ohms:
43*6d5373e9SOkan Sahin    description: Bottom feedback resistor value in ohms for external feedback.
44*6d5373e9SOkan Sahin
45*6d5373e9SOkan Sahindependencies:
46*6d5373e9SOkan Sahin  adi,rtop-ohms: [ 'adi,rbot-ohms' ]
47*6d5373e9SOkan Sahin  adi,rbot-ohms: [ 'adi,rtop-ohms' ]
48*6d5373e9SOkan Sahin
49*6d5373e9SOkan Sahinrequired:
50*6d5373e9SOkan Sahin  - compatible
51*6d5373e9SOkan Sahin  - reg
52*6d5373e9SOkan Sahin
53*6d5373e9SOkan SahinallOf:
54*6d5373e9SOkan Sahin  - $ref: regulator.yaml#
55*6d5373e9SOkan Sahin  - if:
56*6d5373e9SOkan Sahin      properties:
57*6d5373e9SOkan Sahin        compatible:
58*6d5373e9SOkan Sahin          contains:
59*6d5373e9SOkan Sahin            enum:
60*6d5373e9SOkan Sahin              - adi,max77831
61*6d5373e9SOkan Sahin
62*6d5373e9SOkan Sahin    then:
63*6d5373e9SOkan Sahin      properties:
64*6d5373e9SOkan Sahin        adi,switch-frequency-hz:
65*6d5373e9SOkan Sahin          items:
66*6d5373e9SOkan Sahin            enum: [1200000, 1500000, 1800000]
67*6d5373e9SOkan Sahin
68*6d5373e9SOkan SahinunevaluatedProperties: false
69*6d5373e9SOkan Sahin
70*6d5373e9SOkan Sahinexamples:
71*6d5373e9SOkan Sahin  - |
72*6d5373e9SOkan Sahin    #include <dt-bindings/interrupt-controller/irq.h>
73*6d5373e9SOkan Sahin    i2c {
74*6d5373e9SOkan Sahin        #address-cells = <1>;
75*6d5373e9SOkan Sahin        #size-cells = <0>;
76*6d5373e9SOkan Sahin
77*6d5373e9SOkan Sahin        regulator@66 {
78*6d5373e9SOkan Sahin            reg = <0x66>;
79*6d5373e9SOkan Sahin            compatible = "adi,max77857";
80*6d5373e9SOkan Sahin            interrupt-parent = <&gpio>;
81*6d5373e9SOkan Sahin            interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
82*6d5373e9SOkan Sahin
83*6d5373e9SOkan Sahin            adi,rtop-ohms = <312000>;
84*6d5373e9SOkan Sahin            adi,rbot-ohms = <12000>;
85*6d5373e9SOkan Sahin        };
86*6d5373e9SOkan Sahin    };
87