ste,abx500.txt 6.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
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".

11 12
ST Ericsson's pin configuration nodes use the generic pin multiplexing
and pin configuration bindings, see pinctrl-bindings.txt
13 14 15 16 17 18 19 20 21 22

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 {
23 24
				function = "sysclkreq";
				groups = "sysclkreq2_d_1";
25 26
			};
			default_cfg {
27
				pins = "GPIO1";
28 29 30 31 32 33 34
				bias-disable;
			};
		};
	};
	sysclkreq3 {
		sysclkreq3_default_mode: sysclkreq3_default {
			default_mux {
35 36
				function = "sysclkreq";
				groups = "sysclkreq3_d_1";
37 38
			};
			default_cfg {
39
				pins = "GPIO2";
40 41 42 43 44 45 46
				output-low;
			};
		};
	};
	gpio3 {
		gpio3_default_mode: gpio3_default {
			default_mux {
47 48
				function = "gpio";
				groups = "gpio3_a_1";
49 50
			};
			default_cfg {
51
				pins = "GPIO3";
52 53 54 55 56 57 58
				output-low;
			};
		};
	};
	sysclkreq6 {
		sysclkreq6_default_mode: sysclkreq6_default {
			default_mux {
59 60
				function = "sysclkreq";
				groups = "sysclkreq6_d_1";
61 62
			};
			default_cfg {
63
				pins = "GPIO4";
64 65 66 67 68 69 70
				bias-disable;
			};
		};
	};
	pwmout1 {
		pwmout1_default_mode: pwmout1_default {
			default_mux {
71 72
				function = "pwmout";
				groups = "pwmout1_d_1";
73 74
			};
			default_cfg {
75
				pins = "GPIO14";
76 77 78 79 80 81 82
				output-low;
			};
		};
	};
	pwmout2 {
		pwmout2_default_mode: pwmout2_default {
			pwmout2_default_mux {
83 84
				function = "pwmout";
				groups = "pwmout2_d_1";
85 86
			};
			pwmout2_default_cfg {
87
				pins = "GPIO15";
88 89 90 91 92 93 94
				output-low;
			};
		};
	};
	pwmout3 {
		pwmout3_default_mode: pwmout3_default {
			pwmout3_default_mux {
95 96
				function = "pwmout";
				groups = "pwmout3_d_1";
97 98
			};
			pwmout3_default_cfg {
99
				pins = "GPIO16";
100 101 102 103 104 105 106 107
				output-low;
			};
		};
	};
	adi1 {

		adi1_default_mode: adi1_default {
			adi1_default_mux {
108 109
				function = "adi1";
				groups = "adi1_d_1";
110 111
			};
			adi1_default_cfg1 {
112
				pins = "GPIO17","GPIO19","GPIO20";
113 114 115
				bias-disable;
			};
			adi1_default_cfg2 {
116
				pins = "GPIO18";
117 118 119 120 121 122 123
				output-low;
			};
		};
	};
	dmic12 {
		dmic12_default_mode: dmic12_default {
			dmic12_default_mux {
124 125
				function = "dmic";
				groups = "dmic12_d_1";
126 127
			};
			dmic12_default_cfg1 {
128
				pins = "GPIO27";
129 130 131
				output-low;
			};
			dmic12_default_cfg2 {
132
				pins = "GPIO28";
133 134 135 136 137 138 139
				bias-disable;
			};
		};
	};
	dmic34 {
		dmic34_default_mode: dmic34_default {
			dmic34_default_mux {
140 141
				function = "dmic";
				groups = "dmic34_d_1";
142 143
			};
			dmic34_default_cfg1 {
144
				pins = "GPIO29";
145 146 147
				output-low;
			};
			dmic34_default_cfg2 {
148
				pins = "GPIO30";
149 150 151 152 153 154 155 156
				bias-disable;{

			};
		};
	};
	dmic56 {
		dmic56_default_mode: dmic56_default {
			dmic56_default_mux {
157 158
				function = "dmic";
				groups = "dmic56_d_1";
159 160
			};
			dmic56_default_cfg1 {
161
				pins = "GPIO31";
162 163 164
				output-low;
			};
			dmic56_default_cfg2 {
165
				pins = "GPIO32";
166 167 168 169 170 171 172
				bias-disable;
			};
		};
	};
	sysclkreq5 {
		sysclkreq5_default_mode: sysclkreq5_default {
			sysclkreq5_default_mux {
173 174
				function = "sysclkreq";
				groups = "sysclkreq5_d_1";
175 176
			};
			sysclkreq5_default_cfg {
177
				pins = "GPIO42";
178 179 180 181 182 183 184
				output-low;
			};
		};
	};
	batremn {
		batremn_default_mode: batremn_default {
			batremn_default_mux {
185 186
				function = "batremn";
				groups = "batremn_d_1";
187 188
			};
			batremn_default_cfg {
189
				pins = "GPIO43";
190 191 192 193 194 195 196
				bias-disable;
			};
		};
	};
	service {
		service_default_mode: service_default {
			service_default_mux {
197 198
				function = "service";
				groups = "service_d_1";
199 200
			};
			service_default_cfg {
201
				pins = "GPIO44";
202 203 204 205 206 207 208
				bias-disable;
			};
		};
	};
	pwrctrl0 {
		pwrctrl0_default_mux: pwrctrl0_mux {
			pwrctrl0_default_mux {
209 210
				function = "pwrctrl";
				groups = "pwrctrl0_d_1";
211 212 213 214
			};
		};
		pwrctrl0_default_mode: pwrctrl0_default {
			pwrctrl0_default_cfg {
215
				pins = "GPIO45";
216 217 218 219 220 221 222
				bias-disable;
			};
		};
	};
	pwrctrl1 {
		pwrctrl1_default_mux: pwrctrl1_mux {
			pwrctrl1_default_mux {
223 224
				function = "pwrctrl";
				groups = "pwrctrl1_d_1";
225 226 227 228
			};
		};
		pwrctrl1_default_mode: pwrctrl1_default {
			pwrctrl1_default_cfg {
229
				pins = "GPIO46";
230 231 232 233 234 235 236
				bias-disable;
			};
		};
	};
	pwmextvibra1 {
		pwmextvibra1_default_mode: pwmextvibra1_default {
			pwmextvibra1_default_mux {
237 238
				function = "pwmextvibra";
				groups = "pwmextvibra1_d_1";
239 240
			};
			pwmextvibra1_default_cfg {
241
				pins = "GPIO47";
242 243 244 245 246 247 248
				bias-disable;
			};
		};
	};
	pwmextvibra2 {
		pwmextvibra2_default_mode: pwmextvibra2_default {
			pwmextvibra2_default_mux {
249 250
				function = "pwmextvibra";
				groups = "pwmextvibra2_d_1";
251 252
			};
			pwmextvibra1_default_cfg {
253
				pins = "GPIO48";
254 255 256 257 258 259 260
				bias-disable;
			};
		};
	};
	gpio51 {
		gpio51_default_mode: gpio51_default {
				gpio51_default_mux {
261 262
				function = "gpio";
				groups = "gpio51_a_1";
263 264
			};
			gpio51_default_cfg {
265
				pins = "GPIO51";
266 267 268 269 270 271 272
				output-low;
			};
		};
	};
	gpio52 {
		gpio52_default_mode: gpio52_default {
			gpio52_default_mux {
273 274
				function = "gpio";
				groups = "gpio52_a_1";
275 276
			};
			gpio52_default_cfg {
277
				pins = "GPIO52";
278 279 280 281 282 283 284
				bias-pull-down;
			};
		};
	};
	gpio53 {
		gpio53_default_mode: gpio53_default {
			gpio53_default_mux {
285 286
				function = "gpio";
				groups = "gpio53_a_1";
287 288
			};
			gpio53_default_cfg {
289
				pins = "GPIO53";
290 291 292 293 294 295 296
				bias-pull-down;
			};
		};
	};
	gpio54 {
		gpio54_default_mode: gpio54_default {
			gpio54_default_mux {
297 298
				function = "gpio";
				groups = "gpio54_a_1";
299 300
			};
			gpio54_default_cfg {
301
				pins = "GPIO54";
302 303 304 305 306 307 308
				output-low;
			};
		};
	};
	pdmclkdat {
		pdmclkdat_default_mode: pdmclkdat_default {
			pdmclkdat_default_mux {
309 310
				function = "pdm";
				groups = "pdmclkdat_d_1";
311 312
			};
			pdmclkdat_default_cfg {
313
				pins = "GPIO55", "GPIO56";
314 315 316 317 318
				bias-disable;
			};
		};
	};
};