Evgeniy Borisov | e227e7e | 2013-09-16 16:55:22 +0300 | [diff] [blame] | 1 | /* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. |
David Collins | bdd5d7d | 2013-06-19 15:42:55 -0700 | [diff] [blame] | 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 | /include/ "msm8974-mtp.dtsi" |
| 14 | |
| 15 | &cci { |
| 16 | qcom,camera@6e { |
| 17 | qcom,vdd-cx-supply = <&pma8084_s2>; |
| 18 | cam_vdig-supply = <&pma8084_l3>; |
| 19 | cam_vana-supply = <&pma8084_l17>; |
| 20 | cam_vio-supply = <&pma8084_lvs4>; |
| 21 | cam_vaf-supply = <&pma8084_l23>; |
| 22 | }; |
| 23 | |
| 24 | qcom,camera@20 { |
| 25 | qcom,vdd-cx-supply = <&pma8084_s2>; |
| 26 | cam_vdig-supply = <&pma8084_l3>; |
| 27 | cam_vana-supply = <&pma8084_l17>; |
| 28 | cam_vio-supply = <&pma8084_lvs4>; |
| 29 | cam_vaf-supply = <&pma8084_l23>; |
| 30 | }; |
| 31 | |
| 32 | qcom,camera@6c { |
| 33 | qcom,vdd-cx-supply = <&pma8084_s2>; |
| 34 | cam_vdig-supply = <&pma8084_l3>; |
| 35 | cam_vana-supply = <&pma8084_l17>; |
| 36 | cam_vio-supply = <&pma8084_lvs4>; |
| 37 | }; |
| 38 | |
| 39 | qcom,camera@90 { |
| 40 | qcom,vdd-cx-supply = <&pma8084_s2>; |
| 41 | cam_vdig-supply = <&pma8084_l3>; |
| 42 | cam_vana-supply = <&pma8084_l17>; |
| 43 | cam_vio-supply = <&pma8084_lvs4>; |
| 44 | }; |
Evgeniy Borisov | e227e7e | 2013-09-16 16:55:22 +0300 | [diff] [blame] | 45 | |
| 46 | |
| 47 | qcom,camera@0 { |
| 48 | qcom,vdd-cx-supply = <&pma8084_s2>; |
| 49 | cam_vdig-supply = <&pma8084_l3>; |
| 50 | cam_vana-supply = <&pma8084_l17>; |
| 51 | cam_vio-supply = <&pma8084_lvs4>; |
| 52 | cam_vaf-supply = <&pma8084_l23>; |
| 53 | }; |
| 54 | |
| 55 | qcom,camera@1 { |
| 56 | qcom,vdd-cx-supply = <&pma8084_s2>; |
| 57 | cam_vdig-supply = <&pma8084_l3>; |
| 58 | cam_vana-supply = <&pma8084_l17>; |
| 59 | cam_vio-supply = <&pma8084_lvs4>; |
| 60 | cam_vaf-supply = <&pma8084_l23>; |
| 61 | }; |
| 62 | |
| 63 | qcom,camera@2 { |
| 64 | qcom,vdd-cx-supply = <&pma8084_s2>; |
| 65 | cam_vdig-supply = <&pma8084_l3>; |
| 66 | cam_vana-supply = <&pma8084_l17>; |
| 67 | cam_vio-supply = <&pma8084_lvs4>; |
| 68 | }; |
| 69 | |
| 70 | qcom,camera@3 { |
| 71 | qcom,vdd-cx-supply = <&pma8084_s2>; |
| 72 | cam_vdig-supply = <&pma8084_l3>; |
| 73 | cam_vana-supply = <&pma8084_l17>; |
| 74 | cam_vio-supply = <&pma8084_lvs4>; |
| 75 | }; |
David Collins | bdd5d7d | 2013-06-19 15:42:55 -0700 | [diff] [blame] | 76 | }; |
| 77 | |
| 78 | &soc { |
| 79 | i2c@f9924000 { |
Amy Maloche | 0b29499 | 2013-08-29 10:29:54 -0700 | [diff] [blame] | 80 | synaptics@20 { |
| 81 | vdd-supply = <&pma8084_l18>; |
| 82 | vcc_i2c-supply = <&pma8084_lvs1>; |
| 83 | }; |
| 84 | |
David Collins | bdd5d7d | 2013-06-19 15:42:55 -0700 | [diff] [blame] | 85 | atmel_mxt_ts@4a { |
| 86 | vdd_ana-supply = <&pma8084_l18>; |
| 87 | vcc_i2c-supply = <&pma8084_lvs1>; |
| 88 | }; |
| 89 | }; |
| 90 | |
| 91 | i2c@f9967000 { |
| 92 | isa1200@48 { |
| 93 | vcc_i2c-supply = <&pma8084_s4>; |
| 94 | }; |
| 95 | }; |
| 96 | |
Houston Hoffman | bc2bf21 | 2013-12-02 20:20:00 -0800 | [diff] [blame] | 97 | i2c@f9928000 { /* BLSP1 QUP6 */ |
| 98 | nfc-nci@e { |
| 99 | compatible = "qcom,nfc-nci"; |
| 100 | reg = <0x0e>; |
| 101 | qcom,irq-gpio = <&msmgpio 59 0x00>; |
| 102 | qcom,dis-gpio = <&pma8084_mpps 7 0>; |
| 103 | qcom,clk-src = "BBCLK2"; |
| 104 | qcom,clk-en-gpio = <&msmgpio 0 0x00>; |
| 105 | interrupt-parent = <&msmgpio>; |
| 106 | interrupts = <59 0>; |
| 107 | qcom,clk-gpio = <&pma8084_gpios 10 0>; |
| 108 | }; |
| 109 | }; |
| 110 | |
David Collins | bdd5d7d | 2013-06-19 15:42:55 -0700 | [diff] [blame] | 111 | qcom,ssusb@f9200000 { |
| 112 | vbus_dwc3-supply = <&pm8941_mvs1>; |
| 113 | }; |
| 114 | |
David Collins | bdd5d7d | 2013-06-19 15:42:55 -0700 | [diff] [blame] | 115 | gpio_keys { |
| 116 | camera_snapshot { |
| 117 | gpios = <&pma8084_gpios 3 0x1>; |
| 118 | }; |
| 119 | |
| 120 | camera_focus { |
| 121 | gpios = <&pma8084_gpios 4 0x1>; |
| 122 | }; |
| 123 | |
| 124 | vol_up { |
| 125 | gpios = <&pma8084_gpios 5 0x1>; |
| 126 | }; |
| 127 | }; |
| 128 | |
| 129 | spi@f9923000 { |
| 130 | ethernet-switch@2 { |
| 131 | rst-gpio = <&pma8084_mpps 6 0>; |
| 132 | }; |
| 133 | }; |
| 134 | }; |
| 135 | |
| 136 | &sdhc_1 { |
| 137 | vdd-supply = <&pma8084_l20>; |
| 138 | vdd-io-supply = <&pma8084_s4>; |
David Collins | 2392688 | 2013-10-10 16:00:22 -0700 | [diff] [blame] | 139 | |
David Collins | 2392688 | 2013-10-10 16:00:22 -0700 | [diff] [blame] | 140 | qcom,pad-pull-on = <0x0 0x3 0x3 0x1>; /* no-pull, pull-up, pull-up, pull-down */ |
| 141 | qcom,pad-pull-off = <0x0 0x3 0x3 0x1>; /* no-pull, pull-up, pull-up, pull-down */ |
David Collins | bdd5d7d | 2013-06-19 15:42:55 -0700 | [diff] [blame] | 142 | }; |
| 143 | |
| 144 | &sdhc_2 { |
| 145 | vdd-supply = <&pma8084_l21>; |
| 146 | vdd-io-supply = <&pma8084_l13>; |
| 147 | }; |
| 148 | |
| 149 | &pma8084_gpios { |
| 150 | gpio@c000 { /* GPIO 1 */ |
| 151 | /* Unused */ |
| 152 | qcom,mode = <0>; /* Digital input */ |
| 153 | qcom,pull = <0>; /* Pull up 30 uA */ |
| 154 | qcom,master-en = <1>; |
| 155 | }; |
| 156 | |
| 157 | gpio@c100 { /* GPIO 2 */ |
| 158 | /* Unused */ |
| 159 | qcom,mode = <0>; /* Digital input */ |
| 160 | qcom,pull = <0>; /* Pull up 30 uA */ |
| 161 | qcom,master-en = <1>; |
| 162 | }; |
| 163 | |
| 164 | gpio@c200 { /* GPIO 3 */ |
| 165 | /* Snapshot button */ |
| 166 | qcom,mode = <0>; /* Digital input */ |
| 167 | qcom,pull = <0>; /* Pull up 30 uA */ |
| 168 | qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8 V */ |
| 169 | qcom,src-sel = <0>; /* Constant */ |
| 170 | qcom,master-en = <1>; |
| 171 | }; |
| 172 | |
| 173 | gpio@c300 { /* GPIO 4 */ |
| 174 | /* Focus button */ |
| 175 | qcom,mode = <0>; /* Digital input */ |
| 176 | qcom,pull = <0>; /* Pull up 30 uA */ |
| 177 | qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8 V */ |
| 178 | qcom,src-sel = <0>; /* Constant */ |
| 179 | qcom,master-en = <1>; |
| 180 | }; |
| 181 | |
| 182 | gpio@c400 { /* GPIO 5 */ |
| 183 | /* Volume up button */ |
| 184 | qcom,mode = <0>; /* Digital input */ |
| 185 | qcom,pull = <0>; /* Pull up 30 uA */ |
| 186 | qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8 V */ |
| 187 | qcom,src-sel = <0>; /* Constant */ |
| 188 | qcom,master-en = <1>; |
| 189 | }; |
| 190 | |
| 191 | gpio@c500 { /* GPIO 6 */ |
| 192 | /* Flash LED now */ |
| 193 | qcom,mode = <0>; /* Digital input */ |
| 194 | qcom,pull = <4>; /* Pull down */ |
| 195 | qcom,master-en = <1>; |
| 196 | }; |
| 197 | |
| 198 | gpio@c600 { /* GPIO 7 */ |
| 199 | /* GRFC_12 */ |
| 200 | }; |
| 201 | |
| 202 | gpio@c700 { /* GPIO 8 */ |
| 203 | /* Unused */ |
| 204 | qcom,mode = <0>; /* Digital input */ |
| 205 | qcom,pull = <0>; /* Pull up 30 uA */ |
| 206 | qcom,master-en = <1>; |
| 207 | }; |
| 208 | |
| 209 | gpio@c800 { /* GPIO 9 */ |
| 210 | /* Unused */ |
| 211 | qcom,mode = <1>; /* Digital output */ |
| 212 | qcom,out-strength = <1>; /* Low */ |
| 213 | qcom,src-sel = <2>; /* Function 1 */ |
| 214 | qcom,master-en = <1>; |
| 215 | }; |
| 216 | |
| 217 | gpio@c900 { /* GPIO 10 */ |
Houston Hoffman | bc2bf21 | 2013-12-02 20:20:00 -0800 | [diff] [blame] | 218 | /* NFC clk request */ |
| 219 | qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */ |
| 220 | qcom,pull = <5>; /* QPNP_PIN_PULL_NO */ |
| 221 | qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */ |
| 222 | qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */ |
David Collins | bdd5d7d | 2013-06-19 15:42:55 -0700 | [diff] [blame] | 223 | qcom,master-en = <1>; |
| 224 | }; |
| 225 | |
| 226 | gpio@ca00 { /* GPIO 11 */ |
| 227 | /* Unused */ |
| 228 | qcom,mode = <1>; /* Digital output */ |
| 229 | qcom,out-strength = <1>; /* Low */ |
| 230 | qcom,src-sel = <2>; /* Function 1 */ |
| 231 | qcom,master-en = <1>; |
| 232 | }; |
| 233 | |
| 234 | gpio@cb00 { /* GPIO 12 */ |
Houston Hoffman | bc2bf21 | 2013-12-02 20:20:00 -0800 | [diff] [blame] | 235 | /* NFC clk request */ |
| 236 | qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */ |
| 237 | qcom,pull = <5>; /* QPNP_PIN_PULL_NO */ |
| 238 | qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */ |
| 239 | qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */ |
David Collins | bdd5d7d | 2013-06-19 15:42:55 -0700 | [diff] [blame] | 240 | qcom,master-en = <1>; |
| 241 | }; |
| 242 | |
| 243 | gpio@cc00 { /* GPIO 13 */ |
| 244 | /* TS_CHGR_IN */ |
| 245 | qcom,mode = <0>; /* Digital input */ |
| 246 | qcom,pull = <4>; /* Pull down */ |
| 247 | qcom,master-en = <1>; |
| 248 | }; |
| 249 | |
| 250 | gpio@cd00 { /* GPIO 14 */ |
| 251 | /* Unused */ |
| 252 | qcom,mode = <1>; /* Digital output */ |
| 253 | qcom,out-strength = <1>; /* Low */ |
| 254 | qcom,src-sel = <2>; /* Function 1 */ |
| 255 | qcom,master-en = <1>; |
| 256 | }; |
| 257 | |
| 258 | gpio@ce00 { /* GPIO 15 */ |
| 259 | /* Codec clock */ |
| 260 | qcom,mode = <1>; /* Digital output */ |
| 261 | qcom,output-type = <0>; /* CMOS */ |
| 262 | qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8 V */ |
| 263 | qcom,out-strength = <1>; /* Low */ |
| 264 | qcom,src-sel = <2>; /* Function 1 - DIVCLK1 */ |
| 265 | qcom,master-en = <1>; |
| 266 | }; |
| 267 | |
| 268 | gpio@cf00 { /* GPIO 16 */ |
| 269 | /* Haptics clock */ |
| 270 | qcom,mode = <1>; /* Digital output */ |
| 271 | qcom,output-type = <0>; /* CMOS */ |
| 272 | qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8 V */ |
| 273 | qcom,out-strength = <3>; /* High */ |
| 274 | qcom,src-sel = <3>; /* Function 2 - SLEEPCLK3 */ |
| 275 | qcom,master-en = <1>; |
| 276 | }; |
| 277 | |
| 278 | gpio@d000 { /* GPIO 17 */ |
| 279 | /* QPA clock */ |
| 280 | }; |
| 281 | |
| 282 | gpio@d100 { /* GPIO 18 */ |
| 283 | /* Unused */ |
| 284 | }; |
| 285 | |
| 286 | gpio@d200 { /* GPIO 19 */ |
| 287 | /* BOOST_BYP */ |
| 288 | }; |
| 289 | |
| 290 | gpio@d300 { /* GPIO 20 */ |
| 291 | /* Display enable */ |
| 292 | qcom,mode = <1>; /* Digital output */ |
| 293 | qcom,output-type = <0>; /* CMOS */ |
| 294 | qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8 V */ |
| 295 | qcom,out-strength = <1>; /* Low */ |
| 296 | qcom,src-sel = <0>; /* Constant */ |
| 297 | qcom,master-en = <1>; |
| 298 | }; |
| 299 | |
| 300 | gpio@d400 { /* GPIO 21 */ |
| 301 | /* BATT_GONE */ |
| 302 | }; |
| 303 | |
| 304 | gpio@d500 { /* GPIO 22 */ |
| 305 | /* BATT_REM_ALARM */ |
| 306 | }; |
| 307 | }; |
| 308 | |
| 309 | &pma8084_mpps { |
| 310 | mpp@a000 { /* MPP 1 */ |
| 311 | /* SDC_UIM_VBIAS */ |
| 312 | status = "disabled"; |
| 313 | }; |
| 314 | |
| 315 | mpp@a100 { /* MPP 2 */ |
| 316 | /* PM8941_PON_1 */ |
| 317 | }; |
| 318 | |
| 319 | mpp@a200 { /* MPP 3 */ |
| 320 | /* VREF_DAC */ |
| 321 | }; |
| 322 | |
| 323 | mpp@a300 { /* MPP 4 */ |
| 324 | /* Unused */ |
| 325 | }; |
| 326 | |
| 327 | mpp@a400 { /* MPP 5 */ |
| 328 | /* Unused */ |
| 329 | }; |
| 330 | |
| 331 | mpp@a500 { /* MPP 6 */ |
| 332 | /* SPI ethernet enable */ |
| 333 | qcom,mode = <1>; /* Digital output */ |
| 334 | qcom,output-type = <0>; /* CMOS */ |
| 335 | qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8V > 1.6V */ |
| 336 | qcom,src-sel = <0>; /* Constant */ |
| 337 | qcom,out-strength = <1>; /* Low */ |
| 338 | qcom,master-en = <1>; |
| 339 | }; |
| 340 | |
| 341 | mpp@a600 { /* MPP 7 */ |
| 342 | /* NFC disable */ |
| 343 | qcom,mode = <1>; /* Digital output */ |
| 344 | qcom,out-strength = <1>; /* Low */ |
| 345 | qcom,master-en = <1>; |
| 346 | }; |
| 347 | |
| 348 | mpp@a700 { /* MPP 8 */ |
| 349 | /* Unused */ |
| 350 | qcom,mode = <1>; /* Digital output */ |
| 351 | qcom,out-strength = <1>; /* Low */ |
| 352 | qcom,master-en = <1>; |
| 353 | }; |
| 354 | }; |