xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/rk860x-regulator.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/regulator/rk860x-regulator.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Rockchip Rk860x voltage regulator
8
9maintainers:
10  - Elaine Zhang <zhangqing@rock-chips.com>
11
12description: |
13  Rockchip RK860X Digitally Programmable Buck Regulator.
14  The RK860X is a step-down switching voltage regulator that
15  delivers a digitally programmable output from an input voltage supply
16  of 2.5V to 5.5V. The output voltage is programmed through an I2C interface.
17
18allOf:
19  - $ref: regulator.yaml#
20
21properties:
22  $nodename:
23    pattern: "^rk860[0-3]@[0-9a-f]"
24  compatible:
25    const: rockchip,rk860x
26
27  reg:
28    maxItems: 1
29
30  vin-supply:
31    description: Input supply phandle
32
33  vsel:
34    minItems: 1
35    maxItems: 1
36    description: |
37      GPIO pin used for DVS voltage selection or used to control enable status of regulator.
38
39  rockchip,suspend-voltage-selector:
40    maxItems: 1
41    description: |
42      The polarity of vsel pin.
43
44  limit-microvolt:
45    description: |
46      The limit of voltage setting.
47
48required:
49  - compatible
50  - reg
51
52unevaluatedProperties: false
53
54examples:
55  - |
56    i2c {
57        #address-cells = <1>;
58        #size-cells = <0>;
59
60        vdd_cpu: rk8600@40{
61            compatible = "rockchip,rk860x";
62            reg = <0x40>;
63            vin-supply = <&vcc5v0_sys>;
64            regulator-compatible = "rk860x-reg";
65            regulator-name = "vdd_cpu";
66            regulator-min-microvolt = <712500>;
67            regulator-max-microvolt = <1390000>;
68            regulator-init-microvolt = <900000>;
69            regulator-ramp-delay = <2300>;
70            rockchip,suspend-voltage-selector = <1>;
71            regulator-boot-on;
72            regulator-always-on;
73            regulator-state-mem {
74                regulator-off-in-suspend;
75            };
76        };
77    };
78