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/; |
Linus Walleij | 2ce05a1 | 2013-08-07 15:37:52 +0200 | [diff] [blame] | 13 | #include "ste-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"; |
Lee Jones | b099576 | 2013-06-18 09:51:58 +0100 | [diff] [blame] | 25 | regulator-name = "en-3v3-fixed-supply"; |
| 26 | regulator-min-microvolt = <3300000>; |
| 27 | regulator-max-microvolt = <3300000>; |
| 28 | /* AB8500 GPIOs start from 1 - offset 25 is GPIO26. */ |
| 29 | gpio = <&ab8500_gpio 25 0x4>; |
| 30 | startup-delay-us = <5000>; |
| 31 | enable-active-high; |
Lee Jones | bc36748 | 2012-05-03 11:23:47 +0100 | [diff] [blame] | 32 | }; |
| 33 | |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 34 | gpio_keys { |
| 35 | compatible = "gpio-keys"; |
| 36 | #address-cells = <1>; |
| 37 | #size-cells = <0>; |
| 38 | |
| 39 | button@1 { |
| 40 | debounce_interval = <50>; |
| 41 | wakeup = <1>; |
| 42 | linux,code = <2>; |
| 43 | label = "userpb"; |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 44 | gpios = <&gpio1 0 0x4>; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 45 | }; |
| 46 | button@2 { |
| 47 | debounce_interval = <50>; |
| 48 | wakeup = <1>; |
| 49 | linux,code = <3>; |
Lee Jones | 3f3ed40 | 2012-04-13 15:05:07 +0100 | [diff] [blame] | 50 | label = "extkb1"; |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 51 | gpios = <&gpio4 23 0x4>; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 52 | }; |
| 53 | button@3 { |
| 54 | debounce_interval = <50>; |
| 55 | wakeup = <1>; |
| 56 | linux,code = <4>; |
Lee Jones | 3f3ed40 | 2012-04-13 15:05:07 +0100 | [diff] [blame] | 57 | label = "extkb2"; |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 58 | gpios = <&gpio4 24 0x4>; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 59 | }; |
| 60 | button@4 { |
| 61 | debounce_interval = <50>; |
| 62 | wakeup = <1>; |
| 63 | linux,code = <5>; |
Lee Jones | 3f3ed40 | 2012-04-13 15:05:07 +0100 | [diff] [blame] | 64 | label = "extkb3"; |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 65 | gpios = <&gpio5 1 0x4>; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 66 | }; |
| 67 | button@5 { |
| 68 | debounce_interval = <50>; |
| 69 | wakeup = <1>; |
| 70 | linux,code = <6>; |
Lee Jones | 3f3ed40 | 2012-04-13 15:05:07 +0100 | [diff] [blame] | 71 | label = "extkb4"; |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 72 | gpios = <&gpio5 2 0x4>; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 73 | }; |
| 74 | }; |
| 75 | |
| 76 | leds { |
| 77 | compatible = "gpio-leds"; |
| 78 | used-led { |
| 79 | label = "user_led"; |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 80 | gpios = <&gpio4 14 0x4>; |
Lee Jones | 7fd975f | 2012-06-15 09:30:30 +0100 | [diff] [blame] | 81 | default-state = "on"; |
Lee Jones | fd53d04 | 2012-05-02 09:48:38 +0100 | [diff] [blame] | 82 | linux,default-trigger = "heartbeat"; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 83 | }; |
| 84 | }; |
| 85 | |
Gabriel Fernandez | b1ba143 | 2013-03-01 14:38:07 +0100 | [diff] [blame] | 86 | soc { |
Lee Jones | e648806 | 2012-07-31 13:31:50 +0100 | [diff] [blame] | 87 | |
| 88 | sound { |
| 89 | compatible = "stericsson,snd-soc-mop500"; |
| 90 | |
| 91 | stericsson,cpu-dai = <&msp1 &msp3>; |
| 92 | stericsson,audio-codec = <&codec>; |
| 93 | }; |
| 94 | |
Lee Jones | fe16452 | 2012-07-31 12:37:16 +0100 | [diff] [blame] | 95 | msp1: msp@80124000 { |
| 96 | status = "okay"; |
| 97 | }; |
| 98 | |
| 99 | msp3: msp@80125000 { |
| 100 | status = "okay"; |
| 101 | }; |
| 102 | |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 103 | external-bus@50000000 { |
Lee Jones | bf76e06 | 2012-04-24 10:53:18 +0100 | [diff] [blame] | 104 | status = "okay"; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 105 | |
Lee Jones | bf76e06 | 2012-04-24 10:53:18 +0100 | [diff] [blame] | 106 | ethernet@0 { |
| 107 | compatible = "smsc,lan9115"; |
| 108 | reg = <0 0x10000>; |
Linus Walleij | 90c4025 | 2013-05-29 19:15:39 +0200 | [diff] [blame] | 109 | interrupts = <12 IRQ_TYPE_EDGE_RISING>; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 110 | interrupt-parent = <&gpio4>; |
Lee Jones | bc36748 | 2012-05-03 11:23:47 +0100 | [diff] [blame] | 111 | vdd33a-supply = <&en_3v3_reg>; |
| 112 | vddvario-supply = <&db8500_vape_reg>; |
| 113 | |
Lee Jones | bf76e06 | 2012-04-24 10:53:18 +0100 | [diff] [blame] | 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 | 7fb2afc | 2013-06-03 13:06:13 +0100 | [diff] [blame] | 119 | |
| 120 | clocks = <&prcc_pclk 3 0>; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 121 | }; |
| 122 | }; |
| 123 | |
Lee Jones | 383307c | 2013-04-02 14:21:54 +0100 | [diff] [blame] | 124 | vmmci: regulator-gpio { |
| 125 | gpios = <&gpio6 25 0x4>; |
| 126 | enable-gpio = <&gpio7 4 0x4>; |
| 127 | |
| 128 | status = "okay"; |
| 129 | }; |
| 130 | |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 131 | // External Micro SD slot |
Lee Jones | 81bf8c2 | 2012-09-26 12:55:56 +0100 | [diff] [blame] | 132 | sdi0_per1@80126000 { |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 133 | arm,primecell-periphid = <0x10480180>; |
Linus Walleij | 90ccde4 | 2013-05-27 13:15:05 +0200 | [diff] [blame] | 134 | max-frequency = <100000000>; |
Lee Jones | 92a0f48 | 2012-09-26 11:12:48 +0100 | [diff] [blame] | 135 | bus-width = <4>; |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 136 | mmc-cap-mmc-highspeed; |
Lee Jones | 4a85c7f | 2012-05-29 14:29:53 +0800 | [diff] [blame] | 137 | vmmc-supply = <&ab8500_ldo_aux3_reg>; |
Lee Jones | 383307c | 2013-04-02 14:21:54 +0100 | [diff] [blame] | 138 | vqmmc-supply = <&vmmci>; |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 139 | |
Lee Jones | 93b5698 | 2012-05-29 14:17:36 +0800 | [diff] [blame] | 140 | cd-gpios = <&gpio6 26 0x4>; // 218 |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 141 | cd-inverted; |
| 142 | |
| 143 | status = "okay"; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 144 | }; |
| 145 | |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 146 | // On-board eMMC |
Lee Jones | 81bf8c2 | 2012-09-26 12:55:56 +0100 | [diff] [blame] | 147 | sdi4_per2@80114000 { |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 148 | arm,primecell-periphid = <0x10480180>; |
Linus Walleij | 90ccde4 | 2013-05-27 13:15:05 +0200 | [diff] [blame] | 149 | max-frequency = <100000000>; |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 150 | bus-width = <8>; |
| 151 | mmc-cap-mmc-highspeed; |
Lee Jones | 4a85c7f | 2012-05-29 14:29:53 +0800 | [diff] [blame] | 152 | vmmc-supply = <&ab8500_ldo_aux2_reg>; |
Lee Jones | 5e1ac7d | 2012-05-29 14:40:04 +0800 | [diff] [blame] | 153 | |
| 154 | status = "okay"; |
Lee Jones | 7e0ce27 | 2012-03-15 16:46:17 +0000 | [diff] [blame] | 155 | }; |
| 156 | |
Lee Jones | 4905af0 | 2012-03-07 17:35:04 +0000 | [diff] [blame] | 157 | uart@80120000 { |
| 158 | status = "okay"; |
| 159 | }; |
| 160 | |
| 161 | uart@80121000 { |
| 162 | status = "okay"; |
| 163 | }; |
| 164 | |
| 165 | uart@80007000 { |
| 166 | status = "okay"; |
| 167 | }; |
| 168 | |
hongbo.zhang | dc1956b | 2012-11-15 18:56:43 +0800 | [diff] [blame] | 169 | cpufreq-cooling { |
| 170 | status = "okay"; |
| 171 | }; |
Linus Torvalds | db5b0ae | 2012-12-13 10:39:26 -0800 | [diff] [blame] | 172 | |
Lee Jones | 809efa5 | 2012-09-25 12:04:51 +0100 | [diff] [blame] | 173 | prcmu@80157000 { |
Lee Jones | 6cb7ea9 | 2013-09-18 16:03:07 +0100 | [diff] [blame] | 174 | cpufreq { |
| 175 | status = "okay"; |
| 176 | }; |
| 177 | |
Lee Jones | 6c1d25b | 2013-04-02 14:21:51 +0100 | [diff] [blame] | 178 | thermal@801573c0 { |
| 179 | num-trips = <4>; |
| 180 | |
| 181 | trip0-temp = <70000>; |
| 182 | trip0-type = "active"; |
| 183 | trip0-cdev-num = <1>; |
| 184 | trip0-cdev-name0 = "thermal-cpufreq-0"; |
| 185 | |
| 186 | trip1-temp = <75000>; |
| 187 | trip1-type = "active"; |
| 188 | trip1-cdev-num = <1>; |
| 189 | trip1-cdev-name0 = "thermal-cpufreq-0"; |
| 190 | |
| 191 | trip2-temp = <80000>; |
| 192 | trip2-type = "active"; |
| 193 | trip2-cdev-num = <1>; |
| 194 | trip2-cdev-name0 = "thermal-cpufreq-0"; |
| 195 | |
| 196 | trip3-temp = <85000>; |
| 197 | trip3-type = "critical"; |
| 198 | trip3-cdev-num = <0>; |
| 199 | |
| 200 | status = "okay"; |
| 201 | }; |
| 202 | |
Arnd Bergmann | d52701d3 | 2013-03-12 09:39:01 +0100 | [diff] [blame] | 203 | ab8500 { |
Lee Jones | 924e82d | 2013-01-16 14:28:03 +0000 | [diff] [blame] | 204 | ab8500-gpio { |
| 205 | compatible = "stericsson,ab8500-gpio"; |
| 206 | }; |
| 207 | |
Lee Jones | b0c8fad | 2013-06-07 17:11:21 +0100 | [diff] [blame] | 208 | ext_regulators: ab8500-ext-regulators { |
| 209 | ab8500_ext1_reg: ab8500_ext1 { |
| 210 | regulator-name = "ab8500-ext-supply1"; |
| 211 | }; |
| 212 | |
| 213 | ab8500_ext2_reg_reg: ab8500_ext2 { |
| 214 | regulator-name = "ab8500-ext-supply2"; |
| 215 | }; |
| 216 | |
| 217 | ab8500_ext3_reg_reg: ab8500_ext3 { |
| 218 | regulator-name = "ab8500-ext-supply3"; |
| 219 | }; |
| 220 | }; |
| 221 | |
Lee Jones | 809efa5 | 2012-09-25 12:04:51 +0100 | [diff] [blame] | 222 | ab8500-regulators { |
| 223 | ab8500_ldo_aux1_reg: ab8500_ldo_aux1 { |
| 224 | regulator-name = "V-DISPLAY"; |
| 225 | }; |
| 226 | |
| 227 | ab8500_ldo_aux2_reg: ab8500_ldo_aux2 { |
| 228 | regulator-name = "V-eMMC1"; |
| 229 | }; |
| 230 | |
| 231 | ab8500_ldo_aux3_reg: ab8500_ldo_aux3 { |
| 232 | regulator-name = "V-MMC-SD"; |
| 233 | }; |
| 234 | |
Fabio Baltieri | 99b38ee | 2013-04-09 11:16:56 +0200 | [diff] [blame] | 235 | ab8500_ldo_intcore_reg: ab8500_ldo_intcore { |
Lee Jones | 809efa5 | 2012-09-25 12:04:51 +0100 | [diff] [blame] | 236 | regulator-name = "V-INTCORE"; |
| 237 | }; |
| 238 | |
| 239 | ab8500_ldo_tvout_reg: ab8500_ldo_tvout { |
| 240 | regulator-name = "V-TVOUT"; |
| 241 | }; |
| 242 | |
| 243 | ab8500_ldo_usb_reg: ab8500_ldo_usb { |
| 244 | regulator-name = "dummy"; |
| 245 | }; |
| 246 | |
| 247 | ab8500_ldo_audio_reg: ab8500_ldo_audio { |
| 248 | regulator-name = "V-AUD"; |
| 249 | }; |
| 250 | |
| 251 | ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 { |
| 252 | regulator-name = "V-AMIC1"; |
| 253 | }; |
| 254 | |
Fabio Baltieri | 5510ed9 | 2013-05-30 15:27:42 +0200 | [diff] [blame] | 255 | ab8500_ldo_anamic2_reg: ab8500_ldo_anamic2 { |
Lee Jones | 809efa5 | 2012-09-25 12:04:51 +0100 | [diff] [blame] | 256 | regulator-name = "V-AMIC2"; |
| 257 | }; |
| 258 | |
| 259 | ab8500_ldo_dmic_reg: ab8500_ldo_dmic { |
| 260 | regulator-name = "V-DMIC"; |
| 261 | }; |
| 262 | |
| 263 | ab8500_ldo_ana_reg: ab8500_ldo_ana { |
| 264 | regulator-name = "V-CSI/DSI"; |
| 265 | }; |
| 266 | }; |
| 267 | }; |
| 268 | }; |
Arnd Bergmann | 2d33429 | 2012-03-07 15:04:07 +0000 | [diff] [blame] | 269 | }; |
| 270 | }; |