regulator: dt-bindings: mt6358: Add regulator-allowed-modes property
[linux-block.git] / Documentation / devicetree / bindings / regulator / mediatek,mt6358-regulator.yaml
CommitLineData
93880f7e
CYT
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/regulator/mediatek,mt6358-regulator.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MediaTek MT6358 Regulator
8
9maintainers:
10 - Zhiyong Tao <zhiyong.tao@mediatek.com>
11
12description:
13 Regulator node of the PMIC. This node should under the PMIC's device node.
14 All voltage regulators provided by the PMIC are described as sub-nodes of
15 this node.
16
17properties:
18 compatible:
19 const: mediatek,mt6358-regulator
20
21 ldo_vxo22:
22 description: LDOs with fixed 2.2V output and 0~100/10mV tuning
23 type: object
24 $ref: regulator.yaml#
0bf4b56b
CYT
25 properties:
26 regulator-allowed-modes: false
93880f7e
CYT
27 unevaluatedProperties: false
28
29 ldo_vusb:
30 description: LDOs with fixed 3.0V output and 0~100/10mV tuning
31 type: object
32 $ref: regulator.yaml#
0bf4b56b
CYT
33 properties:
34 regulator-allowed-modes: false
93880f7e
CYT
35 unevaluatedProperties: false
36
37
38patternProperties:
39 "^buck_v(core|dram1|gpu|modem|pa|proc1[12]|s[12])$":
40 description: Buck regulators
41 type: object
42 $ref: regulator.yaml#
0bf4b56b
CYT
43 properties:
44 regulator-allowed-modes:
45 description: |
46 Buck regulatpr operating modes allowed. Valid values below.
47 Users should use the macros from dt-bindings/regulator/mediatek,mt6397-regulator.h
48 0 (MT6397_BUCK_MODE_AUTO): Auto PFM/PWM mode
49 1 (MT6397_BUCK_MODE_FORCE_PWM): Forced PWM mode
50 items:
51 enum: [0, 1]
93880f7e
CYT
52 unevaluatedProperties: false
53
54 "^ldo_v(a|rf)12$":
55 description: LDOs with fixed 1.2V output and 0~100/10mV tuning
56 type: object
57 $ref: regulator.yaml#
0bf4b56b
CYT
58 properties:
59 regulator-allowed-modes: false
93880f7e
CYT
60 unevaluatedProperties: false
61
62 "^ldo_v((aux|cn|io|rf)18|camio)$":
63 description: LDOs with fixed 1.8V output and 0~100/10mV tuning
64 type: object
65 $ref: regulator.yaml#
0bf4b56b
CYT
66 properties:
67 regulator-allowed-modes: false
93880f7e
CYT
68 unevaluatedProperties: false
69
70 "^ldo_v(aud|bif|cn|fe|io)28$":
71 description: LDOs with fixed 2.8V output and 0~100/10mV tuning
72 type: object
73 $ref: regulator.yaml#
0bf4b56b
CYT
74 properties:
75 regulator-allowed-modes: false
93880f7e
CYT
76 unevaluatedProperties: false
77
78 "^ldo_vsram_(gpu|others|proc1[12])$":
79 description: LDOs with variable output
80 type: object
81 $ref: regulator.yaml#
0bf4b56b
CYT
82 properties:
83 regulator-allowed-modes: false
93880f7e
CYT
84 unevaluatedProperties: false
85
86 "^ldo_v(cama[12]|camd|cn33|dram2|efuse|emc|ibr|ldo28|mc|mch|sim[12])$":
87 description: LDOs with variable output and 0~100/10mV tuning
88 type: object
89 $ref: regulator.yaml#
0bf4b56b
CYT
90 properties:
91 regulator-allowed-modes: false
93880f7e
CYT
92 unevaluatedProperties: false
93
94required:
95 - compatible
96
97additionalProperties: false
98
99examples:
100 - |
0bf4b56b
CYT
101 #include <dt-bindings/regulator/mediatek,mt6397-regulator.h>
102
93880f7e
CYT
103 regulator {
104 compatible = "mediatek,mt6358-regulator";
105
106 buck_vgpu {
107 regulator-name = "vgpu";
108 regulator-min-microvolt = <625000>;
109 regulator-max-microvolt = <900000>;
110 regulator-ramp-delay = <6250>;
111 regulator-enable-ramp-delay = <200>;
0bf4b56b
CYT
112 regulator-allowed-modes = <MT6397_BUCK_MODE_AUTO
113 MT6397_BUCK_MODE_FORCE_PWM>;
93880f7e
CYT
114 };
115
116 ldo_vsram_gpu {
117 regulator-name = "vsram_gpu";
118 regulator-min-microvolt = <850000>;
119 regulator-max-microvolt = <1000000>;
120 regulator-ramp-delay = <6250>;
121 regulator-enable-ramp-delay = <240>;
122 };
123 };
124
125...