1* Dialog Semiconductor DA9211/DA9212/DA9213/DA9223/DA9214/DA9224/DA9215/DA9225
2 Voltage Regulator
3
4Required properties:
5- compatible: "dlg,da9211" or "dlg,da9212" or "dlg,da9213" or "dlg,da9223"
6  or "dlg,da9214" or "dlg,da9224" or "dlg,da9215" or "dlg,da9225"
7- reg: I2C slave address, usually 0x68.
8- interrupts: the interrupt outputs of the controller
9- regulators: A node that houses a sub-node for each regulator within the
10  device. Each sub-node is identified using the node's name, with valid
11  values listed below. The content of each sub-node is defined by the
12  standard binding for regulators; see regulator.txt.
13  BUCKA and BUCKB.
14
15Optional properties:
16- enable-gpios: platform gpio for control of BUCKA/BUCKB.
17- Any optional property defined in regulator.txt
18  - regulator-initial-mode and regulator-allowed-modes may be specified using
19    mode values from dt-bindings/regulator/dlg,da9211-regulator.h
20
21Example 1) DA9211
22	pmic: da9211@68 {
23		compatible = "dlg,da9211";
24		reg = <0x68>;
25		interrupts = <3 27>;
26
27		regulators {
28			BUCKA {
29				regulator-name = "VBUCKA";
30				regulator-min-microvolt = < 300000>;
31				regulator-max-microvolt = <1570000>;
32				regulator-min-microamp 	= <2000000>;
33				regulator-max-microamp 	= <5000000>;
34				enable-gpios = <&gpio 27 0>;
35				regulator-allowed-modes = <DA9211_BUCK_MODE_SYNC
36							   DA9211_BUCK_MODE_AUTO>;
37			};
38		};
39	};
40
41Example 2) DA9212
42	pmic: da9212@68 {
43		compatible = "dlg,da9212";
44		reg = <0x68>;
45		interrupts = <3 27>;
46
47		regulators {
48			BUCKA {
49				regulator-name = "VBUCKA";
50				regulator-min-microvolt = < 300000>;
51				regulator-max-microvolt = <1570000>;
52				regulator-min-microamp 	= <2000000>;
53				regulator-max-microamp 	= <5000000>;
54				enable-gpios = <&gpio 27 0>;
55			};
56			BUCKB {
57				regulator-name = "VBUCKB";
58				regulator-min-microvolt = < 300000>;
59				regulator-max-microvolt = <1570000>;
60				regulator-min-microamp 	= <2000000>;
61				regulator-max-microamp 	= <5000000>;
62				enable-gpios = <&gpio 17 0>;
63			};
64		};
65	};
66
67Example 3) DA9213
68	pmic: da9213@68 {
69		compatible = "dlg,da9213";
70		reg = <0x68>;
71		interrupts = <3 27>;
72
73		regulators {
74			BUCKA {
75				regulator-name = "VBUCKA";
76				regulator-min-microvolt = < 300000>;
77				regulator-max-microvolt = <1570000>;
78				regulator-min-microamp 	= <3000000>;
79				regulator-max-microamp 	= <6000000>;
80				enable-gpios = <&gpio 27 0>;
81			};
82		};
83	};
84
85Example 4) DA9223
86	pmic: da9223@68 {
87		compatible = "dlg,da9223";
88		reg = <0x68>;
89		interrupts = <3 27>;
90
91		regulators {
92			BUCKA {
93				regulator-name = "VBUCKA";
94				regulator-min-microvolt = < 300000>;
95				regulator-max-microvolt = <1570000>;
96				regulator-min-microamp 	= <3000000>;
97				regulator-max-microamp 	= <6000000>;
98				enable-gpios = <&gpio 27 0>;
99			};
100		};
101	};
102
103Example 5) DA9214
104	pmic: da9214@68 {
105		compatible = "dlg,da9214";
106		reg = <0x68>;
107		interrupts = <3 27>;
108
109		regulators {
110			BUCKA {
111				regulator-name = "VBUCKA";
112				regulator-min-microvolt = < 300000>;
113				regulator-max-microvolt = <1570000>;
114				regulator-min-microamp 	= <3000000>;
115				regulator-max-microamp 	= <6000000>;
116				enable-gpios = <&gpio 27 0>;
117			};
118			BUCKB {
119				regulator-name = "VBUCKB";
120				regulator-min-microvolt = < 300000>;
121				regulator-max-microvolt = <1570000>;
122				regulator-min-microamp 	= <3000000>;
123				regulator-max-microamp 	= <6000000>;
124				enable-gpios = <&gpio 17 0>;
125			};
126		};
127	};
128
129Example 6) DA9224
130	pmic: da9224@68 {
131		compatible = "dlg,da9224";
132		reg = <0x68>;
133		interrupts = <3 27>;
134
135		regulators {
136			BUCKA {
137				regulator-name = "VBUCKA";
138				regulator-min-microvolt = < 300000>;
139				regulator-max-microvolt = <1570000>;
140				regulator-min-microamp 	= <3000000>;
141				regulator-max-microamp 	= <6000000>;
142				enable-gpios = <&gpio 27 0>;
143			};
144			BUCKB {
145				regulator-name = "VBUCKB";
146				regulator-min-microvolt = < 300000>;
147				regulator-max-microvolt = <1570000>;
148				regulator-min-microamp 	= <3000000>;
149				regulator-max-microamp 	= <6000000>;
150				enable-gpios = <&gpio 17 0>;
151			};
152		};
153	};
154
155Example 7) DA9215
156	pmic: da9215@68 {
157		compatible = "dlg,da9215";
158		reg = <0x68>;
159		interrupts = <3 27>;
160
161		regulators {
162			BUCKA {
163				regulator-name = "VBUCKA";
164				regulator-min-microvolt = < 300000>;
165				regulator-max-microvolt = <1570000>;
166				regulator-min-microamp 	= <4000000>;
167				regulator-max-microamp 	= <7000000>;
168				enable-gpios = <&gpio 27 0>;
169			};
170			BUCKB {
171				regulator-name = "VBUCKB";
172				regulator-min-microvolt = < 300000>;
173				regulator-max-microvolt = <1570000>;
174				regulator-min-microamp 	= <4000000>;
175				regulator-max-microamp 	= <7000000>;
176				enable-gpios = <&gpio 17 0>;
177			};
178		};
179	};
180
181Example 8) DA9225
182	pmic: da9225@68 {
183		compatible = "dlg,da9225";
184		reg = <0x68>;
185		interrupts = <3 27>;
186
187		regulators {
188			BUCKA {
189				regulator-name = "VBUCKA";
190				regulator-min-microvolt = < 300000>;
191				regulator-max-microvolt = <1570000>;
192				regulator-min-microamp 	= <4000000>;
193				regulator-max-microamp 	= <7000000>;
194				enable-gpios = <&gpio 27 0>;
195			};
196			BUCKB {
197				regulator-name = "VBUCKB";
198				regulator-min-microvolt = < 300000>;
199				regulator-max-microvolt = <1570000>;
200				regulator-min-microamp 	= <4000000>;
201				regulator-max-microamp 	= <7000000>;
202				enable-gpios = <&gpio 17 0>;
203			};
204		};
205	};
206