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