Linus Walleij | 8320062 | 2014-02-03 14:32:20 +0100 | [diff] [blame] | 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>, |
Linus Walleij | fd385b3 | 2014-02-03 14:46:19 +0100 | [diff] [blame] | 34 | <&gpio35_default_mode>, |
Linus Walleij | e2377c8 | 2014-02-03 14:57:22 +0100 | [diff] [blame] | 35 | <&ycbcr_default_mode>, |
Linus Walleij | b2985cf | 2014-02-03 15:43:22 +0100 | [diff] [blame] | 36 | <&pwm_default_mode>, |
Linus Walleij | c7bb47a | 2014-02-03 22:43:45 +0100 | [diff] [blame] | 37 | <&adi1_default_mode>, |
Linus Walleij | 1f04159 | 2014-02-03 22:51:58 +0100 | [diff] [blame^] | 38 | <&usbuicc_default_mode>, |
| 39 | <&dmic_default_mode>; |
Linus Walleij | 8320062 | 2014-02-03 14:32:20 +0100 | [diff] [blame] | 40 | |
| 41 | /* |
| 42 | * Pins 2, 4, 10, 11, 12, 13, 16, 24, 25, 36, 37, 38, 39 and 42 |
| 43 | * are muxed in as GPIO, and configured as INPUT PULL DOWN |
| 44 | */ |
| 45 | gpio2 { |
| 46 | gpio2_default_mode: gpio2_default { |
| 47 | default_mux { |
| 48 | ste,function = "gpio"; |
| 49 | ste,pins = "gpio2_a_1"; |
| 50 | }; |
| 51 | default_cfg { |
| 52 | ste,pins = "GPIO2_T9"; |
| 53 | input-enable; |
| 54 | bias-pull-down; |
| 55 | }; |
| 56 | }; |
| 57 | }; |
| 58 | gpio4 { |
| 59 | gpio4_default_mode: gpio4_default { |
| 60 | default_mux { |
| 61 | ste,function = "gpio"; |
| 62 | ste,pins = "gpio4_a_1"; |
| 63 | }; |
| 64 | default_cfg { |
| 65 | ste,pins = "GPIO4_W2"; |
| 66 | input-enable; |
| 67 | bias-pull-down; |
| 68 | }; |
| 69 | }; |
| 70 | }; |
| 71 | gpio10 { |
| 72 | gpio10_default_mode: gpio10_default { |
| 73 | default_mux { |
| 74 | ste,function = "gpio"; |
| 75 | ste,pins = "gpio10_d_1"; |
| 76 | }; |
| 77 | default_cfg { |
| 78 | ste,pins = "GPIO10_U17"; |
| 79 | input-enable; |
| 80 | bias-pull-down; |
| 81 | }; |
| 82 | }; |
| 83 | }; |
| 84 | gpio11 { |
| 85 | gpio11_default_mode: gpio11_default { |
| 86 | default_mux { |
| 87 | ste,function = "gpio"; |
| 88 | ste,pins = "gpio11_d_1"; |
| 89 | }; |
| 90 | default_cfg { |
| 91 | ste,pins = "GPIO11_AA18"; |
| 92 | input-enable; |
| 93 | bias-pull-down; |
| 94 | }; |
| 95 | }; |
| 96 | }; |
| 97 | gpio12 { |
| 98 | gpio12_default_mode: gpio12_default { |
| 99 | default_mux { |
| 100 | ste,function = "gpio"; |
| 101 | ste,pins = "gpio12_d_1"; |
| 102 | }; |
| 103 | default_cfg { |
| 104 | ste,pins = "GPIO12_U16"; |
| 105 | input-enable; |
| 106 | bias-pull-down; |
| 107 | }; |
| 108 | }; |
| 109 | }; |
| 110 | gpio13 { |
| 111 | gpio13_default_mode: gpio13_default { |
| 112 | default_mux { |
| 113 | ste,function = "gpio"; |
| 114 | ste,pins = "gpio13_d_1"; |
| 115 | }; |
| 116 | default_cfg { |
| 117 | ste,pins = "GPIO13_W17"; |
| 118 | input-enable; |
| 119 | bias-pull-down; |
| 120 | }; |
| 121 | }; |
| 122 | }; |
| 123 | gpio16 { |
| 124 | gpio16_default_mode: gpio16_default { |
| 125 | default_mux { |
| 126 | ste,function = "gpio"; |
| 127 | ste,pins = "gpio16_a_1"; |
| 128 | }; |
| 129 | default_cfg { |
| 130 | ste,pins = "GPIO16_F15"; |
| 131 | input-enable; |
| 132 | bias-pull-down; |
| 133 | }; |
| 134 | }; |
| 135 | }; |
| 136 | gpio24 { |
| 137 | gpio24_default_mode: gpio24_default { |
| 138 | default_mux { |
| 139 | ste,function = "gpio"; |
| 140 | ste,pins = "gpio24_a_1"; |
| 141 | }; |
| 142 | default_cfg { |
| 143 | ste,pins = "GPIO24_T14"; |
| 144 | input-enable; |
| 145 | bias-pull-down; |
| 146 | }; |
| 147 | }; |
| 148 | }; |
| 149 | gpio25 { |
| 150 | gpio25_default_mode: gpio25_default { |
| 151 | default_mux { |
| 152 | ste,function = "gpio"; |
| 153 | ste,pins = "gpio25_a_1"; |
| 154 | }; |
| 155 | default_cfg { |
| 156 | ste,pins = "GPIO25_R16"; |
| 157 | input-enable; |
| 158 | bias-pull-down; |
| 159 | }; |
| 160 | }; |
| 161 | }; |
| 162 | gpio36 { |
| 163 | gpio36_default_mode: gpio36_default { |
| 164 | default_mux { |
| 165 | ste,function = "gpio"; |
| 166 | ste,pins = "gpio36_a_1"; |
| 167 | }; |
| 168 | default_cfg { |
| 169 | ste,pins = "GPIO36_A17"; |
| 170 | input-enable; |
| 171 | bias-pull-down; |
| 172 | }; |
| 173 | }; |
| 174 | }; |
| 175 | gpio37 { |
| 176 | gpio37_default_mode: gpio37_default { |
| 177 | default_mux { |
| 178 | ste,function = "gpio"; |
| 179 | ste,pins = "gpio37_a_1"; |
| 180 | }; |
| 181 | default_cfg { |
| 182 | ste,pins = "GPIO37_E15"; |
| 183 | input-enable; |
| 184 | bias-pull-down; |
| 185 | }; |
| 186 | }; |
| 187 | }; |
| 188 | gpio38 { |
| 189 | gpio38_default_mode: gpio38_default { |
| 190 | default_mux { |
| 191 | ste,function = "gpio"; |
| 192 | ste,pins = "gpio38_a_1"; |
| 193 | }; |
| 194 | default_cfg { |
| 195 | ste,pins = "GPIO38_C17"; |
| 196 | input-enable; |
| 197 | bias-pull-down; |
| 198 | }; |
| 199 | }; |
| 200 | }; |
| 201 | gpio39 { |
| 202 | gpio39_default_mode: gpio39_default { |
| 203 | default_mux { |
| 204 | ste,function = "gpio"; |
| 205 | ste,pins = "gpio39_a_1"; |
| 206 | }; |
| 207 | default_cfg { |
| 208 | ste,pins = "GPIO39_E16"; |
| 209 | input-enable; |
| 210 | bias-pull-down; |
| 211 | }; |
| 212 | }; |
| 213 | }; |
| 214 | gpio42 { |
| 215 | gpio42_default_mode: gpio42_default { |
| 216 | default_mux { |
| 217 | ste,function = "gpio"; |
| 218 | ste,pins = "gpio42_a_1"; |
| 219 | }; |
| 220 | default_cfg { |
| 221 | ste,pins = "GPIO42_U2"; |
| 222 | input-enable; |
| 223 | bias-pull-down; |
| 224 | }; |
| 225 | }; |
| 226 | }; |
| 227 | /* |
| 228 | * Pins 26 and 35 muxed in as GPIO, and configured as OUTPUT LOW |
| 229 | */ |
| 230 | gpio26 { |
| 231 | gpio26_default_mode: gpio26_default { |
| 232 | default_mux { |
| 233 | ste,function = "gpio"; |
| 234 | ste,pins = "gpio26_d_1"; |
| 235 | }; |
| 236 | default_cfg { |
| 237 | ste,pins = "GPIO26_M16"; |
| 238 | output-low; |
| 239 | }; |
| 240 | }; |
| 241 | }; |
| 242 | gpio35 { |
| 243 | gpio35_default_mode: gpio35_default { |
| 244 | default_mux { |
| 245 | ste,function = "gpio"; |
| 246 | ste,pins = "gpio35_d_1"; |
| 247 | }; |
| 248 | default_cfg { |
| 249 | ste,pins = "GPIO35_W15"; |
| 250 | output-low; |
| 251 | }; |
| 252 | }; |
| 253 | }; |
Linus Walleij | fd385b3 | 2014-02-03 14:46:19 +0100 | [diff] [blame] | 254 | /* |
| 255 | * This sets up the YCBCR connector pins, i.e. analog video out. |
| 256 | * Set as input with no bias. |
| 257 | */ |
| 258 | ycbcr { |
| 259 | ycbcr_default_mode: ycbcr_default { |
| 260 | default_mux { |
| 261 | ste,function = "ycbcr"; |
| 262 | ste,pins = "ycbcr0123_d_1"; |
| 263 | }; |
| 264 | default_cfg { |
| 265 | ste,pins = "GPIO6_Y18", |
| 266 | "GPIO7_AA20", |
| 267 | "GPIO8_W18", |
| 268 | "GPIO9_AA19"; |
| 269 | input-enable; |
| 270 | bias-disable; |
| 271 | }; |
| 272 | }; |
| 273 | }; |
Linus Walleij | e2377c8 | 2014-02-03 14:57:22 +0100 | [diff] [blame] | 274 | /* This sets up the PWM pins 14 and 15 */ |
| 275 | pwm { |
| 276 | pwm_default_mode: pwm_default { |
| 277 | default_mux { |
| 278 | ste,function = "pwmout"; |
| 279 | ste,pins = "pwmout1_d_1", "pwmout2_d_1"; |
| 280 | }; |
| 281 | default_cfg { |
| 282 | ste,pins = "GPIO14_F14", |
| 283 | "GPIO15_B17"; |
| 284 | input-enable; |
| 285 | bias-pull-down; |
| 286 | }; |
| 287 | }; |
| 288 | }; |
Linus Walleij | b2985cf | 2014-02-03 15:43:22 +0100 | [diff] [blame] | 289 | /* This sets up audio interface 1 */ |
| 290 | adi1 { |
| 291 | adi1_default_mode: adi1_default { |
| 292 | default_mux { |
| 293 | ste,function = "adi1"; |
| 294 | ste,pins = "adi1_d_1"; |
| 295 | }; |
| 296 | default_cfg { |
| 297 | ste,pins = "GPIO17_P5", |
| 298 | "GPIO18_R5", |
| 299 | "GPIO19_U5", |
| 300 | "GPIO20_T5"; |
| 301 | input-enable; |
| 302 | bias-pull-down; |
| 303 | }; |
| 304 | }; |
| 305 | }; |
Linus Walleij | c7bb47a | 2014-02-03 22:43:45 +0100 | [diff] [blame] | 306 | /* This sets up the USB UICC pins */ |
| 307 | usbuicc { |
| 308 | usbuicc_default_mode: usbuicc_default { |
| 309 | default_mux { |
| 310 | ste,function = "usbuicc"; |
| 311 | ste,pins = "usbuicc_d_1"; |
| 312 | }; |
| 313 | default_cfg { |
| 314 | ste,pins = "GPIO21_H19", |
| 315 | "GPIO22_G20", |
| 316 | "GPIO23_G19"; |
| 317 | input-enable; |
| 318 | bias-pull-down; |
| 319 | }; |
| 320 | }; |
| 321 | }; |
Linus Walleij | 1f04159 | 2014-02-03 22:51:58 +0100 | [diff] [blame^] | 322 | /* This sets up the microphone pins */ |
| 323 | dmic { |
| 324 | dmic_default_mode: dmic_default { |
| 325 | default_mux { |
| 326 | ste,function = "dmic"; |
| 327 | ste,pins = "dmic12_d_1", |
| 328 | "dmic34_d_1", |
| 329 | "dmic56_d_1"; |
| 330 | }; |
| 331 | default_cfg { |
| 332 | ste,pins = "GPIO27_J6", |
| 333 | "GPIO28_K6", |
| 334 | "GPIO29_G6", |
| 335 | "GPIO30_H6", |
| 336 | "GPIO31_F5", |
| 337 | "GPIO32_G5"; |
| 338 | input-enable; |
| 339 | bias-pull-down; |
| 340 | }; |
| 341 | }; |
| 342 | }; |
| 343 | |
Linus Walleij | 8320062 | 2014-02-03 14:32:20 +0100 | [diff] [blame] | 344 | }; |
| 345 | }; |
| 346 | }; |
| 347 | }; |
| 348 | }; |