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