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-cdp.dtsi" |
Hanumant Singh | 2278ab3 | 2013-02-21 15:32:17 -0800 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "Qualcomm MSM 8226 CDP"; |
Stepan Moskovchenko | a971a75 | 2013-04-03 16:51:37 -0700 | [diff] [blame] | 20 | compatible = "qcom,msm8226-cdp", "qcom,msm8226", "qcom,cdp"; |
Hanumant Singh | 2278ab3 | 2013-02-21 15:32:17 -0800 | [diff] [blame] | 21 | qcom,msm-id = <145 1 0>; |
| 22 | |
| 23 | serial@f991f000 { |
Syed Rameez Mustafa | f043441 | 2013-03-01 10:06:09 -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>; |
| 36 | interrupts = <17 0x2>; |
| 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 Internal1", |
| 99 | "MIC BIAS1 Internal1", "Handset Mic", |
| 100 | "AMIC2", "MIC BIAS2 External", |
| 101 | "MIC BIAS2 External", "Headset Mic", |
Bhalchandra Gajare | ba5e89a | 2013-03-18 18:29:03 -0700 | [diff] [blame] | 102 | "AMIC4", "MIC BIAS2 External", |
Phani Kumar Uppalapati | e4897d6 | 2013-04-08 21:27:08 -0700 | [diff] [blame] | 103 | "MIC BIAS2 External", "ANCRight Headset Mic", |
| 104 | "AMIC5", "MIC BIAS2 External", |
Bhalchandra Gajare | ba5e89a | 2013-03-18 18:29:03 -0700 | [diff] [blame] | 105 | "MIC BIAS2 External", "ANCLeft Headset Mic", |
| 106 | "DMIC1", "MIC BIAS1 External", |
| 107 | "MIC BIAS1 External", "Digital Mic1", |
| 108 | "DMIC2", "MIC BIAS1 External", |
| 109 | "MIC BIAS1 External", "Digital Mic2", |
| 110 | "DMIC3", "MIC BIAS3 External", |
| 111 | "MIC BIAS3 External", "Digital Mic3", |
| 112 | "DMIC4", "MIC BIAS3 External", |
| 113 | "MIC BIAS3 External", "Digital Mic4"; |
| 114 | |
Bhalchandra Gajare | cb0508d | 2013-03-07 17:33:14 -0800 | [diff] [blame] | 115 | qcom,cdc-mclk-gpios = <&pm8226_gpios 1 0>; |
Bhalchandra Gajare | b512084 | 2013-03-14 17:50:39 -0700 | [diff] [blame] | 116 | qcom,cdc-vdd-spkr-gpios = <&pm8226_gpios 2 0>; |
Bhalchandra Gajare | cb0508d | 2013-03-07 17:33:14 -0800 | [diff] [blame] | 117 | }; |
Hanumant Singh | 2278ab3 | 2013-02-21 15:32:17 -0800 | [diff] [blame] | 118 | }; |
Krishna Konda | 0fb7209 | 2013-02-26 16:35:51 -0800 | [diff] [blame] | 119 | |
| 120 | &sdcc1 { |
| 121 | vdd-supply = <&pm8226_l17>; |
| 122 | qcom,vdd-always-on; |
| 123 | qcom,vdd-lpm-sup; |
| 124 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 125 | qcom,vdd-current-level = <800 500000>; |
| 126 | |
| 127 | vdd-io-supply = <&pm8226_l6>; |
| 128 | qcom,vdd-io-always-on; |
| 129 | qcom,vdd-io-voltage-level = <1800000 1800000>; |
| 130 | qcom,vdd-io-current-level = <250 154000>; |
| 131 | |
| 132 | qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 133 | qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 134 | qcom,pad-drv-on = <0x4 0x4 0x4>; /* 16mA, 10mA, 10mA */ |
| 135 | qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */ |
| 136 | |
| 137 | qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>; |
| 138 | qcom,sup-voltages = <2950 2950>; |
| 139 | |
| 140 | qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v"; |
| 141 | qcom,nonremovable; |
| 142 | |
Sahitya Tummala | 8d8141c | 2013-03-28 11:08:26 +0530 | [diff] [blame] | 143 | status = "disabled"; |
Krishna Konda | 0fb7209 | 2013-02-26 16:35:51 -0800 | [diff] [blame] | 144 | }; |
| 145 | |
Sahitya Tummala | 9e00136 | 2013-03-28 11:00:55 +0530 | [diff] [blame] | 146 | &sdhc_1 { |
| 147 | vdd-supply = <&pm8226_l17>; |
| 148 | qcom,vdd-always-on; |
| 149 | qcom,vdd-lpm-sup; |
| 150 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 151 | qcom,vdd-current-level = <800 500000>; |
| 152 | |
| 153 | vdd-io-supply = <&pm8226_l6>; |
| 154 | qcom,vdd-io-always-on; |
| 155 | qcom,vdd-io-voltage-level = <1800000 1800000>; |
| 156 | qcom,vdd-io-current-level = <250 154000>; |
| 157 | |
| 158 | qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 159 | qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 160 | qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */ |
| 161 | qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */ |
| 162 | |
| 163 | qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>; |
| 164 | qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v"; |
| 165 | qcom,nonremovable; |
| 166 | |
Sahitya Tummala | 8d8141c | 2013-03-28 11:08:26 +0530 | [diff] [blame] | 167 | status = "ok"; |
Sahitya Tummala | 9e00136 | 2013-03-28 11:00:55 +0530 | [diff] [blame] | 168 | }; |
| 169 | |
Krishna Konda | 0fb7209 | 2013-02-26 16:35:51 -0800 | [diff] [blame] | 170 | &sdcc2 { |
| 171 | vdd-supply = <&pm8226_l18>; |
| 172 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 173 | qcom,vdd-current-level = <9000 800000>; |
| 174 | |
| 175 | vdd-io-supply = <&pm8226_l21>; |
| 176 | qcom,vdd-io-always-on; |
| 177 | qcom,vdd-io-lpm-sup; |
| 178 | qcom,vdd-io-voltage-level = <1800000 2950000>; |
| 179 | qcom,vdd-io-current-level = <6 22000>; |
| 180 | |
| 181 | qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 182 | qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 183 | qcom,pad-drv-on = <0x4 0x4 0x4>; /* 16mA, 10mA, 10mA */ |
| 184 | qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */ |
| 185 | |
| 186 | qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>; |
| 187 | qcom,sup-voltages = <2950 2950>; |
| 188 | |
| 189 | qcom,xpc; |
| 190 | qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104"; |
| 191 | qcom,current-limit = <600>; |
| 192 | |
| 193 | #address-cells = <0>; |
| 194 | interrupt-parent = <&sdcc2>; |
| 195 | interrupts = <0 1 2>; |
| 196 | #interrupt-cells = <1>; |
| 197 | interrupt-map-mask = <0xffffffff>; |
| 198 | interrupt-map = <0 &intc 0 125 0 |
| 199 | 1 &intc 0 220 0 |
| 200 | 2 &msmgpio 38 0x3>; |
| 201 | interrupt-names = "core_irq", "bam_irq", "status_irq"; |
| 202 | cd-gpios = <&msmgpio 38 0x1>; |
| 203 | |
Sahitya Tummala | 8d8141c | 2013-03-28 11:08:26 +0530 | [diff] [blame] | 204 | status = "disabled"; |
Krishna Konda | 0fb7209 | 2013-02-26 16:35:51 -0800 | [diff] [blame] | 205 | }; |
Amy Maloche | d699b94 | 2013-03-03 15:47:52 -0800 | [diff] [blame] | 206 | |
Sahitya Tummala | 9e00136 | 2013-03-28 11:00:55 +0530 | [diff] [blame] | 207 | &sdhc_2 { |
| 208 | vdd-supply = <&pm8226_l18>; |
| 209 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 210 | qcom,vdd-current-level = <9000 800000>; |
| 211 | |
| 212 | vdd-io-supply = <&pm8226_l21>; |
| 213 | qcom,vdd-io-always-on; |
| 214 | qcom,vdd-io-lpm-sup; |
| 215 | qcom,vdd-io-voltage-level = <1800000 2950000>; |
| 216 | qcom,vdd-io-current-level = <6 22000>; |
| 217 | |
| 218 | qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 219 | qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 220 | qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */ |
| 221 | qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */ |
| 222 | |
| 223 | qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>; |
| 224 | |
| 225 | #address-cells = <0>; |
| 226 | interrupt-parent = <&sdhc_2>; |
| 227 | interrupts = <0 1 2>; |
| 228 | #interrupt-cells = <1>; |
| 229 | interrupt-map-mask = <0xffffffff>; |
| 230 | interrupt-map = <0 &intc 0 125 0 |
| 231 | 1 &intc 0 221 0 |
| 232 | 2 &msmgpio 38 0x3>; |
| 233 | interrupt-names = "hc_irq", "pwr_irq", "status_irq"; |
| 234 | cd-gpios = <&msmgpio 38 0x1>; |
| 235 | |
Sahitya Tummala | 8d8141c | 2013-03-28 11:08:26 +0530 | [diff] [blame] | 236 | status = "ok"; |
Sahitya Tummala | 9e00136 | 2013-03-28 11:00:55 +0530 | [diff] [blame] | 237 | }; |
| 238 | |
Amy Maloche | d699b94 | 2013-03-03 15:47:52 -0800 | [diff] [blame] | 239 | &spmi_bus { |
| 240 | qcom,pm8226@1 { |
| 241 | qcom,leds@d800 { |
| 242 | status = "okay"; |
| 243 | qcom,wled_0 { |
| 244 | label = "wled"; |
| 245 | linux,name = "wled:backlight"; |
| 246 | linux,default-trigger = "bkl-trigger"; |
| 247 | qcom,cs-out-en; |
Amy Maloche | bd68767 | 2013-03-18 11:23:45 -0700 | [diff] [blame] | 248 | qcom,op-fdbck = <1>; |
Amy Maloche | d699b94 | 2013-03-03 15:47:52 -0800 | [diff] [blame] | 249 | qcom,default-state = "on"; |
| 250 | qcom,max-current = <25>; |
| 251 | qcom,ctrl-delay-us = <0>; |
| 252 | qcom,boost-curr-lim = <3>; |
| 253 | qcom,cp-sel = <0>; |
| 254 | qcom,switch-freq = <2>; |
Amy Maloche | f0789c5 | 2013-03-26 17:37:32 -0700 | [diff] [blame] | 255 | qcom,ovp-val = <0>; |
Amy Maloche | d699b94 | 2013-03-03 15:47:52 -0800 | [diff] [blame] | 256 | qcom,num-strings = <1>; |
| 257 | qcom,id = <0>; |
| 258 | }; |
| 259 | }; |
| 260 | }; |
| 261 | }; |
David Keitel | 7f3f825 | 2013-02-27 15:24:44 -0800 | [diff] [blame] | 262 | |
| 263 | &pm8226_gpios { |
| 264 | gpio@c000 { /* GPIO 1 */ |
Bhalchandra Gajare | cb0508d | 2013-03-07 17:33:14 -0800 | [diff] [blame] | 265 | /* XO_PMIC_CDC_MCLK enable for tapan codec */ |
| 266 | qcom,mode = <1>; /* Digital output */ |
| 267 | qcom,output-type = <0>; /* CMOS logic */ |
| 268 | qcom,pull = <5>; /* QPNP_PIN_PULL_NO*/ |
David Keitel | 75eabfb | 2013-04-15 19:28:56 -0700 | [diff] [blame] | 269 | qcom,vin-sel = <3>; /* QPNP_PIN_VIN3 */ |
Bhalchandra Gajare | cb0508d | 2013-03-07 17:33:14 -0800 | [diff] [blame] | 270 | qcom,out-strength = <3>;/* QPNP_PIN_OUT_STRENGTH_HIGH */ |
| 271 | qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */ |
| 272 | qcom,master-en = <1>; /* Enable GPIO */ |
David Keitel | 7f3f825 | 2013-02-27 15:24:44 -0800 | [diff] [blame] | 273 | }; |
| 274 | |
| 275 | gpio@c100 { /* GPIO 2 */ |
Bhalchandra Gajare | b512084 | 2013-03-14 17:50:39 -0700 | [diff] [blame] | 276 | qcom,mode = <1>; |
| 277 | qcom,output-type = <0>; |
| 278 | qcom,pull = <5>; |
David Keitel | 75eabfb | 2013-04-15 19:28:56 -0700 | [diff] [blame] | 279 | qcom,vin-sel = <3>; |
Bhalchandra Gajare | b512084 | 2013-03-14 17:50:39 -0700 | [diff] [blame] | 280 | qcom,out-strength = <3>; |
| 281 | qcom,src-sel = <2>; |
| 282 | qcom,master-en = <1>; |
David Keitel | 7f3f825 | 2013-02-27 15:24:44 -0800 | [diff] [blame] | 283 | }; |
| 284 | |
| 285 | gpio@c200 { /* GPIO 3 */ |
| 286 | }; |
| 287 | |
| 288 | gpio@c300 { /* GPIO 4 */ |
| 289 | }; |
| 290 | |
| 291 | gpio@c400 { /* GPIO 5 */ |
| 292 | }; |
| 293 | |
| 294 | gpio@c500 { /* GPIO 6 */ |
| 295 | }; |
| 296 | |
| 297 | gpio@c600 { /* GPIO 7 */ |
| 298 | }; |
| 299 | |
| 300 | gpio@c700 { /* GPIO 8 */ |
| 301 | }; |
| 302 | }; |
| 303 | |
| 304 | &pm8226_mpps { |
| 305 | mpp@a000 { /* MPP 1 */ |
| 306 | }; |
| 307 | |
| 308 | mpp@a100 { /* MPP 2 */ |
| 309 | }; |
| 310 | |
| 311 | mpp@a200 { /* MPP 3 */ |
| 312 | }; |
| 313 | |
| 314 | mpp@a300 { /* MPP 4 */ |
| 315 | }; |
| 316 | |
| 317 | mpp@a400 { /* MPP 5 */ |
| 318 | }; |
| 319 | |
| 320 | mpp@a500 { /* MPP 6 */ |
| 321 | }; |
| 322 | |
| 323 | mpp@a600 { /* MPP 7 */ |
| 324 | }; |
| 325 | |
| 326 | mpp@a700 { /* MPP 8 */ |
| 327 | }; |
| 328 | }; |
Fenglin Wu | 009098a | 2013-03-08 15:50:51 -0800 | [diff] [blame] | 329 | |
| 330 | &pm8226_chg { |
David Keitel | e89d478 | 2013-03-27 11:29:59 -0700 | [diff] [blame] | 331 | qcom,charging-disabled; |
| 332 | qcom,use-default-batt-values; |
Fenglin Wu | 009098a | 2013-03-08 15:50:51 -0800 | [diff] [blame] | 333 | }; |