Stepan Moskovchenko | 6a0e96b | 2012-08-02 18:10:38 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2012, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | /dts-v1/; |
| 14 | |
| 15 | /include/ "msm8974.dtsi" |
Chandan Uddaraju | 916bc4f | 2012-07-25 17:17:11 -0700 | [diff] [blame] | 16 | /include/ "dsi-panel-toshiba-720p-video.dtsi" |
Stepan Moskovchenko | 6a0e96b | 2012-08-02 18:10:38 -0700 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "Qualcomm MSM 8974 CDP"; |
| 20 | compatible = "qcom,msm8974-cdp", "qcom,msm8974"; |
Stepan Moskovchenko | 89f11eb | 2012-08-02 18:11:42 -0700 | [diff] [blame] | 21 | qcom,msm-id = <126 1 0>; |
Stepan Moskovchenko | 5269b60 | 2012-08-08 17:57:09 -0700 | [diff] [blame] | 22 | |
| 23 | serial@f991e000 { |
| 24 | status = "ok"; |
| 25 | }; |
Chandan Uddaraju | 916bc4f | 2012-07-25 17:17:11 -0700 | [diff] [blame] | 26 | |
| 27 | qcom,mdss_dsi@fd922800 { |
| 28 | qcom,mdss_dsi_toshiba_720p_video { |
| 29 | status = "ok"; |
| 30 | }; |
| 31 | }; |
Amy Maloche | d3999b6 | 2012-08-28 09:35:49 -0700 | [diff] [blame] | 32 | |
| 33 | i2c@f9924000 { |
| 34 | atmel_mxt_ts@4a { |
| 35 | compatible = "atmel,mxt-ts"; |
| 36 | reg = <0x4a>; |
| 37 | interrupt-parent = <&msmgpio>; |
| 38 | interrupts = <61 0x2>; |
| 39 | vdd_ana-supply = <&pm8941_l18>; |
| 40 | vcc_i2c-supply = <&pm8941_lvs1>; |
| 41 | atmel,reset-gpio = <&msmgpio 60 0x00>; |
| 42 | atmel,irq-gpio = <&msmgpio 61 0x00>; |
| 43 | atmel,panel-coords = <0 0 760 1424>; |
| 44 | atmel,display-coords = <0 0 720 1280>; |
| 45 | atmel,i2c-pull-up = <1>; |
| 46 | atmel,cfg_1 { |
| 47 | atmel,family-id = <0x82>; |
| 48 | atmel,variant-id = <0x19>; |
| 49 | atmel,version = <0x10>; |
| 50 | atmel,build = <0xaa>; |
| 51 | atmel,config = [ |
| 52 | /* Object 6, Instance = 0 */ |
| 53 | 00 00 00 00 00 00 |
| 54 | /* Object 38, Instance = 0 */ |
| 55 | 15 00 02 10 08 0C 00 00 |
| 56 | /* Object 7, Instance = 0 */ |
| 57 | FF FF 32 03 |
| 58 | /* Object 8, Instance = 0 */ |
| 59 | 0F 00 0A 0A 00 00 0A 00 00 00 |
| 60 | /* Object 9, Instance = 0 */ |
| 61 | 83 00 00 18 0E 00 70 32 02 01 |
| 62 | 00 03 01 01 05 0A 0A 0A 90 05 |
| 63 | F8 02 00 00 0F 0F 00 00 48 2D |
| 64 | 07 0C 00 00 00 00 |
| 65 | /* Object 15, Instance = 0 */ |
| 66 | 00 00 00 00 00 00 00 00 00 00 |
| 67 | 00 |
| 68 | /* Object 18, Instance = 0 */ |
| 69 | 00 00 |
| 70 | /* Object 19, Instance = 0 */ |
| 71 | 00 00 00 00 00 00 |
| 72 | /* Object 23, Instance = 0 */ |
| 73 | 00 00 00 00 00 00 00 00 00 00 |
| 74 | 00 00 00 00 00 |
| 75 | /* Object 25, Instance = 0 */ |
| 76 | 00 00 00 00 00 00 00 00 00 00 |
| 77 | 00 00 00 00 00 |
| 78 | /* Object 40, Instance = 0 */ |
| 79 | 00 00 00 00 00 |
| 80 | /* Object 42, Instance = 0 */ |
| 81 | 00 00 00 00 00 00 00 00 00 00 |
| 82 | /* Object 46, Instance = 0 */ |
| 83 | 00 00 10 10 00 00 03 00 00 01 |
| 84 | /* Object 47, Instance = 0 */ |
| 85 | 08 0A 28 0A 02 0A 00 8C 00 20 |
| 86 | 00 00 00 |
| 87 | /* Object 55, Instance = 0 */ |
| 88 | 00 00 00 00 00 00 |
| 89 | /* Object 56, Instance = 0 */ |
| 90 | 03 00 01 18 05 05 05 05 05 05 |
| 91 | 05 05 05 05 05 05 05 05 05 05 |
| 92 | 05 05 05 05 05 05 05 05 00 00 |
| 93 | 00 00 00 00 00 00 00 00 00 00 |
| 94 | 00 00 |
| 95 | /* Object 57, Instance = 0 */ |
| 96 | 00 00 00 |
| 97 | /* Object 61, Instance = 0 */ |
| 98 | 00 00 00 00 00 |
| 99 | /* Object 61, Instance = 1 */ |
| 100 | 00 00 00 00 00 |
| 101 | /* Object 62, Instance = 0 */ |
| 102 | 7F 03 00 16 00 00 00 00 00 00 |
| 103 | 04 08 10 18 05 00 0A 05 05 50 |
| 104 | 14 19 34 1A 64 00 00 04 40 00 |
| 105 | 00 00 00 00 30 32 02 00 01 00 |
| 106 | 05 00 00 00 00 00 00 00 00 00 |
| 107 | 00 00 0C 00 |
| 108 | ]; |
| 109 | }; |
| 110 | }; |
| 111 | }; |
| 112 | |
| 113 | gpio_keys { |
| 114 | compatible = "gpio-keys"; |
Amy Maloche | 0452b9e | 2012-10-03 16:04:54 -0700 | [diff] [blame] | 115 | input-name = "gpio-keys"; |
Amy Maloche | d3999b6 | 2012-08-28 09:35:49 -0700 | [diff] [blame] | 116 | |
| 117 | camera_snapshot { |
| 118 | label = "camera_snapshot"; |
| 119 | gpios = <&pm8941_gpios 3 0x1>; |
| 120 | linux,input-type = <1>; |
| 121 | linux,code = <0x2fe>; |
| 122 | gpio-key,wakeup; |
| 123 | debounce-interval = <15>; |
| 124 | }; |
| 125 | |
| 126 | camera_focus { |
| 127 | label = "camera_focus"; |
| 128 | gpios = <&pm8941_gpios 4 0x1>; |
| 129 | linux,input-type = <1>; |
| 130 | linux,code = <0x210>; |
| 131 | gpio-key,wakeup; |
| 132 | debounce-interval = <15>; |
| 133 | }; |
| 134 | |
| 135 | vol_up { |
| 136 | label = "volume_up"; |
| 137 | gpios = <&pm8941_gpios 5 0x1>; |
| 138 | linux,input-type = <1>; |
| 139 | linux,code = <115>; |
| 140 | gpio-key,wakeup; |
| 141 | debounce-interval = <15>; |
| 142 | }; |
| 143 | }; |
Subbaraman Narayanamurthy | 3f93ab1 | 2012-08-17 19:39:47 -0700 | [diff] [blame] | 144 | |
| 145 | spi@f9923000 { |
| 146 | ethernet-switch@2 { |
| 147 | compatible = "micrel,ks8851"; |
| 148 | reg = <2>; |
| 149 | interrupt-parent = <&msmgpio>; |
| 150 | interrupts = <94 0>; |
| 151 | spi-max-frequency = <4800000>; |
| 152 | rst-gpio = <&pm8941_mpps 6 0>; |
| 153 | vdd-io-supply = <&spi_eth_vreg>; |
| 154 | vdd-phy-supply = <&spi_eth_vreg>; |
| 155 | }; |
| 156 | }; |
Stepan Moskovchenko | 6a0e96b | 2012-08-02 18:10:38 -0700 | [diff] [blame] | 157 | }; |
Krishna Konda | b6da693 | 2012-08-19 12:04:05 -0700 | [diff] [blame] | 158 | |
| 159 | &sdcc2 { |
| 160 | #address-cells = <0>; |
| 161 | interrupt-parent = <&sdcc2>; |
Krishna Konda | 99783e62 | 2012-08-29 10:40:15 -0700 | [diff] [blame] | 162 | interrupts = <0 1 2>; |
Krishna Konda | b6da693 | 2012-08-19 12:04:05 -0700 | [diff] [blame] | 163 | #interrupt-cells = <1>; |
| 164 | interrupt-map-mask = <0xffffffff>; |
| 165 | interrupt-map = <0 &intc 0 125 0 |
Krishna Konda | 99783e62 | 2012-08-29 10:40:15 -0700 | [diff] [blame] | 166 | 1 &intc 0 220 0 |
| 167 | 2 &msmgpio 62 0x3>; |
| 168 | interrupt-names = "core_irq", "bam_irq", "status_irq"; |
Krishna Konda | b6da693 | 2012-08-19 12:04:05 -0700 | [diff] [blame] | 169 | cd-gpios = <&msmgpio 62 0x1>; |
Krishna Konda | f9448f5 | 2012-08-22 15:14:15 -0700 | [diff] [blame] | 170 | wp-gpios = <&pm8941_gpios 29 0x1>; |
Krishna Konda | b6da693 | 2012-08-19 12:04:05 -0700 | [diff] [blame] | 171 | }; |
Michael Bohan | d5ea724 | 2012-10-01 18:01:51 -0700 | [diff] [blame] | 172 | |
| 173 | &pm8941_gpios { |
| 174 | gpio@c000 { /* GPIO 1 */ |
| 175 | }; |
| 176 | |
| 177 | gpio@c100 { /* GPIO 2 */ |
| 178 | }; |
| 179 | |
| 180 | gpio@c200 { /* GPIO 3 */ |
| 181 | qcom,mode = <0>; |
| 182 | qcom,pull = <0>; |
| 183 | qcom,vin-sel = <2>; |
| 184 | qcom,select = <0>; |
| 185 | }; |
| 186 | |
| 187 | gpio@c300 { /* GPIO 4 */ |
| 188 | qcom,mode = <0>; |
| 189 | qcom,pull = <0>; |
| 190 | qcom,vin-sel = <2>; |
| 191 | qcom,select = <0>; |
| 192 | }; |
| 193 | |
| 194 | gpio@c400 { /* GPIO 5 */ |
| 195 | qcom,mode = <0>; |
| 196 | qcom,pull = <0>; |
| 197 | qcom,vin-sel = <2>; |
| 198 | qcom,select = <0>; |
| 199 | }; |
| 200 | |
| 201 | gpio@c500 { /* GPIO 6 */ |
| 202 | }; |
| 203 | |
| 204 | gpio@c600 { /* GPIO 7 */ |
| 205 | }; |
| 206 | |
| 207 | gpio@c700 { /* GPIO 8 */ |
| 208 | }; |
| 209 | |
| 210 | gpio@c800 { /* GPIO 9 */ |
| 211 | }; |
| 212 | |
| 213 | gpio@c900 { /* GPIO 10 */ |
| 214 | }; |
| 215 | |
| 216 | gpio@ca00 { /* GPIO 11 */ |
| 217 | }; |
| 218 | |
| 219 | gpio@cb00 { /* GPIO 12 */ |
| 220 | }; |
| 221 | |
| 222 | gpio@cc00 { /* GPIO 13 */ |
| 223 | }; |
| 224 | |
| 225 | gpio@cd00 { /* GPIO 14 */ |
| 226 | }; |
| 227 | |
| 228 | gpio@ce00 { /* GPIO 15 */ |
| 229 | qcom,mode = <1>; |
| 230 | qcom,output-type = <0>; |
| 231 | qcom,pull = <5>; |
| 232 | qcom,vin-sel = <2>; |
| 233 | qcom,out-strength = <3>; |
| 234 | qcom,src-select = <2>; |
| 235 | qcom,master-en = <1>; |
| 236 | }; |
| 237 | |
| 238 | gpio@cf00 { /* GPIO 16 */ |
| 239 | }; |
| 240 | |
| 241 | gpio@d000 { /* GPIO 17 */ |
| 242 | }; |
| 243 | |
| 244 | gpio@d100 { /* GPIO 18 */ |
| 245 | }; |
| 246 | |
| 247 | gpio@d200 { /* GPIO 19 */ |
| 248 | qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */ |
| 249 | qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */ |
| 250 | qcom,pull = <5>; /* QPNP_PIN_PULL_NO */ |
| 251 | qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */ |
| 252 | qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */ |
| 253 | qcom,src-select = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */ |
| 254 | qcom,master-en = <1>; |
| 255 | }; |
| 256 | |
| 257 | gpio@d300 { /* GPIO 20 */ |
| 258 | }; |
| 259 | |
| 260 | gpio@d400 { /* GPIO 21 */ |
| 261 | }; |
| 262 | |
| 263 | gpio@d500 { /* GPIO 22 */ |
| 264 | }; |
| 265 | |
| 266 | gpio@d600 { /* GPIO 23 */ |
| 267 | }; |
| 268 | |
| 269 | gpio@d700 { /* GPIO 24 */ |
| 270 | }; |
| 271 | |
| 272 | gpio@d800 { /* GPIO 25 */ |
| 273 | }; |
| 274 | |
| 275 | gpio@d900 { /* GPIO 26 */ |
| 276 | }; |
| 277 | |
| 278 | gpio@da00 { /* GPIO 27 */ |
| 279 | }; |
| 280 | |
| 281 | gpio@db00 { /* GPIO 28 */ |
| 282 | }; |
| 283 | |
| 284 | gpio@dc00 { /* GPIO 29 */ |
| 285 | qcom,pull = <0>; /* set to default pull */ |
| 286 | qcom,master-en = <1>; |
| 287 | qcom,vin-sel = <2>; /* select 1.8 V source */ |
| 288 | }; |
| 289 | |
| 290 | gpio@dd00 { /* GPIO 30 */ |
| 291 | }; |
| 292 | |
| 293 | gpio@de00 { /* GPIO 31 */ |
| 294 | }; |
| 295 | |
| 296 | gpio@df00 { /* GPIO 32 */ |
| 297 | }; |
| 298 | |
| 299 | gpio@e000 { /* GPIO 33 */ |
| 300 | }; |
| 301 | |
| 302 | gpio@e100 { /* GPIO 34 */ |
| 303 | }; |
| 304 | |
| 305 | gpio@e200 { /* GPIO 35 */ |
| 306 | }; |
| 307 | |
| 308 | gpio@e300 { /* GPIO 36 */ |
| 309 | }; |
| 310 | }; |
| 311 | |
| 312 | &pm8941_mpps { |
| 313 | |
| 314 | mpp@a000 { /* MPP 1 */ |
| 315 | }; |
| 316 | |
| 317 | mpp@a100 { /* MPP 2 */ |
| 318 | }; |
| 319 | |
| 320 | mpp@a200 { /* MPP 3 */ |
| 321 | }; |
| 322 | |
| 323 | mpp@a300 { /* MPP 4 */ |
| 324 | }; |
| 325 | |
| 326 | mpp@a400 { /* MPP 5 */ |
| 327 | /* SPI_ETH config */ |
| 328 | qcom,mode = <1>; /* DIG_OUT */ |
| 329 | qcom,output-type = <0>; /* CMOS */ |
| 330 | qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */ |
| 331 | qcom,src-select = <0>; /* CONSTANT */ |
| 332 | qcom,master-en = <1>; /* ENABLE MPP */ |
| 333 | }; |
| 334 | |
| 335 | mpp@a500 { /* MPP 6 */ |
| 336 | /* SPI_ETH_RST config */ |
| 337 | qcom,mode = <1>; /* DIG_OUT */ |
| 338 | qcom,output-type = <0>; /* CMOS */ |
| 339 | qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */ |
| 340 | qcom,src-select = <0>; /* CONSTANT */ |
| 341 | qcom,master-en = <1>; /* ENABLE MPP */ |
| 342 | }; |
| 343 | |
| 344 | mpp@a600 { /* MPP 7 */ |
| 345 | }; |
| 346 | |
| 347 | mpp@a700 { /* MPP 8 */ |
| 348 | }; |
| 349 | }; |
| 350 | |
| 351 | &pm8841_mpps { |
| 352 | |
| 353 | mpp@a000 { /* MPP 1 */ |
| 354 | }; |
| 355 | |
| 356 | mpp@a100 { /* MPP 2 */ |
| 357 | }; |
| 358 | |
| 359 | mpp@a200 { /* MPP 3 */ |
| 360 | }; |
| 361 | |
| 362 | mpp@a300 { /* MPP 4 */ |
| 363 | }; |
| 364 | }; |