Hanumant Singh | 2278ab3 | 2013-02-21 15:32:17 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2013, The Linux Foundation. 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 | /include/ "msm8226.dtsi" |
Ray Zhang | 764496b | 2013-02-27 09:11:06 +0800 | [diff] [blame] | 15 | /include/ "dsi-panel-nt35590-720p-video.dtsi" |
Sreesudhan Ramakrish Ramkumar | 554072f | 2013-04-04 21:51:33 -0700 | [diff] [blame] | 16 | /include/ "msm8226-camera-sensor-qrd.dtsi" |
Hanumant Singh | 2278ab3 | 2013-02-21 15:32:17 -0800 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "Qualcomm MSM 8226 QRD"; |
Stepan Moskovchenko | a971a75 | 2013-04-03 16:51:37 -0700 | [diff] [blame] | 20 | compatible = "qcom,msm8226-qrd", "qcom,msm8226", "qcom,qrd"; |
aiquny | b0bc09a | 2013-03-02 18:33:33 -0800 | [diff] [blame] | 21 | qcom,msm-id = <145 11 0>; |
Hanumant Singh | 2278ab3 | 2013-02-21 15:32:17 -0800 | [diff] [blame] | 22 | |
| 23 | serial@f991f000 { |
aiquny | 14dd1ae | 2013-03-02 18:37:19 -0800 | [diff] [blame] | 24 | status = "ok"; |
Hanumant Singh | 2278ab3 | 2013-02-21 15:32:17 -0800 | [diff] [blame] | 25 | }; |
Amy Maloche | 41708ba | 2013-03-03 15:19:27 -0800 | [diff] [blame] | 26 | |
Ray Zhang | 764496b | 2013-02-27 09:11:06 +0800 | [diff] [blame] | 27 | qcom,mdss_dsi_nt35590_720p_video { |
| 28 | status = "ok"; |
| 29 | }; |
| 30 | |
Amy Maloche | 41708ba | 2013-03-03 15:19:27 -0800 | [diff] [blame] | 31 | i2c@f9927000 { /* BLSP1 QUP5 */ |
| 32 | synaptics@20 { |
| 33 | compatible = "synaptics,rmi4"; |
| 34 | reg = <0x20>; |
| 35 | interrupt-parent = <&msmgpio>; |
Amy Maloche | fcaf14f | 2013-04-11 18:09:32 -0700 | [diff] [blame] | 36 | interrupts = <17 0x2008>; |
Amy Maloche | 41708ba | 2013-03-03 15:19:27 -0800 | [diff] [blame] | 37 | vdd-supply = <&pm8226_l19>; |
| 38 | vcc_i2c-supply = <&pm8226_lvs1>; |
| 39 | synaptics,reset-gpio = <&msmgpio 16 0x00>; |
| 40 | synaptics,irq-gpio = <&msmgpio 17 0x00>; |
| 41 | synaptics,button-map = <139 102 158>; |
| 42 | synaptics,i2c-pull-up; |
| 43 | synaptics,reg-en; |
| 44 | }; |
| 45 | }; |
Amy Maloche | 24c59dd | 2013-03-05 11:43:55 -0800 | [diff] [blame] | 46 | |
| 47 | gpio_keys { |
| 48 | compatible = "gpio-keys"; |
| 49 | input-name = "gpio-keys"; |
| 50 | |
| 51 | camera_focus { |
| 52 | label = "camera_focus"; |
| 53 | gpios = <&msmgpio 108 0x1>; |
| 54 | linux,input-type = <1>; |
| 55 | linux,code = <0x210>; |
| 56 | gpio-key,wakeup; |
| 57 | debounce-interval = <15>; |
| 58 | }; |
| 59 | |
| 60 | camera_snapshot { |
| 61 | label = "camera_snapshot"; |
| 62 | gpios = <&msmgpio 107 0x1>; |
| 63 | linux,input-type = <1>; |
| 64 | linux,code = <0x2fe>; |
| 65 | gpio-key,wakeup; |
| 66 | debounce-interval = <15>; |
| 67 | }; |
| 68 | |
| 69 | vol_up { |
| 70 | label = "volume_up"; |
| 71 | gpios = <&msmgpio 106 0x1>; |
| 72 | linux,input-type = <1>; |
| 73 | linux,code = <115>; |
| 74 | gpio-key,wakeup; |
| 75 | debounce-interval = <15>; |
| 76 | }; |
| 77 | }; |
aiquny | b1e82f3 | 2013-03-13 15:35:53 -0700 | [diff] [blame] | 78 | |
| 79 | spi@f9923000 { |
| 80 | ethernet-switch@3 { |
| 81 | compatible = "micrel,ks8851"; |
| 82 | reg = <3>; |
| 83 | interrupt-parent = <&msmgpio>; |
| 84 | interrupts = <0 115 0>; |
| 85 | spi-max-frequency = <4800000>; |
| 86 | rst-gpio = <&msmgpio 114 0>; |
| 87 | vdd-io-supply = <&pm8226_lvs1>; |
| 88 | vdd-phy-supply = <&pm8226_lvs1>; |
| 89 | }; |
| 90 | }; |
Bhalchandra Gajare | cb0508d | 2013-03-07 17:33:14 -0800 | [diff] [blame] | 91 | |
| 92 | sound { |
Bhalchandra Gajare | ba5e89a | 2013-03-18 18:29:03 -0700 | [diff] [blame] | 93 | qcom,audio-routing = |
| 94 | "RX_BIAS", "MCLK", |
| 95 | "LDO_H", "MCLK", |
| 96 | "SPK_OUT", "MCLK", |
| 97 | "SPK_OUT", "EXT_VDD_SPKR", |
| 98 | "AMIC1", "MIC BIAS1 External", |
| 99 | "MIC BIAS1 External", "Handset Mic", |
| 100 | "AMIC2", "MIC BIAS2 External", |
| 101 | "MIC BIAS2 External", "Headset Mic", |
| 102 | "AMIC3", "MIC BIAS1 External", |
| 103 | "MIC BIAS1 External", "ANCRight Headset Mic", |
| 104 | "AMIC4", "MIC BIAS2 External", |
| 105 | "MIC BIAS2 External", "ANCLeft Headset Mic"; |
| 106 | |
Bhalchandra Gajare | cb0508d | 2013-03-07 17:33:14 -0800 | [diff] [blame] | 107 | qcom,cdc-mclk-gpios = <&pm8226_gpios 1 0>; |
Bhalchandra Gajare | b512084 | 2013-03-14 17:50:39 -0700 | [diff] [blame] | 108 | qcom,cdc-vdd-spkr-gpios = <&pm8226_gpios 2 0>; |
Bhalchandra Gajare | cb0508d | 2013-03-07 17:33:14 -0800 | [diff] [blame] | 109 | }; |
David Ng | 5b225f1 | 2013-02-28 21:15:08 -0800 | [diff] [blame] | 110 | }; |
Krishna Konda | 0fb7209 | 2013-02-26 16:35:51 -0800 | [diff] [blame] | 111 | |
| 112 | &sdcc1 { |
| 113 | vdd-supply = <&pm8226_l17>; |
| 114 | qcom,vdd-always-on; |
| 115 | qcom,vdd-lpm-sup; |
| 116 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 117 | qcom,vdd-current-level = <800 500000>; |
| 118 | |
| 119 | vdd-io-supply = <&pm8226_l6>; |
| 120 | qcom,vdd-io-always-on; |
| 121 | qcom,vdd-io-voltage-level = <1800000 1800000>; |
| 122 | qcom,vdd-io-current-level = <250 154000>; |
| 123 | |
| 124 | qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 125 | qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
Krishna Konda | 6c5d0f4 | 2013-04-12 16:44:26 -0700 | [diff] [blame] | 126 | qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */ |
Krishna Konda | 0fb7209 | 2013-02-26 16:35:51 -0800 | [diff] [blame] | 127 | qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */ |
| 128 | |
| 129 | qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>; |
| 130 | qcom,sup-voltages = <2950 2950>; |
| 131 | |
| 132 | qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v"; |
| 133 | qcom,nonremovable; |
| 134 | |
Sahitya Tummala | 8d8141c | 2013-03-28 11:08:26 +0530 | [diff] [blame] | 135 | status = "disabled"; |
Krishna Konda | 0fb7209 | 2013-02-26 16:35:51 -0800 | [diff] [blame] | 136 | }; |
| 137 | |
Sahitya Tummala | 9e00136 | 2013-03-28 11:00:55 +0530 | [diff] [blame] | 138 | &sdhc_1 { |
| 139 | vdd-supply = <&pm8226_l17>; |
| 140 | qcom,vdd-always-on; |
| 141 | qcom,vdd-lpm-sup; |
| 142 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 143 | qcom,vdd-current-level = <800 500000>; |
| 144 | |
| 145 | vdd-io-supply = <&pm8226_l6>; |
| 146 | qcom,vdd-io-always-on; |
| 147 | qcom,vdd-io-voltage-level = <1800000 1800000>; |
| 148 | qcom,vdd-io-current-level = <250 154000>; |
| 149 | |
| 150 | qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 151 | qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 152 | qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */ |
| 153 | qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */ |
| 154 | |
| 155 | qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>; |
| 156 | qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v"; |
| 157 | qcom,nonremovable; |
| 158 | |
Sahitya Tummala | 8d8141c | 2013-03-28 11:08:26 +0530 | [diff] [blame] | 159 | status = "ok"; |
Sahitya Tummala | 9e00136 | 2013-03-28 11:00:55 +0530 | [diff] [blame] | 160 | }; |
| 161 | |
Krishna Konda | 0fb7209 | 2013-02-26 16:35:51 -0800 | [diff] [blame] | 162 | &sdcc2 { |
| 163 | vdd-supply = <&pm8226_l18>; |
| 164 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 165 | qcom,vdd-current-level = <9000 800000>; |
| 166 | |
| 167 | vdd-io-supply = <&pm8226_l21>; |
| 168 | qcom,vdd-io-always-on; |
| 169 | qcom,vdd-io-lpm-sup; |
| 170 | qcom,vdd-io-voltage-level = <1800000 2950000>; |
| 171 | qcom,vdd-io-current-level = <6 22000>; |
| 172 | |
| 173 | qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 174 | qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
Sahitya Tummala | 9e00136 | 2013-03-28 11:00:55 +0530 | [diff] [blame] | 175 | qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */ |
Krishna Konda | 0fb7209 | 2013-02-26 16:35:51 -0800 | [diff] [blame] | 176 | qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */ |
| 177 | |
| 178 | qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>; |
| 179 | qcom,sup-voltages = <2950 2950>; |
| 180 | |
| 181 | qcom,xpc; |
| 182 | qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104"; |
| 183 | qcom,current-limit = <600>; |
| 184 | |
| 185 | #address-cells = <0>; |
| 186 | interrupt-parent = <&sdcc2>; |
| 187 | interrupts = <0 1 2>; |
| 188 | #interrupt-cells = <1>; |
| 189 | interrupt-map-mask = <0xffffffff>; |
| 190 | interrupt-map = <0 &intc 0 125 0 |
| 191 | 1 &intc 0 220 0 |
| 192 | 2 &msmgpio 38 0x3>; |
| 193 | interrupt-names = "core_irq", "bam_irq", "status_irq"; |
| 194 | cd-gpios = <&msmgpio 38 0x1>; |
| 195 | |
Sahitya Tummala | 8d8141c | 2013-03-28 11:08:26 +0530 | [diff] [blame] | 196 | status = "disabled"; |
Krishna Konda | 0fb7209 | 2013-02-26 16:35:51 -0800 | [diff] [blame] | 197 | }; |
Amy Maloche | d699b94 | 2013-03-03 15:47:52 -0800 | [diff] [blame] | 198 | |
Sahitya Tummala | 9e00136 | 2013-03-28 11:00:55 +0530 | [diff] [blame] | 199 | &sdhc_2 { |
| 200 | vdd-supply = <&pm8226_l18>; |
| 201 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 202 | qcom,vdd-current-level = <9000 800000>; |
| 203 | |
| 204 | vdd-io-supply = <&pm8226_l21>; |
| 205 | qcom,vdd-io-always-on; |
| 206 | qcom,vdd-io-lpm-sup; |
| 207 | qcom,vdd-io-voltage-level = <1800000 2950000>; |
| 208 | qcom,vdd-io-current-level = <6 22000>; |
| 209 | |
| 210 | qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 211 | qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 212 | qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */ |
| 213 | qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */ |
| 214 | |
| 215 | qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>; |
| 216 | |
| 217 | #address-cells = <0>; |
| 218 | interrupt-parent = <&sdhc_2>; |
| 219 | interrupts = <0 1 2>; |
| 220 | #interrupt-cells = <1>; |
| 221 | interrupt-map-mask = <0xffffffff>; |
| 222 | interrupt-map = <0 &intc 0 125 0 |
| 223 | 1 &intc 0 221 0 |
| 224 | 2 &msmgpio 38 0x3>; |
| 225 | interrupt-names = "hc_irq", "pwr_irq", "status_irq"; |
| 226 | cd-gpios = <&msmgpio 38 0x1>; |
| 227 | |
Sahitya Tummala | 8d8141c | 2013-03-28 11:08:26 +0530 | [diff] [blame] | 228 | status = "ok"; |
Sahitya Tummala | 9e00136 | 2013-03-28 11:00:55 +0530 | [diff] [blame] | 229 | }; |
| 230 | |
Amy Maloche | d699b94 | 2013-03-03 15:47:52 -0800 | [diff] [blame] | 231 | &spmi_bus { |
| 232 | qcom,pm8226@1 { |
Fenglin Wu | 3a70780 | 2013-03-21 14:34:20 -0700 | [diff] [blame] | 233 | qcom,leds@d300 { |
| 234 | status = "okay"; |
| 235 | }; |
| 236 | |
Amy Maloche | d699b94 | 2013-03-03 15:47:52 -0800 | [diff] [blame] | 237 | qcom,leds@d800 { |
| 238 | status = "okay"; |
| 239 | qcom,wled_0 { |
| 240 | label = "wled"; |
| 241 | linux,name = "wled:backlight"; |
| 242 | linux,default-trigger = "bkl-trigger"; |
| 243 | qcom,cs-out-en; |
Amy Maloche | bd68767 | 2013-03-18 11:23:45 -0700 | [diff] [blame] | 244 | qcom,op-fdbck = <1>; |
Amy Maloche | d699b94 | 2013-03-03 15:47:52 -0800 | [diff] [blame] | 245 | qcom,default-state = "on"; |
| 246 | qcom,max-current = <25>; |
| 247 | qcom,ctrl-delay-us = <0>; |
| 248 | qcom,boost-curr-lim = <3>; |
| 249 | qcom,cp-sel = <0>; |
| 250 | qcom,switch-freq = <2>; |
Amy Maloche | f0789c5 | 2013-03-26 17:37:32 -0700 | [diff] [blame] | 251 | qcom,ovp-val = <0>; |
Amy Maloche | d699b94 | 2013-03-03 15:47:52 -0800 | [diff] [blame] | 252 | qcom,num-strings = <1>; |
| 253 | qcom,id = <0>; |
| 254 | }; |
| 255 | }; |
Fenglin Wu | 7f38bae | 2013-03-12 21:22:35 -0700 | [diff] [blame] | 256 | |
| 257 | qcom,vibrator@c000 { |
| 258 | status = "okay"; |
| 259 | qcom,vib-timeout-ms = <15000>; |
| 260 | qcom,vib-vtg-level-mV = <3100>; |
| 261 | }; |
| 262 | |
Amy Maloche | d699b94 | 2013-03-03 15:47:52 -0800 | [diff] [blame] | 263 | }; |
| 264 | }; |
David Keitel | 7f3f825 | 2013-02-27 15:24:44 -0800 | [diff] [blame] | 265 | |
| 266 | &pm8226_gpios { |
| 267 | gpio@c000 { /* GPIO 1 */ |
Bhalchandra Gajare | cb0508d | 2013-03-07 17:33:14 -0800 | [diff] [blame] | 268 | /* XO_PMIC_CDC_MCLK enable for tapan codec */ |
| 269 | qcom,mode = <1>; /* Digital output */ |
| 270 | qcom,output-type = <0>; /* CMOS logic */ |
| 271 | qcom,pull = <5>; /* QPNP_PIN_PULL_NO*/ |
David Keitel | 75eabfb | 2013-04-15 19:28:56 -0700 | [diff] [blame] | 272 | qcom,vin-sel = <3>; /* QPNP_PIN_VIN3 */ |
Bhalchandra Gajare | cb0508d | 2013-03-07 17:33:14 -0800 | [diff] [blame] | 273 | qcom,out-strength = <3>;/* QPNP_PIN_OUT_STRENGTH_HIGH */ |
| 274 | qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */ |
| 275 | qcom,master-en = <1>; /* Enable GPIO */ |
David Keitel | 7f3f825 | 2013-02-27 15:24:44 -0800 | [diff] [blame] | 276 | }; |
| 277 | |
| 278 | gpio@c100 { /* GPIO 2 */ |
Bhalchandra Gajare | b512084 | 2013-03-14 17:50:39 -0700 | [diff] [blame] | 279 | qcom,mode = <1>; |
| 280 | qcom,output-type = <0>; |
| 281 | qcom,pull = <5>; |
David Keitel | 75eabfb | 2013-04-15 19:28:56 -0700 | [diff] [blame] | 282 | qcom,vin-sel = <3>; |
Bhalchandra Gajare | b512084 | 2013-03-14 17:50:39 -0700 | [diff] [blame] | 283 | qcom,out-strength = <3>; |
| 284 | qcom,src-sel = <2>; |
| 285 | qcom,master-en = <1>; |
David Keitel | 7f3f825 | 2013-02-27 15:24:44 -0800 | [diff] [blame] | 286 | }; |
| 287 | |
| 288 | gpio@c200 { /* GPIO 3 */ |
| 289 | }; |
| 290 | |
| 291 | gpio@c300 { /* GPIO 4 */ |
| 292 | }; |
| 293 | |
| 294 | gpio@c400 { /* GPIO 5 */ |
| 295 | }; |
| 296 | |
| 297 | gpio@c500 { /* GPIO 6 */ |
| 298 | }; |
| 299 | |
| 300 | gpio@c600 { /* GPIO 7 */ |
| 301 | }; |
| 302 | |
| 303 | gpio@c700 { /* GPIO 8 */ |
| 304 | }; |
| 305 | }; |
| 306 | |
| 307 | &pm8226_mpps { |
| 308 | mpp@a000 { /* MPP 1 */ |
| 309 | }; |
| 310 | |
| 311 | mpp@a100 { /* MPP 2 */ |
| 312 | }; |
| 313 | |
| 314 | mpp@a200 { /* MPP 3 */ |
| 315 | }; |
| 316 | |
| 317 | mpp@a300 { /* MPP 4 */ |
| 318 | }; |
| 319 | |
| 320 | mpp@a400 { /* MPP 5 */ |
| 321 | }; |
| 322 | |
| 323 | mpp@a500 { /* MPP 6 */ |
| 324 | }; |
| 325 | |
| 326 | mpp@a600 { /* MPP 7 */ |
| 327 | }; |
| 328 | |
| 329 | mpp@a700 { /* MPP 8 */ |
| 330 | }; |
| 331 | }; |