Arnd Bergmann | 2d33429 | 2012-03-07 15:04:07 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2011 ST-Ericsson AB |
| 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 | /dts-v1/; |
Gabriel Fernandez | 807e883 | 2013-05-27 15:30:53 +0200 | [diff] [blame] | 13 | #include "dbx5x0.dtsi" |
Arnd Bergmann | 2d33429 | 2012-03-07 15:04:07 +0000 | [diff] [blame] | 14 | |
| 15 | / { |
| 16 | model = "Calao Systems Snowball platform with device tree"; |
Lee Jones | 79b4075 | 2012-10-15 10:07:55 +0100 | [diff] [blame] | 17 | compatible = "calaosystems,snowball-a9500", "st-ericsson,u9500"; |
Arnd Bergmann | 2d33429 | 2012-03-07 15:04:07 +0000 | [diff] [blame] | 18 | |
Arnd Bergmann | 2d33429 | 2012-03-07 15:04:07 +0000 | [diff] [blame] | 19 | memory { |
| 20 | reg = <0x00000000 0x20000000>; |
| 21 | }; |
| 22 | |
Lee Jones | bc36748 | 2012-05-03 11:23:47 +0100 | [diff] [blame] | 23 | en_3v3_reg: en_3v3 { |
| 24 | compatible = "regulator-fixed"; |
| 25 | regulator-name = "en-3v3-fixed-supply"; |
| 26 | regulator-min-microvolt = <3300000>; |
| 27 | regulator-max-microvolt = <3300000>; |
| 28 | gpios = <&gpio0 26 0x4>; // 26 |
| 29 | startup-delay-us = <5000>; |
| 30 | enable-active-high; |
| 31 | }; |
| 32 | |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 33 | gpio_keys { |
| 34 | compatible = "gpio-keys"; |
| 35 | #address-cells = <1>; |
| 36 | #size-cells = <0>; |
| 37 | |
| 38 | button@1 { |
| 39 | debounce_interval = <50>; |
| 40 | wakeup = <1>; |
| 41 | linux,code = <2>; |
| 42 | label = "userpb"; |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 43 | gpios = <&gpio1 0 0x4>; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 44 | }; |
| 45 | button@2 { |
| 46 | debounce_interval = <50>; |
| 47 | wakeup = <1>; |
| 48 | linux,code = <3>; |
Lee Jones | 3f3ed40 | 2012-04-13 15:05:07 +0100 | [diff] [blame] | 49 | label = "extkb1"; |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 50 | gpios = <&gpio4 23 0x4>; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 51 | }; |
| 52 | button@3 { |
| 53 | debounce_interval = <50>; |
| 54 | wakeup = <1>; |
| 55 | linux,code = <4>; |
Lee Jones | 3f3ed40 | 2012-04-13 15:05:07 +0100 | [diff] [blame] | 56 | label = "extkb2"; |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 57 | gpios = <&gpio4 24 0x4>; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 58 | }; |
| 59 | button@4 { |
| 60 | debounce_interval = <50>; |
| 61 | wakeup = <1>; |
| 62 | linux,code = <5>; |
Lee Jones | 3f3ed40 | 2012-04-13 15:05:07 +0100 | [diff] [blame] | 63 | label = "extkb3"; |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 64 | gpios = <&gpio5 1 0x4>; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 65 | }; |
| 66 | button@5 { |
| 67 | debounce_interval = <50>; |
| 68 | wakeup = <1>; |
| 69 | linux,code = <6>; |
Lee Jones | 3f3ed40 | 2012-04-13 15:05:07 +0100 | [diff] [blame] | 70 | label = "extkb4"; |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 71 | gpios = <&gpio5 2 0x4>; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 72 | }; |
| 73 | }; |
| 74 | |
| 75 | leds { |
| 76 | compatible = "gpio-leds"; |
| 77 | used-led { |
| 78 | label = "user_led"; |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 79 | gpios = <&gpio4 14 0x4>; |
Lee Jones | 7fd975f | 2012-06-15 09:30:30 +0100 | [diff] [blame] | 80 | default-state = "on"; |
Lee Jones | fd53d04 | 2012-05-02 09:48:38 +0100 | [diff] [blame] | 81 | linux,default-trigger = "heartbeat"; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 82 | }; |
| 83 | }; |
| 84 | |
Gabriel Fernandez | b1ba143 | 2013-03-01 14:38:07 +0100 | [diff] [blame] | 85 | soc { |
Lee Jones | e648806 | 2012-07-31 13:31:50 +0100 | [diff] [blame] | 86 | |
| 87 | sound { |
| 88 | compatible = "stericsson,snd-soc-mop500"; |
| 89 | |
| 90 | stericsson,cpu-dai = <&msp1 &msp3>; |
| 91 | stericsson,audio-codec = <&codec>; |
| 92 | }; |
| 93 | |
Lee Jones | fe16452 | 2012-07-31 12:37:16 +0100 | [diff] [blame] | 94 | msp1: msp@80124000 { |
| 95 | status = "okay"; |
| 96 | }; |
| 97 | |
| 98 | msp3: msp@80125000 { |
| 99 | status = "okay"; |
| 100 | }; |
| 101 | |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 102 | external-bus@50000000 { |
Lee Jones | bf76e06 | 2012-04-24 10:53:18 +0100 | [diff] [blame] | 103 | status = "okay"; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 104 | |
Lee Jones | bf76e06 | 2012-04-24 10:53:18 +0100 | [diff] [blame] | 105 | ethernet@0 { |
| 106 | compatible = "smsc,lan9115"; |
| 107 | reg = <0 0x10000>; |
Linus Walleij | 90c4025 | 2013-05-29 19:15:39 +0200 | [diff] [blame] | 108 | interrupts = <12 IRQ_TYPE_EDGE_RISING>; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 109 | interrupt-parent = <&gpio4>; |
Lee Jones | bc36748 | 2012-05-03 11:23:47 +0100 | [diff] [blame] | 110 | vdd33a-supply = <&en_3v3_reg>; |
| 111 | vddvario-supply = <&db8500_vape_reg>; |
| 112 | |
Lee Jones | bf76e06 | 2012-04-24 10:53:18 +0100 | [diff] [blame] | 113 | |
| 114 | reg-shift = <1>; |
| 115 | reg-io-width = <2>; |
| 116 | smsc,force-internal-phy; |
| 117 | smsc,irq-active-high; |
| 118 | smsc,irq-push-pull; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 119 | }; |
| 120 | }; |
| 121 | |
Lee Jones | 383307c | 2013-04-02 14:21:54 +0100 | [diff] [blame] | 122 | vmmci: regulator-gpio { |
| 123 | gpios = <&gpio6 25 0x4>; |
| 124 | enable-gpio = <&gpio7 4 0x4>; |
| 125 | |
| 126 | status = "okay"; |
| 127 | }; |
| 128 | |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 129 | // External Micro SD slot |
Lee Jones | 81bf8c2 | 2012-09-26 12:55:56 +0100 | [diff] [blame] | 130 | sdi0_per1@80126000 { |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 131 | arm,primecell-periphid = <0x10480180>; |
Linus Walleij | 90ccde4 | 2013-05-27 13:15:05 +0200 | [diff] [blame] | 132 | max-frequency = <100000000>; |
Lee Jones | 92a0f48 | 2012-09-26 11:12:48 +0100 | [diff] [blame] | 133 | bus-width = <4>; |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 134 | mmc-cap-mmc-highspeed; |
Lee Jones | 4a85c7f | 2012-05-29 14:29:53 +0800 | [diff] [blame] | 135 | vmmc-supply = <&ab8500_ldo_aux3_reg>; |
Lee Jones | 383307c | 2013-04-02 14:21:54 +0100 | [diff] [blame] | 136 | vqmmc-supply = <&vmmci>; |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 137 | |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 138 | cd-gpios = <&gpio6 26 0x4>; // 218 |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 139 | cd-inverted; |
| 140 | |
| 141 | status = "okay"; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 142 | }; |
| 143 | |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 144 | // On-board eMMC |
Lee Jones | 81bf8c2 | 2012-09-26 12:55:56 +0100 | [diff] [blame] | 145 | sdi4_per2@80114000 { |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 146 | arm,primecell-periphid = <0x10480180>; |
Linus Walleij | 90ccde4 | 2013-05-27 13:15:05 +0200 | [diff] [blame] | 147 | max-frequency = <100000000>; |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 148 | bus-width = <8>; |
| 149 | mmc-cap-mmc-highspeed; |
Lee Jones | 4a85c7f | 2012-05-29 14:29:53 +0800 | [diff] [blame] | 150 | vmmc-supply = <&ab8500_ldo_aux2_reg>; |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 151 | |
| 152 | status = "okay"; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 153 | }; |
| 154 | |
Lee Jones | 4905af0 | 2012-03-07 17:35:04 +0000 | [diff] [blame] | 155 | uart@80120000 { |
| 156 | status = "okay"; |
| 157 | }; |
| 158 | |
| 159 | uart@80121000 { |
| 160 | status = "okay"; |
| 161 | }; |
| 162 | |
| 163 | uart@80007000 { |
| 164 | status = "okay"; |
| 165 | }; |
| 166 | |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 167 | i2c@80004000 { |
| 168 | tc3589x@42 { |
| 169 | //compatible = "tc3589x"; |
| 170 | reg = <0x42>; |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 171 | gpios = <&gpio6 25 0x4>; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 172 | interrupt-parent = <&gpio6>; |
| 173 | }; |
| 174 | tps61052@33 { |
| 175 | //compatible = "tps61052"; |
| 176 | reg = <0x33>; |
| 177 | }; |
| 178 | }; |
| 179 | |
| 180 | i2c@80128000 { |
Linus Walleij | d594224 | 2013-06-04 11:50:32 +0200 | [diff] [blame^] | 181 | lp5521@33 { |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 182 | // compatible = "lp5521"; |
| 183 | reg = <0x33>; |
| 184 | }; |
Linus Walleij | d594224 | 2013-06-04 11:50:32 +0200 | [diff] [blame^] | 185 | lp5521@34 { |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 186 | // compatible = "lp5521"; |
| 187 | reg = <0x34>; |
| 188 | }; |
Linus Walleij | d594224 | 2013-06-04 11:50:32 +0200 | [diff] [blame^] | 189 | bh1780@29 { |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 190 | // compatible = "rohm,bh1780gli"; |
| 191 | reg = <0x33>; |
| 192 | }; |
| 193 | }; |
hongbo.zhang | dc1956b | 2012-11-15 18:56:43 +0800 | [diff] [blame] | 194 | |
| 195 | cpufreq-cooling { |
| 196 | status = "okay"; |
| 197 | }; |
Linus Torvalds | db5b0ae | 2012-12-13 10:39:26 -0800 | [diff] [blame] | 198 | |
Lee Jones | 809efa5 | 2012-09-25 12:04:51 +0100 | [diff] [blame] | 199 | prcmu@80157000 { |
| 200 | db8500-prcmu-regulators { |
| 201 | db8500_vape_reg: db8500_vape { |
| 202 | regulator-name = "db8500-vape"; |
| 203 | }; |
| 204 | |
| 205 | db8500_varm_reg: db8500_varm { |
| 206 | regulator-name = "db8500-varm"; |
| 207 | }; |
| 208 | |
| 209 | db8500_vmodem_reg: db8500_vmodem { |
| 210 | regulator-name = "db8500-vmodem"; |
| 211 | }; |
| 212 | |
| 213 | db8500_vpll_reg: db8500_vpll { |
| 214 | regulator-name = "db8500-vpll"; |
| 215 | }; |
| 216 | |
| 217 | db8500_vsmps1_reg: db8500_vsmps1 { |
| 218 | regulator-name = "db8500-vsmps1"; |
| 219 | }; |
| 220 | |
| 221 | db8500_vsmps2_reg: db8500_vsmps2 { |
| 222 | regulator-name = "db8500-vsmps2"; |
| 223 | }; |
| 224 | |
| 225 | db8500_vsmps3_reg: db8500_vsmps3 { |
| 226 | regulator-name = "db8500-vsmps3"; |
| 227 | }; |
| 228 | |
| 229 | db8500_vrf1_reg: db8500_vrf1 { |
| 230 | regulator-name = "db8500-vrf1"; |
| 231 | }; |
| 232 | |
| 233 | db8500_sva_mmdsp_reg: db8500_sva_mmdsp { |
| 234 | regulator-name = "db8500-sva-mmdsp"; |
| 235 | }; |
| 236 | |
| 237 | db8500_sva_mmdsp_ret_reg: db8500_sva_mmdsp_ret { |
| 238 | regulator-name = "db8500-sva-mmdsp-ret"; |
| 239 | }; |
| 240 | |
| 241 | db8500_sva_pipe_reg: db8500_sva_pipe { |
| 242 | regulator-name = "db8500_sva_pipe"; |
| 243 | }; |
| 244 | |
| 245 | db8500_sia_mmdsp_reg: db8500_sia_mmdsp { |
| 246 | regulator-name = "db8500_sia_mmdsp"; |
| 247 | }; |
| 248 | |
| 249 | db8500_sia_mmdsp_ret_reg: db8500_sia_mmdsp_ret { |
| 250 | regulator-name = "db8500-sia-mmdsp-ret"; |
| 251 | }; |
| 252 | |
| 253 | db8500_sia_pipe_reg: db8500_sia_pipe { |
| 254 | regulator-name = "db8500-sia-pipe"; |
| 255 | }; |
| 256 | |
| 257 | db8500_sga_reg: db8500_sga { |
| 258 | regulator-name = "db8500-sga"; |
| 259 | }; |
| 260 | |
| 261 | db8500_b2r2_mcde_reg: db8500_b2r2_mcde { |
| 262 | regulator-name = "db8500-b2r2-mcde"; |
| 263 | }; |
| 264 | |
| 265 | db8500_esram12_reg: db8500_esram12 { |
| 266 | regulator-name = "db8500-esram12"; |
| 267 | }; |
| 268 | |
| 269 | db8500_esram12_ret_reg: db8500_esram12_ret { |
| 270 | regulator-name = "db8500-esram12-ret"; |
| 271 | }; |
| 272 | |
| 273 | db8500_esram34_reg: db8500_esram34 { |
| 274 | regulator-name = "db8500-esram34"; |
| 275 | }; |
| 276 | |
| 277 | db8500_esram34_ret_reg: db8500_esram34_ret { |
| 278 | regulator-name = "db8500-esram34-ret"; |
| 279 | }; |
| 280 | }; |
| 281 | |
Lee Jones | 6c1d25b | 2013-04-02 14:21:51 +0100 | [diff] [blame] | 282 | thermal@801573c0 { |
| 283 | num-trips = <4>; |
| 284 | |
| 285 | trip0-temp = <70000>; |
| 286 | trip0-type = "active"; |
| 287 | trip0-cdev-num = <1>; |
| 288 | trip0-cdev-name0 = "thermal-cpufreq-0"; |
| 289 | |
| 290 | trip1-temp = <75000>; |
| 291 | trip1-type = "active"; |
| 292 | trip1-cdev-num = <1>; |
| 293 | trip1-cdev-name0 = "thermal-cpufreq-0"; |
| 294 | |
| 295 | trip2-temp = <80000>; |
| 296 | trip2-type = "active"; |
| 297 | trip2-cdev-num = <1>; |
| 298 | trip2-cdev-name0 = "thermal-cpufreq-0"; |
| 299 | |
| 300 | trip3-temp = <85000>; |
| 301 | trip3-type = "critical"; |
| 302 | trip3-cdev-num = <0>; |
| 303 | |
| 304 | status = "okay"; |
| 305 | }; |
| 306 | |
Arnd Bergmann | d52701d3 | 2013-03-12 09:39:01 +0100 | [diff] [blame] | 307 | ab8500 { |
Lee Jones | 924e82d | 2013-01-16 14:28:03 +0000 | [diff] [blame] | 308 | ab8500-gpio { |
| 309 | compatible = "stericsson,ab8500-gpio"; |
| 310 | }; |
| 311 | |
Lee Jones | 809efa5 | 2012-09-25 12:04:51 +0100 | [diff] [blame] | 312 | ab8500-regulators { |
| 313 | ab8500_ldo_aux1_reg: ab8500_ldo_aux1 { |
| 314 | regulator-name = "V-DISPLAY"; |
| 315 | }; |
| 316 | |
| 317 | ab8500_ldo_aux2_reg: ab8500_ldo_aux2 { |
| 318 | regulator-name = "V-eMMC1"; |
| 319 | }; |
| 320 | |
| 321 | ab8500_ldo_aux3_reg: ab8500_ldo_aux3 { |
| 322 | regulator-name = "V-MMC-SD"; |
| 323 | }; |
| 324 | |
Fabio Baltieri | 99b38ee | 2013-04-09 11:16:56 +0200 | [diff] [blame] | 325 | ab8500_ldo_intcore_reg: ab8500_ldo_intcore { |
Lee Jones | 809efa5 | 2012-09-25 12:04:51 +0100 | [diff] [blame] | 326 | regulator-name = "V-INTCORE"; |
| 327 | }; |
| 328 | |
| 329 | ab8500_ldo_tvout_reg: ab8500_ldo_tvout { |
| 330 | regulator-name = "V-TVOUT"; |
| 331 | }; |
| 332 | |
| 333 | ab8500_ldo_usb_reg: ab8500_ldo_usb { |
| 334 | regulator-name = "dummy"; |
| 335 | }; |
| 336 | |
| 337 | ab8500_ldo_audio_reg: ab8500_ldo_audio { |
| 338 | regulator-name = "V-AUD"; |
| 339 | }; |
| 340 | |
| 341 | ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 { |
| 342 | regulator-name = "V-AMIC1"; |
| 343 | }; |
| 344 | |
Fabio Baltieri | 5510ed9 | 2013-05-30 15:27:42 +0200 | [diff] [blame] | 345 | ab8500_ldo_anamic2_reg: ab8500_ldo_anamic2 { |
Lee Jones | 809efa5 | 2012-09-25 12:04:51 +0100 | [diff] [blame] | 346 | regulator-name = "V-AMIC2"; |
| 347 | }; |
| 348 | |
| 349 | ab8500_ldo_dmic_reg: ab8500_ldo_dmic { |
| 350 | regulator-name = "V-DMIC"; |
| 351 | }; |
| 352 | |
| 353 | ab8500_ldo_ana_reg: ab8500_ldo_ana { |
| 354 | regulator-name = "V-CSI/DSI"; |
| 355 | }; |
| 356 | }; |
| 357 | }; |
| 358 | }; |
Arnd Bergmann | 2d33429 | 2012-03-07 15:04:07 +0000 | [diff] [blame] | 359 | }; |
| 360 | }; |