ARM: ux500: move AB8500 audio interface 1 settings to DT
[deliverable/linux.git] / arch / arm / boot / dts / ste-href-ab8500.dtsi
CommitLineData
83200629
LW
1/*
2 * Copyright 2014 Linaro Ltd.
3 *
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
7 *
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
10 */
11
12/ {
13 soc {
14 prcmu@80157000 {
15 ab8500 {
16 ab8500-gpio {
17 /* Hog a few default settings */
18 pinctrl-names = "default";
19 pinctrl-0 = <&gpio2_default_mode>,
20 <&gpio4_default_mode>,
21 <&gpio10_default_mode>,
22 <&gpio11_default_mode>,
23 <&gpio12_default_mode>,
24 <&gpio13_default_mode>,
25 <&gpio16_default_mode>,
26 <&gpio24_default_mode>,
27 <&gpio25_default_mode>,
28 <&gpio36_default_mode>,
29 <&gpio37_default_mode>,
30 <&gpio38_default_mode>,
31 <&gpio39_default_mode>,
32 <&gpio42_default_mode>,
33 <&gpio26_default_mode>,
fd385b33 34 <&gpio35_default_mode>,
e2377c81 35 <&ycbcr_default_mode>,
b2985cf7
LW
36 <&pwm_default_mode>,
37 <&adi1_default_mode>;
83200629
LW
38
39 /*
40 * Pins 2, 4, 10, 11, 12, 13, 16, 24, 25, 36, 37, 38, 39 and 42
41 * are muxed in as GPIO, and configured as INPUT PULL DOWN
42 */
43 gpio2 {
44 gpio2_default_mode: gpio2_default {
45 default_mux {
46 ste,function = "gpio";
47 ste,pins = "gpio2_a_1";
48 };
49 default_cfg {
50 ste,pins = "GPIO2_T9";
51 input-enable;
52 bias-pull-down;
53 };
54 };
55 };
56 gpio4 {
57 gpio4_default_mode: gpio4_default {
58 default_mux {
59 ste,function = "gpio";
60 ste,pins = "gpio4_a_1";
61 };
62 default_cfg {
63 ste,pins = "GPIO4_W2";
64 input-enable;
65 bias-pull-down;
66 };
67 };
68 };
69 gpio10 {
70 gpio10_default_mode: gpio10_default {
71 default_mux {
72 ste,function = "gpio";
73 ste,pins = "gpio10_d_1";
74 };
75 default_cfg {
76 ste,pins = "GPIO10_U17";
77 input-enable;
78 bias-pull-down;
79 };
80 };
81 };
82 gpio11 {
83 gpio11_default_mode: gpio11_default {
84 default_mux {
85 ste,function = "gpio";
86 ste,pins = "gpio11_d_1";
87 };
88 default_cfg {
89 ste,pins = "GPIO11_AA18";
90 input-enable;
91 bias-pull-down;
92 };
93 };
94 };
95 gpio12 {
96 gpio12_default_mode: gpio12_default {
97 default_mux {
98 ste,function = "gpio";
99 ste,pins = "gpio12_d_1";
100 };
101 default_cfg {
102 ste,pins = "GPIO12_U16";
103 input-enable;
104 bias-pull-down;
105 };
106 };
107 };
108 gpio13 {
109 gpio13_default_mode: gpio13_default {
110 default_mux {
111 ste,function = "gpio";
112 ste,pins = "gpio13_d_1";
113 };
114 default_cfg {
115 ste,pins = "GPIO13_W17";
116 input-enable;
117 bias-pull-down;
118 };
119 };
120 };
121 gpio16 {
122 gpio16_default_mode: gpio16_default {
123 default_mux {
124 ste,function = "gpio";
125 ste,pins = "gpio16_a_1";
126 };
127 default_cfg {
128 ste,pins = "GPIO16_F15";
129 input-enable;
130 bias-pull-down;
131 };
132 };
133 };
134 gpio24 {
135 gpio24_default_mode: gpio24_default {
136 default_mux {
137 ste,function = "gpio";
138 ste,pins = "gpio24_a_1";
139 };
140 default_cfg {
141 ste,pins = "GPIO24_T14";
142 input-enable;
143 bias-pull-down;
144 };
145 };
146 };
147 gpio25 {
148 gpio25_default_mode: gpio25_default {
149 default_mux {
150 ste,function = "gpio";
151 ste,pins = "gpio25_a_1";
152 };
153 default_cfg {
154 ste,pins = "GPIO25_R16";
155 input-enable;
156 bias-pull-down;
157 };
158 };
159 };
160 gpio36 {
161 gpio36_default_mode: gpio36_default {
162 default_mux {
163 ste,function = "gpio";
164 ste,pins = "gpio36_a_1";
165 };
166 default_cfg {
167 ste,pins = "GPIO36_A17";
168 input-enable;
169 bias-pull-down;
170 };
171 };
172 };
173 gpio37 {
174 gpio37_default_mode: gpio37_default {
175 default_mux {
176 ste,function = "gpio";
177 ste,pins = "gpio37_a_1";
178 };
179 default_cfg {
180 ste,pins = "GPIO37_E15";
181 input-enable;
182 bias-pull-down;
183 };
184 };
185 };
186 gpio38 {
187 gpio38_default_mode: gpio38_default {
188 default_mux {
189 ste,function = "gpio";
190 ste,pins = "gpio38_a_1";
191 };
192 default_cfg {
193 ste,pins = "GPIO38_C17";
194 input-enable;
195 bias-pull-down;
196 };
197 };
198 };
199 gpio39 {
200 gpio39_default_mode: gpio39_default {
201 default_mux {
202 ste,function = "gpio";
203 ste,pins = "gpio39_a_1";
204 };
205 default_cfg {
206 ste,pins = "GPIO39_E16";
207 input-enable;
208 bias-pull-down;
209 };
210 };
211 };
212 gpio42 {
213 gpio42_default_mode: gpio42_default {
214 default_mux {
215 ste,function = "gpio";
216 ste,pins = "gpio42_a_1";
217 };
218 default_cfg {
219 ste,pins = "GPIO42_U2";
220 input-enable;
221 bias-pull-down;
222 };
223 };
224 };
225 /*
226 * Pins 26 and 35 muxed in as GPIO, and configured as OUTPUT LOW
227 */
228 gpio26 {
229 gpio26_default_mode: gpio26_default {
230 default_mux {
231 ste,function = "gpio";
232 ste,pins = "gpio26_d_1";
233 };
234 default_cfg {
235 ste,pins = "GPIO26_M16";
236 output-low;
237 };
238 };
239 };
240 gpio35 {
241 gpio35_default_mode: gpio35_default {
242 default_mux {
243 ste,function = "gpio";
244 ste,pins = "gpio35_d_1";
245 };
246 default_cfg {
247 ste,pins = "GPIO35_W15";
248 output-low;
249 };
250 };
251 };
fd385b33
LW
252 /*
253 * This sets up the YCBCR connector pins, i.e. analog video out.
254 * Set as input with no bias.
255 */
256 ycbcr {
257 ycbcr_default_mode: ycbcr_default {
258 default_mux {
259 ste,function = "ycbcr";
260 ste,pins = "ycbcr0123_d_1";
261 };
262 default_cfg {
263 ste,pins = "GPIO6_Y18",
264 "GPIO7_AA20",
265 "GPIO8_W18",
266 "GPIO9_AA19";
267 input-enable;
268 bias-disable;
269 };
270 };
271 };
e2377c81
LW
272 /* This sets up the PWM pins 14 and 15 */
273 pwm {
274 pwm_default_mode: pwm_default {
275 default_mux {
276 ste,function = "pwmout";
277 ste,pins = "pwmout1_d_1", "pwmout2_d_1";
278 };
279 default_cfg {
280 ste,pins = "GPIO14_F14",
281 "GPIO15_B17";
282 input-enable;
283 bias-pull-down;
284 };
285 };
286 };
b2985cf7
LW
287 /* This sets up audio interface 1 */
288 adi1 {
289 adi1_default_mode: adi1_default {
290 default_mux {
291 ste,function = "adi1";
292 ste,pins = "adi1_d_1";
293 };
294 default_cfg {
295 ste,pins = "GPIO17_P5",
296 "GPIO18_R5",
297 "GPIO19_U5",
298 "GPIO20_T5";
299 input-enable;
300 bias-pull-down;
301 };
302 };
303 };
83200629
LW
304 };
305 };
306 };
307 };
308};
This page took 0.037442 seconds and 5 git commands to generate.