1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/regulator/fcs,fan53555.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Fairchild FAN53555 regulators
8
9maintainers:
10  - Heiko Stuebner <heiko@sntech.de>
11
12allOf:
13  - $ref: regulator.yaml#
14
15properties:
16  compatible:
17    enum:
18      - fcs,fan53555
19      - fcs,fan53526
20      - silergy,syr827
21      - silergy,syr828
22      - tcs,tcs4525
23
24  reg:
25    maxItems: 1
26
27  fcs,suspend-voltage-selector:
28    description: Declares which of the two available voltage selector
29      registers should be used for the suspend voltage. The other one is used
30      for the runtime voltage setting.
31    $ref: /schemas/types.yaml#/definitions/uint32
32    enum: [ 0, 1 ]
33
34  vin-supply:
35    description: Supply for the vin pin
36
37  vsel-gpios:
38    description: Voltage Select. When this pin is LOW, VOUT is set by the
39      VSEL0 register. When this pin is HIGH, VOUT is set by the VSEL1 register.
40    maxItems: 1
41
42required:
43  - compatible
44  - reg
45
46unevaluatedProperties: false
47
48examples:
49  - |
50    i2c {
51        #address-cells = <1>;
52        #size-cells = <0>;
53
54        regulator@40 {
55            compatible = "fcs,fan53555";
56            reg = <0x40>;
57            regulator-name = "fan53555";
58            regulator-min-microvolt = <1000000>;
59            regulator-max-microvolt = <1800000>;
60            vin-supply = <&parent_reg>;
61            fcs,suspend-voltage-selector = <1>;
62        };
63    };
64...
65