summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/pinctrl/ste,abx500.txt
blob: e3865e136067fccdd79e64bab84c8efb44a4a8c9 (plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
ST Ericsson abx500 pinmux controller

Required properties:
- compatible: "stericsson,ab8500-gpio",  "stericsson,ab8540-gpio",
	      "stericsson,ab8505-gpio", "stericsson,ab9540-gpio",

Please refer to pinctrl-bindings.txt in this directory for details of the
common pinctrl bindings used by client devices, including the meaning of the
phrase "pin configuration node".

ST Ericsson's pin configuration nodes act as a container for an arbitrary number of
subnodes. Each of these subnodes represents some desired configuration for a
pin, a group, or a list of pins or groups. This configuration can include the
mux function to select on those pin(s)/group(s), and various pin configuration
parameters, such as input, output, pull up, pull down...

The name of each subnode is not important; all subnodes should be enumerated
and processed purely based on their content.

Required subnode-properties:
- ste,pins : An array of strings. Each string contains the name of a pin or
    group.

Optional subnode-properties:
- ste,function: A string containing the name of the function to mux to the
  pin or group.

- generic pin configuration option to use. Example :

	default_cfg {
		ste,pins = "GPIO1";
		bias-disable;
	};

- ste,config: Handle of pin configuration node containing the generic
  pinconfig options to use, as described in pinctrl-bindings.txt in
  this directory. Example :

	pcfg_bias_disable: pcfg_bias_disable {
		bias-disable;
	};

	default_cfg {
		ste,pins = "GPIO1";
		ste.config = <&pcfg_bias_disable>;
	};

Example board file extract:

&pinctrl_abx500 {
	pinctrl-names = "default";
	pinctrl-0 = <&sysclkreq2_default_mode>, <&sysclkreq3_default_mode>, <&gpio3_default_mode>, <&sysclkreq6_default_mode>, <&pwmout1_default_mode>, <&pwmout2_default_mode>, <&pwmout3_default_mode>, <&adi1_default_mode>, <&dmic12_default_mode>, <&dmic34_default_mode>, <&dmic56_default_mode>, <&sysclkreq5_default_mode>, <&batremn_default_mode>, <&service_default_mode>, <&pwrctrl0_default_mode>, <&pwrctrl1_default_mode>, <&pwmextvibra1_default_mode>, <&pwmextvibra2_default_mode>, <&gpio51_default_mode>, <&gpio52_default_mode>, <&gpio53_default_mode>, <&gpio54_default_mode>, <&pdmclkdat_default_mode>;

	sysclkreq2 {
		sysclkreq2_default_mode: sysclkreq2_default {
			default_mux {
				ste,function = "sysclkreq";
				ste,pins = "sysclkreq2_d_1";
			};
			default_cfg {
				ste,pins = "GPIO1";
				bias-disable;
			};
		};
	};
	sysclkreq3 {
		sysclkreq3_default_mode: sysclkreq3_default {
			default_mux {
				ste,function = "sysclkreq";
				ste,pins = "sysclkreq3_d_1";
			};
			default_cfg {
				ste,pins = "GPIO2";
				output-low;
			};
		};
	};
	gpio3 {
		gpio3_default_mode: gpio3_default {
			default_mux {
				ste,function = "gpio";
				ste,pins = "gpio3_a_1";
			};
			default_cfg {
				ste,pins = "GPIO3";
				output-low;
			};
		};
	};
	sysclkreq6 {
		sysclkreq6_default_mode: sysclkreq6_default {
			default_mux {
				ste,function = "sysclkreq";
				ste,pins = "sysclkreq6_d_1";
			};
			default_cfg {
				ste,pins = "GPIO4";
				bias-disable;
			};
		};
	};
	pwmout1 {
		pwmout1_default_mode: pwmout1_default {
			default_mux {
				ste,function = "pwmout";
				ste,pins = "pwmout1_d_1";
			};
			default_cfg {
				ste,pins = "GPIO14";
				output-low;
			};
		};
	};
	pwmout2 {
		pwmout2_default_mode: pwmout2_default {
			pwmout2_default_mux {
				ste,function = "pwmout";
				ste,pins = "pwmout2_d_1";
			};
			pwmout2_default_cfg {
				ste,pins = "GPIO15";
				output-low;
			};
		};
	};
	pwmout3 {
		pwmout3_default_mode: pwmout3_default {
			pwmout3_default_mux {
				ste,function = "pwmout";
				ste,pins = "pwmout3_d_1";
			};
			pwmout3_default_cfg {
				ste,pins = "GPIO16";
				output-low;
			};
		};
	};
	adi1 {

		adi1_default_mode: adi1_default {
			adi1_default_mux {
				ste,function = "adi1";
				ste,pins = "adi1_d_1";
			};
			adi1_default_cfg1 {
				ste,pins = "GPIO17","GPIO19","GPIO20";
				bias-disable;
			};
			adi1_default_cfg2 {
				ste,pins = "GPIO18";
				output-low;
			};
		};
	};
	dmic12 {
		dmic12_default_mode: dmic12_default {
			dmic12_default_mux {
				ste,function = "dmic";
				ste,pins = "dmic12_d_1";
			};
			dmic12_default_cfg1 {
				ste,pins = "GPIO27";
				output-low;
			};
			dmic12_default_cfg2 {
				ste,pins = "GPIO28";
				bias-disable;
			};
		};
	};
	dmic34 {
		dmic34_default_mode: dmic34_default {
			dmic34_default_mux {
				ste,function = "dmic";
				ste,pins = "dmic34_d_1";
			};
			dmic34_default_cfg1 {
				ste,pins = "GPIO29";
				output-low;
			};
			dmic34_default_cfg2 {
				ste,pins = "GPIO30";
				bias-disable;{

			};
		};
	};
	dmic56 {
		dmic56_default_mode: dmic56_default {
			dmic56_default_mux {
				ste,function = "dmic";
				ste,pins = "dmic56_d_1";
			};
			dmic56_default_cfg1 {
				ste,pins = "GPIO31";
				output-low;
			};
			dmic56_default_cfg2 {
				ste,pins = "GPIO32";
				bias-disable;
			};
		};
	};
	sysclkreq5 {
		sysclkreq5_default_mode: sysclkreq5_default {
			sysclkreq5_default_mux {
				ste,function = "sysclkreq";
				ste,pins = "sysclkreq5_d_1";
			};
			sysclkreq5_default_cfg {
				ste,pins = "GPIO42";
				output-low;
			};
		};
	};
	batremn {
		batremn_default_mode: batremn_default {
			batremn_default_mux {
				ste,function = "batremn";
				ste,pins = "batremn_d_1";
			};
			batremn_default_cfg {
				ste,pins = "GPIO43";
				bias-disable;
			};
		};
	};
	service {
		service_default_mode: service_default {
			service_default_mux {
				ste,function = "service";
				ste,pins = "service_d_1";
			};
			service_default_cfg {
				ste,pins = "GPIO44";
				bias-disable;
			};
		};
	};
	pwrctrl0 {
		pwrctrl0_default_mux: pwrctrl0_mux {
			pwrctrl0_default_mux {
				ste,function = "pwrctrl";
				ste,pins = "pwrctrl0_d_1";
			};
		};
		pwrctrl0_default_mode: pwrctrl0_default {
			pwrctrl0_default_cfg {
				ste,pins = "GPIO45";
				bias-disable;
			};
		};
	};
	pwrctrl1 {
		pwrctrl1_default_mux: pwrctrl1_mux {
			pwrctrl1_default_mux {
				ste,function = "pwrctrl";
				ste,pins = "pwrctrl1_d_1";
			};
		};
		pwrctrl1_default_mode: pwrctrl1_default {
			pwrctrl1_default_cfg {
				ste,pins = "GPIO46";
				bias-disable;
			};
		};
	};
	pwmextvibra1 {
		pwmextvibra1_default_mode: pwmextvibra1_default {
			pwmextvibra1_default_mux {
				ste,function = "pwmextvibra";
				ste,pins = "pwmextvibra1_d_1";
			};
			pwmextvibra1_default_cfg {
				ste,pins = "GPIO47";
				bias-disable;
			};
		};
	};
	pwmextvibra2 {
		pwmextvibra2_default_mode: pwmextvibra2_default {
			pwmextvibra2_default_mux {
				ste,function = "pwmextvibra";
				ste,pins = "pwmextvibra2_d_1";
			};
			pwmextvibra1_default_cfg {
				ste,pins = "GPIO48";
				bias-disable;
			};
		};
	};
	gpio51 {
		gpio51_default_mode: gpio51_default {
				gpio51_default_mux {
				ste,function = "gpio";
				ste,pins = "gpio51_a_1";
			};
			gpio51_default_cfg {
				ste,pins = "GPIO51";
				output-low;
			};
		};
	};
	gpio52 {
		gpio52_default_mode: gpio52_default {
			gpio52_default_mux {
				ste,function = "gpio";
				ste,pins = "gpio52_a_1";
			};
			gpio52_default_cfg {
				ste,pins = "GPIO52";
				bias-pull-down;
			};
		};
	};
	gpio53 {
		gpio53_default_mode: gpio53_default {
			gpio53_default_mux {
				ste,function = "gpio";
				ste,pins = "gpio53_a_1";
			};
			gpio53_default_cfg {
				ste,pins = "GPIO53";
				bias-pull-down;
			};
		};
	};
	gpio54 {
		gpio54_default_mode: gpio54_default {
			gpio54_default_mux {
				ste,function = "gpio";
				ste,pins = "gpio54_a_1";
			};
			gpio54_default_cfg {
				ste,pins = "GPIO54";
				output-low;
			};
		};
	};
	pdmclkdat {
		pdmclkdat_default_mode: pdmclkdat_default {
			pdmclkdat_default_mux {
				ste,function = "pdm";
				ste,pins = "pdmclkdat_d_1";
			};
			pdmclkdat_default_cfg {
				ste,pins = "GPIO55", "GPIO56";
				bias-disable;
			};
		};
	};
};