xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/fcs,fan53555.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
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    oneOf:
18      - enum:
19          - fcs,fan53555
20          - fcs,fan53526
21          - rockchip,rk8600
22          - rockchip,rk8602
23          - silergy,syr827
24          - silergy,syr828
25          - tcs,tcs4525
26      - items:
27          - const: rockchip,rk8601
28          - const: rockchip,rk8600
29      - items:
30          - const: rockchip,rk8603
31          - const: rockchip,rk8602
32
33  reg:
34    maxItems: 1
35
36  fcs,suspend-voltage-selector:
37    description: Declares which of the two available voltage selector
38      registers should be used for the suspend voltage. The other one is used
39      for the runtime voltage setting.
40    $ref: /schemas/types.yaml#/definitions/uint32
41    enum: [ 0, 1 ]
42
43  vin-supply:
44    description: Supply for the vin pin
45
46  vsel-gpios:
47    description: Voltage Select. When this pin is LOW, VOUT is set by the
48      VSEL0 register. When this pin is HIGH, VOUT is set by the VSEL1 register.
49    maxItems: 1
50
51required:
52  - compatible
53  - reg
54
55unevaluatedProperties: false
56
57examples:
58  - |
59    i2c {
60        #address-cells = <1>;
61        #size-cells = <0>;
62
63        regulator@40 {
64            compatible = "fcs,fan53555";
65            reg = <0x40>;
66            regulator-name = "fan53555";
67            regulator-min-microvolt = <1000000>;
68            regulator-max-microvolt = <1800000>;
69            vin-supply = <&parent_reg>;
70            fcs,suspend-voltage-selector = <1>;
71        };
72    };
73...
74