xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/fcs,fan53555.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2cb7aa33aSEmmanuel Vadot%YAML 1.2
3cb7aa33aSEmmanuel Vadot---
4cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/fcs,fan53555.yaml#
5cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6cb7aa33aSEmmanuel Vadot
7cb7aa33aSEmmanuel Vadottitle: Fairchild FAN53555 regulators
8cb7aa33aSEmmanuel Vadot
9cb7aa33aSEmmanuel Vadotmaintainers:
10cb7aa33aSEmmanuel Vadot  - Heiko Stuebner <heiko@sntech.de>
11cb7aa33aSEmmanuel Vadot
12cb7aa33aSEmmanuel VadotallOf:
13cb7aa33aSEmmanuel Vadot  - $ref: regulator.yaml#
14cb7aa33aSEmmanuel Vadot
15cb7aa33aSEmmanuel Vadotproperties:
16cb7aa33aSEmmanuel Vadot  compatible:
17*fac71e4eSEmmanuel Vadot    oneOf:
18*fac71e4eSEmmanuel Vadot      - enum:
19cb7aa33aSEmmanuel Vadot          - fcs,fan53555
20cb7aa33aSEmmanuel Vadot          - fcs,fan53526
21*fac71e4eSEmmanuel Vadot          - rockchip,rk8600
22*fac71e4eSEmmanuel Vadot          - rockchip,rk8602
23cb7aa33aSEmmanuel Vadot          - silergy,syr827
24cb7aa33aSEmmanuel Vadot          - silergy,syr828
25cb7aa33aSEmmanuel Vadot          - tcs,tcs4525
26*fac71e4eSEmmanuel Vadot      - items:
27*fac71e4eSEmmanuel Vadot          - const: rockchip,rk8601
28*fac71e4eSEmmanuel Vadot          - const: rockchip,rk8600
29*fac71e4eSEmmanuel Vadot      - items:
30*fac71e4eSEmmanuel Vadot          - const: rockchip,rk8603
31*fac71e4eSEmmanuel Vadot          - const: rockchip,rk8602
32cb7aa33aSEmmanuel Vadot
33cb7aa33aSEmmanuel Vadot  reg:
34cb7aa33aSEmmanuel Vadot    maxItems: 1
35cb7aa33aSEmmanuel Vadot
36cb7aa33aSEmmanuel Vadot  fcs,suspend-voltage-selector:
37cb7aa33aSEmmanuel Vadot    description: Declares which of the two available voltage selector
38cb7aa33aSEmmanuel Vadot      registers should be used for the suspend voltage. The other one is used
39cb7aa33aSEmmanuel Vadot      for the runtime voltage setting.
40cb7aa33aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
41cb7aa33aSEmmanuel Vadot    enum: [ 0, 1 ]
42cb7aa33aSEmmanuel Vadot
43cb7aa33aSEmmanuel Vadot  vin-supply:
44cb7aa33aSEmmanuel Vadot    description: Supply for the vin pin
45cb7aa33aSEmmanuel Vadot
46cb7aa33aSEmmanuel Vadot  vsel-gpios:
47cb7aa33aSEmmanuel Vadot    description: Voltage Select. When this pin is LOW, VOUT is set by the
48cb7aa33aSEmmanuel Vadot      VSEL0 register. When this pin is HIGH, VOUT is set by the VSEL1 register.
49cb7aa33aSEmmanuel Vadot    maxItems: 1
50cb7aa33aSEmmanuel Vadot
51cb7aa33aSEmmanuel Vadotrequired:
52cb7aa33aSEmmanuel Vadot  - compatible
53cb7aa33aSEmmanuel Vadot  - reg
54cb7aa33aSEmmanuel Vadot
55cb7aa33aSEmmanuel VadotunevaluatedProperties: false
56cb7aa33aSEmmanuel Vadot
57cb7aa33aSEmmanuel Vadotexamples:
58cb7aa33aSEmmanuel Vadot  - |
59cb7aa33aSEmmanuel Vadot    i2c {
60cb7aa33aSEmmanuel Vadot        #address-cells = <1>;
61cb7aa33aSEmmanuel Vadot        #size-cells = <0>;
62cb7aa33aSEmmanuel Vadot
63cb7aa33aSEmmanuel Vadot        regulator@40 {
64cb7aa33aSEmmanuel Vadot            compatible = "fcs,fan53555";
65cb7aa33aSEmmanuel Vadot            reg = <0x40>;
66cb7aa33aSEmmanuel Vadot            regulator-name = "fan53555";
67cb7aa33aSEmmanuel Vadot            regulator-min-microvolt = <1000000>;
68cb7aa33aSEmmanuel Vadot            regulator-max-microvolt = <1800000>;
69cb7aa33aSEmmanuel Vadot            vin-supply = <&parent_reg>;
70cb7aa33aSEmmanuel Vadot            fcs,suspend-voltage-selector = <1>;
71cb7aa33aSEmmanuel Vadot        };
72cb7aa33aSEmmanuel Vadot    };
73cb7aa33aSEmmanuel Vadot...
74