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