Commit | Line | Data |
---|---|---|
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 LW |
34 | <&gpio35_default_mode>, |
35 | <&ycbcr_default_mode>; | |
83200629 LW |
36 | |
37 | /* | |
38 | * Pins 2, 4, 10, 11, 12, 13, 16, 24, 25, 36, 37, 38, 39 and 42 | |
39 | * are muxed in as GPIO, and configured as INPUT PULL DOWN | |
40 | */ | |
41 | gpio2 { | |
42 | gpio2_default_mode: gpio2_default { | |
43 | default_mux { | |
44 | ste,function = "gpio"; | |
45 | ste,pins = "gpio2_a_1"; | |
46 | }; | |
47 | default_cfg { | |
48 | ste,pins = "GPIO2_T9"; | |
49 | input-enable; | |
50 | bias-pull-down; | |
51 | }; | |
52 | }; | |
53 | }; | |
54 | gpio4 { | |
55 | gpio4_default_mode: gpio4_default { | |
56 | default_mux { | |
57 | ste,function = "gpio"; | |
58 | ste,pins = "gpio4_a_1"; | |
59 | }; | |
60 | default_cfg { | |
61 | ste,pins = "GPIO4_W2"; | |
62 | input-enable; | |
63 | bias-pull-down; | |
64 | }; | |
65 | }; | |
66 | }; | |
67 | gpio10 { | |
68 | gpio10_default_mode: gpio10_default { | |
69 | default_mux { | |
70 | ste,function = "gpio"; | |
71 | ste,pins = "gpio10_d_1"; | |
72 | }; | |
73 | default_cfg { | |
74 | ste,pins = "GPIO10_U17"; | |
75 | input-enable; | |
76 | bias-pull-down; | |
77 | }; | |
78 | }; | |
79 | }; | |
80 | gpio11 { | |
81 | gpio11_default_mode: gpio11_default { | |
82 | default_mux { | |
83 | ste,function = "gpio"; | |
84 | ste,pins = "gpio11_d_1"; | |
85 | }; | |
86 | default_cfg { | |
87 | ste,pins = "GPIO11_AA18"; | |
88 | input-enable; | |
89 | bias-pull-down; | |
90 | }; | |
91 | }; | |
92 | }; | |
93 | gpio12 { | |
94 | gpio12_default_mode: gpio12_default { | |
95 | default_mux { | |
96 | ste,function = "gpio"; | |
97 | ste,pins = "gpio12_d_1"; | |
98 | }; | |
99 | default_cfg { | |
100 | ste,pins = "GPIO12_U16"; | |
101 | input-enable; | |
102 | bias-pull-down; | |
103 | }; | |
104 | }; | |
105 | }; | |
106 | gpio13 { | |
107 | gpio13_default_mode: gpio13_default { | |
108 | default_mux { | |
109 | ste,function = "gpio"; | |
110 | ste,pins = "gpio13_d_1"; | |
111 | }; | |
112 | default_cfg { | |
113 | ste,pins = "GPIO13_W17"; | |
114 | input-enable; | |
115 | bias-pull-down; | |
116 | }; | |
117 | }; | |
118 | }; | |
119 | gpio16 { | |
120 | gpio16_default_mode: gpio16_default { | |
121 | default_mux { | |
122 | ste,function = "gpio"; | |
123 | ste,pins = "gpio16_a_1"; | |
124 | }; | |
125 | default_cfg { | |
126 | ste,pins = "GPIO16_F15"; | |
127 | input-enable; | |
128 | bias-pull-down; | |
129 | }; | |
130 | }; | |
131 | }; | |
132 | gpio24 { | |
133 | gpio24_default_mode: gpio24_default { | |
134 | default_mux { | |
135 | ste,function = "gpio"; | |
136 | ste,pins = "gpio24_a_1"; | |
137 | }; | |
138 | default_cfg { | |
139 | ste,pins = "GPIO24_T14"; | |
140 | input-enable; | |
141 | bias-pull-down; | |
142 | }; | |
143 | }; | |
144 | }; | |
145 | gpio25 { | |
146 | gpio25_default_mode: gpio25_default { | |
147 | default_mux { | |
148 | ste,function = "gpio"; | |
149 | ste,pins = "gpio25_a_1"; | |
150 | }; | |
151 | default_cfg { | |
152 | ste,pins = "GPIO25_R16"; | |
153 | input-enable; | |
154 | bias-pull-down; | |
155 | }; | |
156 | }; | |
157 | }; | |
158 | gpio36 { | |
159 | gpio36_default_mode: gpio36_default { | |
160 | default_mux { | |
161 | ste,function = "gpio"; | |
162 | ste,pins = "gpio36_a_1"; | |
163 | }; | |
164 | default_cfg { | |
165 | ste,pins = "GPIO36_A17"; | |
166 | input-enable; | |
167 | bias-pull-down; | |
168 | }; | |
169 | }; | |
170 | }; | |
171 | gpio37 { | |
172 | gpio37_default_mode: gpio37_default { | |
173 | default_mux { | |
174 | ste,function = "gpio"; | |
175 | ste,pins = "gpio37_a_1"; | |
176 | }; | |
177 | default_cfg { | |
178 | ste,pins = "GPIO37_E15"; | |
179 | input-enable; | |
180 | bias-pull-down; | |
181 | }; | |
182 | }; | |
183 | }; | |
184 | gpio38 { | |
185 | gpio38_default_mode: gpio38_default { | |
186 | default_mux { | |
187 | ste,function = "gpio"; | |
188 | ste,pins = "gpio38_a_1"; | |
189 | }; | |
190 | default_cfg { | |
191 | ste,pins = "GPIO38_C17"; | |
192 | input-enable; | |
193 | bias-pull-down; | |
194 | }; | |
195 | }; | |
196 | }; | |
197 | gpio39 { | |
198 | gpio39_default_mode: gpio39_default { | |
199 | default_mux { | |
200 | ste,function = "gpio"; | |
201 | ste,pins = "gpio39_a_1"; | |
202 | }; | |
203 | default_cfg { | |
204 | ste,pins = "GPIO39_E16"; | |
205 | input-enable; | |
206 | bias-pull-down; | |
207 | }; | |
208 | }; | |
209 | }; | |
210 | gpio42 { | |
211 | gpio42_default_mode: gpio42_default { | |
212 | default_mux { | |
213 | ste,function = "gpio"; | |
214 | ste,pins = "gpio42_a_1"; | |
215 | }; | |
216 | default_cfg { | |
217 | ste,pins = "GPIO42_U2"; | |
218 | input-enable; | |
219 | bias-pull-down; | |
220 | }; | |
221 | }; | |
222 | }; | |
223 | /* | |
224 | * Pins 26 and 35 muxed in as GPIO, and configured as OUTPUT LOW | |
225 | */ | |
226 | gpio26 { | |
227 | gpio26_default_mode: gpio26_default { | |
228 | default_mux { | |
229 | ste,function = "gpio"; | |
230 | ste,pins = "gpio26_d_1"; | |
231 | }; | |
232 | default_cfg { | |
233 | ste,pins = "GPIO26_M16"; | |
234 | output-low; | |
235 | }; | |
236 | }; | |
237 | }; | |
238 | gpio35 { | |
239 | gpio35_default_mode: gpio35_default { | |
240 | default_mux { | |
241 | ste,function = "gpio"; | |
242 | ste,pins = "gpio35_d_1"; | |
243 | }; | |
244 | default_cfg { | |
245 | ste,pins = "GPIO35_W15"; | |
246 | output-low; | |
247 | }; | |
248 | }; | |
249 | }; | |
fd385b33 LW |
250 | /* |
251 | * This sets up the YCBCR connector pins, i.e. analog video out. | |
252 | * Set as input with no bias. | |
253 | */ | |
254 | ycbcr { | |
255 | ycbcr_default_mode: ycbcr_default { | |
256 | default_mux { | |
257 | ste,function = "ycbcr"; | |
258 | ste,pins = "ycbcr0123_d_1"; | |
259 | }; | |
260 | default_cfg { | |
261 | ste,pins = "GPIO6_Y18", | |
262 | "GPIO7_AA20", | |
263 | "GPIO8_W18", | |
264 | "GPIO9_AA19"; | |
265 | input-enable; | |
266 | bias-disable; | |
267 | }; | |
268 | }; | |
269 | }; | |
83200629 LW |
270 | }; |
271 | }; | |
272 | }; | |
273 | }; | |
274 | }; |