David Keitel | ec74a33 | 2013-01-18 18:29:10 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -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/ "dsi-panel-toshiba-720p-video.dtsi" |
Sreesudhan Ramakrish Ramkumar | 4c29a45 | 2013-02-11 17:20:39 -0800 | [diff] [blame] | 14 | /include/ "msm8974-camera-sensor-fluid.dtsi" |
Amy Maloche | 24de28b | 2012-09-17 12:09:56 -0700 | [diff] [blame] | 15 | /include/ "msm8974-leds.dtsi" |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 16 | |
Stepan Moskovchenko | 7d8cdcaa | 2013-04-25 17:10:55 -0700 | [diff] [blame] | 17 | &soc { |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 18 | serial@f991e000 { |
| 19 | status = "ok"; |
| 20 | }; |
| 21 | |
Chandan Uddaraju | 0c33e77 | 2012-12-13 22:49:58 -0800 | [diff] [blame] | 22 | qcom,mdss_dsi_toshiba_720p_video { |
| 23 | status = "ok"; |
Siddhartha Agrawal | 1d0557b | 2013-03-06 14:53:11 -0800 | [diff] [blame] | 24 | qcom,cont-splash-enabled; |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | qcom,hdmi_tx@fd922100 { |
| 28 | status = "ok"; |
| 29 | }; |
| 30 | |
| 31 | i2c@f9924000 { |
| 32 | atmel_mxt_ts@4a { |
| 33 | compatible = "atmel,mxt-ts"; |
| 34 | reg = <0x4a>; |
| 35 | interrupt-parent = <&msmgpio>; |
| 36 | interrupts = <61 0x2>; |
| 37 | vdd_ana-supply = <&pm8941_l18>; |
| 38 | vcc_i2c-supply = <&pm8941_lvs1>; |
| 39 | atmel,reset-gpio = <&msmgpio 60 0x00>; |
| 40 | atmel,irq-gpio = <&msmgpio 61 0x00>; |
| 41 | atmel,panel-coords = <0 0 760 1424>; |
| 42 | atmel,display-coords = <0 0 720 1280>; |
Sreenivasulu Chalam Charla | bf7f621 | 2012-10-17 22:10:24 +0530 | [diff] [blame] | 43 | atmel,i2c-pull-up; |
Amy Maloche | a90b005 | 2013-02-13 11:57:10 -0800 | [diff] [blame] | 44 | atmel,no-force-update; |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 45 | atmel,cfg_1 { |
| 46 | atmel,family-id = <0x82>; |
| 47 | atmel,variant-id = <0x19>; |
| 48 | atmel,version = <0x10>; |
| 49 | atmel,build = <0xaa>; |
| 50 | atmel,config = [ |
| 51 | /* Object 6, Instance = 0 */ |
| 52 | 00 00 00 00 00 00 |
| 53 | /* Object 38, Instance = 0 */ |
Amy Maloche | 8463721 | 2012-12-14 15:12:19 -0800 | [diff] [blame] | 54 | 15 01 00 03 0A 0C 00 00 |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 55 | /* Object 7, Instance = 0 */ |
Amy Maloche | 8463721 | 2012-12-14 15:12:19 -0800 | [diff] [blame] | 56 | 20 08 32 03 |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 57 | /* Object 8, Instance = 0 */ |
Amy Maloche | 8463721 | 2012-12-14 15:12:19 -0800 | [diff] [blame] | 58 | 0F 00 0A 0A 00 00 0A 0A 00 00 |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 59 | /* Object 9, Instance = 0 */ |
Amy Maloche | 8463721 | 2012-12-14 15:12:19 -0800 | [diff] [blame] | 60 | 83 00 00 18 0E 00 70 46 02 01 |
| 61 | 00 0A 03 31 04 05 0A 0A 90 05 |
| 62 | F8 02 05 F1 F1 0F 00 00 08 2D |
| 63 | 12 06 00 00 00 01 |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 64 | /* Object 15, Instance = 0 */ |
| 65 | 00 00 00 00 00 00 00 00 00 00 |
| 66 | 00 |
| 67 | /* Object 18, Instance = 0 */ |
| 68 | 00 00 |
| 69 | /* Object 19, Instance = 0 */ |
| 70 | 00 00 00 00 00 00 |
| 71 | /* Object 23, Instance = 0 */ |
| 72 | 00 00 00 00 00 00 00 00 00 00 |
| 73 | 00 00 00 00 00 |
| 74 | /* Object 25, Instance = 0 */ |
| 75 | 00 00 00 00 00 00 00 00 00 00 |
| 76 | 00 00 00 00 00 |
| 77 | /* Object 40, Instance = 0 */ |
| 78 | 00 00 00 00 00 |
| 79 | /* Object 42, Instance = 0 */ |
Amy Maloche | 8463721 | 2012-12-14 15:12:19 -0800 | [diff] [blame] | 80 | 33 1E 19 10 80 00 00 00 FF 00 |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 81 | /* Object 46, Instance = 0 */ |
| 82 | 00 00 10 10 00 00 03 00 00 01 |
| 83 | /* Object 47, Instance = 0 */ |
| 84 | 08 0A 28 0A 02 0A 00 8C 00 20 |
| 85 | 00 00 00 |
| 86 | /* Object 55, Instance = 0 */ |
| 87 | 00 00 00 00 00 00 |
| 88 | /* Object 56, Instance = 0 */ |
Amy Maloche | 8463721 | 2012-12-14 15:12:19 -0800 | [diff] [blame] | 89 | 00 00 00 18 05 05 05 05 05 05 |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 90 | 05 05 05 05 05 05 05 05 05 05 |
| 91 | 05 05 05 05 05 05 05 05 00 00 |
| 92 | 00 00 00 00 00 00 00 00 00 00 |
| 93 | 00 00 |
| 94 | /* Object 57, Instance = 0 */ |
| 95 | 00 00 00 |
| 96 | /* Object 61, Instance = 0 */ |
| 97 | 00 00 00 00 00 |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 98 | /* Object 62, Instance = 0 */ |
Amy Maloche | 8463721 | 2012-12-14 15:12:19 -0800 | [diff] [blame] | 99 | 01 2A 00 16 00 00 00 00 0B 01 |
| 100 | 02 03 04 08 00 00 08 10 18 05 |
| 101 | 00 0A 05 05 50 14 19 34 1A 7F |
| 102 | 00 00 00 00 00 00 00 00 00 30 |
| 103 | 05 02 00 01 00 05 00 00 00 00 |
| 104 | 00 00 00 00 |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 105 | ]; |
| 106 | }; |
| 107 | }; |
| 108 | }; |
| 109 | |
Manoj Rao | 167072b | 2012-10-29 12:48:29 -0700 | [diff] [blame] | 110 | i2c@f9967000 { |
| 111 | sii8334@72 { |
| 112 | compatible = "qcom,mhl-sii8334"; |
| 113 | reg = <0x72>; |
| 114 | interrupt-parent = <&msmgpio>; |
| 115 | interrupts = <82 0x8>; |
| 116 | mhl-intr-gpio = <&msmgpio 82 0>; |
| 117 | mhl-pwr-gpio = <&msmgpio 12 0>; |
| 118 | mhl-rst-gpio = <&pm8941_mpps 8 0>; |
| 119 | avcc_18-supply = <&pm8941_l24>; |
| 120 | avcc_12-supply = <&pm8941_l2>; |
| 121 | smps3a-supply = <&pm8941_s3>; |
| 122 | vdda-supply = <&pm8941_l12>; |
Manoj Rao | babed62 | 2013-02-01 20:35:48 -0800 | [diff] [blame] | 123 | qcom,hdmi-tx-map = <&mdss_hdmi_tx>; |
Manoj Rao | 167072b | 2012-10-29 12:48:29 -0700 | [diff] [blame] | 124 | }; |
Amy Maloche | 527acc4 | 2012-12-07 18:40:54 -0800 | [diff] [blame] | 125 | |
| 126 | isa1200@48 { |
| 127 | status = "okay"; |
| 128 | reg = <0x48>; |
| 129 | vcc_i2c-supply = <&pm8941_s3>; |
| 130 | compatible = "imagis,isa1200"; |
| 131 | label = "vibrator"; |
| 132 | imagis,chip-en; |
| 133 | imagis,need-pwm-clk; |
| 134 | imagis,ext-clk-en; |
| 135 | imagis,hap-en-gpio = <&msmgpio 86 0x00>; |
| 136 | imagis,max-timeout = <15000>; |
| 137 | imagis,pwm-div = <256>; |
| 138 | imagis,mode-ctrl = <2>; |
| 139 | imagis,regulator { |
| 140 | regulator-name = "vcc_i2c"; |
| 141 | regulator-min-microvolt = <1800000>; |
| 142 | regulator-max-microvolt = <1800000>; |
| 143 | regulator-max-microamp = <9360>; |
| 144 | }; |
| 145 | }; |
Manoj Rao | 167072b | 2012-10-29 12:48:29 -0700 | [diff] [blame] | 146 | }; |
| 147 | |
Amy Maloche | 932657e | 2012-11-26 11:31:55 -0800 | [diff] [blame] | 148 | gen-vkeys { |
| 149 | compatible = "qcom,gen-vkeys"; |
| 150 | label = "atmel_mxt_ts"; |
| 151 | qcom,disp-maxx = <720>; |
| 152 | qcom,disp-maxy = <1280>; |
| 153 | qcom,panel-maxx = <760>; |
| 154 | qcom,panel-maxy = <1424>; |
| 155 | qcom,key-codes = <158 139 102 217>; |
| 156 | }; |
| 157 | |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 158 | gpio_keys { |
| 159 | compatible = "gpio-keys"; |
| 160 | input-name = "gpio-keys"; |
| 161 | |
| 162 | camera_snapshot { |
| 163 | label = "camera_snapshot"; |
| 164 | gpios = <&pm8941_gpios 3 0x1>; |
| 165 | linux,input-type = <1>; |
| 166 | linux,code = <0x2fe>; |
| 167 | gpio-key,wakeup; |
| 168 | debounce-interval = <15>; |
| 169 | }; |
| 170 | |
| 171 | camera_focus { |
| 172 | label = "camera_focus"; |
| 173 | gpios = <&pm8941_gpios 4 0x1>; |
| 174 | linux,input-type = <1>; |
| 175 | linux,code = <0x210>; |
| 176 | gpio-key,wakeup; |
| 177 | debounce-interval = <15>; |
| 178 | }; |
| 179 | |
| 180 | vol_up { |
| 181 | label = "volume_up"; |
| 182 | gpios = <&pm8941_gpios 5 0x1>; |
| 183 | linux,input-type = <1>; |
| 184 | linux,code = <115>; |
| 185 | gpio-key,wakeup; |
| 186 | debounce-interval = <15>; |
| 187 | }; |
| 188 | }; |
| 189 | |
| 190 | spi@f9923000 { |
| 191 | ethernet-switch@2 { |
| 192 | compatible = "micrel,ks8851"; |
| 193 | reg = <2>; |
| 194 | interrupt-parent = <&msmgpio>; |
| 195 | interrupts = <94 0>; |
| 196 | spi-max-frequency = <4800000>; |
| 197 | rst-gpio = <&pm8941_mpps 6 0>; |
| 198 | vdd-io-supply = <&spi_eth_vreg>; |
| 199 | vdd-phy-supply = <&spi_eth_vreg>; |
| 200 | }; |
| 201 | }; |
Phani Kumar Uppalapati | a212987 | 2012-11-08 20:36:45 -0800 | [diff] [blame] | 202 | |
| 203 | sound { |
Phani Kumar Uppalapati | a212987 | 2012-11-08 20:36:45 -0800 | [diff] [blame] | 204 | qcom,model = "msm8974-taiko-fluid-snd-card"; |
Joonwoo Park | 3a930f3 | 2013-04-10 18:57:45 -0700 | [diff] [blame] | 205 | qcom,audio-routing = |
| 206 | "RX_BIAS", "MCLK", |
| 207 | "LDO_H", "MCLK", |
| 208 | "AMIC1", "MIC BIAS1 Internal1", |
| 209 | "MIC BIAS1 Internal1", "Handset Mic", |
| 210 | "AMIC2", "MIC BIAS2 External", |
| 211 | "MIC BIAS2 External", "Headset Mic", |
| 212 | "AMIC3", "MIC BIAS2 External", |
| 213 | "MIC BIAS2 External", "ANCRight Headset Mic", |
| 214 | "AMIC4", "MIC BIAS2 External", |
| 215 | "MIC BIAS2 External", "ANCLeft Headset Mic", |
| 216 | "DMIC1", "MIC BIAS1 External", |
| 217 | "MIC BIAS1 External", "Digital Mic1", |
| 218 | "DMIC2", "MIC BIAS1 External", |
| 219 | "MIC BIAS1 External", "Digital Mic2", |
| 220 | "DMIC3", "MIC BIAS3 External", |
| 221 | "MIC BIAS3 External", "Digital Mic3", |
| 222 | "DMIC4", "MIC BIAS3 External", |
| 223 | "MIC BIAS3 External", "Digital Mic4", |
| 224 | "DMIC5", "MIC BIAS4 External", |
| 225 | "MIC BIAS4 External", "Digital Mic5", |
| 226 | "DMIC6", "MIC BIAS4 External", |
| 227 | "MIC BIAS4 External", "Digital Mic6", |
| 228 | "Lineout_1 amp", "LINEOUT1", |
| 229 | "Lineout_3 amp", "LINEOUT3"; |
| 230 | |
Kiran Kandi | 5265032 | 2012-12-11 15:49:39 -0800 | [diff] [blame] | 231 | qcom,hdmi-audio-rx; |
Joonwoo Park | 3a930f3 | 2013-04-10 18:57:45 -0700 | [diff] [blame] | 232 | qcom,ext-ult-lo-amp-gpio = <&pm8941_gpios 6 0>; |
Joonwoo Park | d581a76 | 2013-04-15 17:12:57 -0700 | [diff] [blame] | 233 | qcom,cdc-micbias2-headset-only; |
Phani Kumar Uppalapati | a212987 | 2012-11-08 20:36:45 -0800 | [diff] [blame] | 234 | }; |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 235 | }; |
| 236 | |
Patrick Lai | 51f50be | 2013-01-14 23:04:46 -0800 | [diff] [blame] | 237 | &slim_msm { |
| 238 | taiko_codec { |
Kiran Kandi | 4041f7f | 2013-02-07 23:17:18 -0800 | [diff] [blame] | 239 | qcom,cdc-micbias1-ext-cap; |
Patrick Lai | 51f50be | 2013-01-14 23:04:46 -0800 | [diff] [blame] | 240 | qcom,cdc-micbias2-ext-cap; |
Kiran Kandi | 4041f7f | 2013-02-07 23:17:18 -0800 | [diff] [blame] | 241 | qcom,cdc-micbias3-ext-cap; |
| 242 | qcom,cdc-micbias4-ext-cap; |
Joonwoo Park | df0d5a9 | 2012-12-12 14:08:32 -0800 | [diff] [blame] | 243 | |
| 244 | /* If boot isn't available, vph_pwr_vreg can be used instead */ |
| 245 | cdc-vdd-spkdrv-supply = <&pm8941_boost>; |
| 246 | qcom,cdc-vdd-spkdrv-voltage = <5000000 5000000>; |
| 247 | qcom,cdc-vdd-spkdrv-current = <1250000>; |
| 248 | |
| 249 | qcom,cdc-on-demand-supplies = "cdc-vdd-spkdrv"; |
Patrick Lai | 51f50be | 2013-01-14 23:04:46 -0800 | [diff] [blame] | 250 | }; |
| 251 | }; |
| 252 | |
Amy Maloche | 24de28b | 2012-09-17 12:09:56 -0700 | [diff] [blame] | 253 | &spmi_bus { |
| 254 | qcom,pm8941@1 { |
| 255 | qcom,leds@d800 { |
| 256 | status = "okay"; |
| 257 | qcom,wled_0 { |
| 258 | label = "wled"; |
| 259 | linux,name = "wled:backlight"; |
| 260 | linux,default-trigger = "bkl-trigger"; |
| 261 | qcom,cs-out-en; |
Amy Maloche | bd68767 | 2013-03-18 11:23:45 -0700 | [diff] [blame] | 262 | qcom,op-fdbck = <1>; |
Siddhartha Agrawal | 12315e6 | 2013-02-24 11:23:02 -0800 | [diff] [blame] | 263 | qcom,default-state = "on"; |
Amy Maloche | 24de28b | 2012-09-17 12:09:56 -0700 | [diff] [blame] | 264 | qcom,max-current = <25>; |
| 265 | qcom,ctrl-delay-us = <0>; |
| 266 | qcom,boost-curr-lim = <3>; |
| 267 | qcom,cp-sel = <0>; |
| 268 | qcom,switch-freq = <2>; |
| 269 | qcom,ovp-val = <2>; |
| 270 | qcom,num-strings = <1>; |
| 271 | qcom,id = <0>; |
| 272 | }; |
| 273 | }; |
| 274 | |
| 275 | qcom,leds@d900 { |
| 276 | status = "disabled"; |
| 277 | }; |
| 278 | |
| 279 | qcom,leds@da00 { |
| 280 | status = "disabled"; |
| 281 | }; |
| 282 | |
| 283 | qcom,leds@db00 { |
| 284 | status = "disabled"; |
| 285 | }; |
| 286 | |
| 287 | qcom,leds@dc00 { |
| 288 | status = "disabled"; |
| 289 | }; |
| 290 | |
| 291 | qcom,leds@dd00 { |
| 292 | status = "disabled"; |
| 293 | }; |
| 294 | |
| 295 | qcom,leds@de00 { |
| 296 | status = "disabled"; |
| 297 | }; |
| 298 | |
| 299 | qcom,leds@df00 { |
| 300 | status = "disabled"; |
| 301 | }; |
| 302 | |
| 303 | qcom,leds@e000 { |
| 304 | status = "disabled"; |
| 305 | }; |
| 306 | |
| 307 | qcom,leds@e100 { |
| 308 | status = "disabled"; |
| 309 | }; |
| 310 | }; |
| 311 | }; |
| 312 | |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 313 | &sdcc1 { |
Venkat Gopalakrishnan | d446a12 | 2012-11-05 14:10:44 -0800 | [diff] [blame] | 314 | status = "disabled"; |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 315 | }; |
| 316 | |
| 317 | &sdcc2 { |
| 318 | #address-cells = <0>; |
| 319 | interrupt-parent = <&sdcc2>; |
| 320 | interrupts = <0 1 2>; |
| 321 | #interrupt-cells = <1>; |
| 322 | interrupt-map-mask = <0xffffffff>; |
| 323 | interrupt-map = <0 &intc 0 125 0 |
| 324 | 1 &intc 0 220 0 |
| 325 | 2 &msmgpio 62 0x3>; |
| 326 | interrupt-names = "core_irq", "bam_irq", "status_irq"; |
| 327 | cd-gpios = <&msmgpio 62 0x1>; |
Venkat Gopalakrishnan | d446a12 | 2012-11-05 14:10:44 -0800 | [diff] [blame] | 328 | status = "disabled"; |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 329 | }; |
| 330 | |
Venkat Gopalakrishnan | 9855edd | 2012-09-17 15:05:13 -0700 | [diff] [blame] | 331 | &sdhc_1 { |
| 332 | vdd-supply = <&pm8941_l20>; |
| 333 | vdd-io-supply = <&pm8941_s3>; |
| 334 | |
Sahitya Tummala | d0fc2dd | 2013-03-27 10:34:35 +0530 | [diff] [blame] | 335 | qcom,vdd-always-on; |
| 336 | qcom,vdd-lpm-sup; |
Venkat Gopalakrishnan | 9855edd | 2012-09-17 15:05:13 -0700 | [diff] [blame] | 337 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 338 | qcom,vdd-current-level = <800 500000>; |
| 339 | |
| 340 | qcom,vdd-io-always-on; |
| 341 | qcom,vdd-io-voltage-level = <1800000 1800000>; |
| 342 | qcom,vdd-io-current-level = <250 154000>; |
| 343 | |
| 344 | qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 345 | 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] | 346 | qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */ |
Venkat Gopalakrishnan | 9855edd | 2012-09-17 15:05:13 -0700 | [diff] [blame] | 347 | qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */ |
| 348 | |
| 349 | qcom,nonremovable; |
Venkat Gopalakrishnan | d446a12 | 2012-11-05 14:10:44 -0800 | [diff] [blame] | 350 | status = "ok"; |
Venkat Gopalakrishnan | 9855edd | 2012-09-17 15:05:13 -0700 | [diff] [blame] | 351 | }; |
| 352 | |
| 353 | &sdhc_2 { |
Sahitya Tummala | 6b152f8 | 2013-03-12 15:02:12 +0530 | [diff] [blame] | 354 | #address-cells = <0>; |
| 355 | interrupt-parent = <&sdhc_2>; |
| 356 | interrupts = <0 1 2>; |
| 357 | #interrupt-cells = <1>; |
| 358 | interrupt-map-mask = <0xffffffff>; |
| 359 | interrupt-map = <0 &intc 0 125 0 |
| 360 | 1 &intc 0 221 0 |
| 361 | 2 &msmgpio 62 0x3>; |
| 362 | interrupt-names = "hc_irq", "pwr_irq", "status_irq"; |
| 363 | cd-gpios = <&msmgpio 62 0x1>; |
| 364 | |
Venkat Gopalakrishnan | 9855edd | 2012-09-17 15:05:13 -0700 | [diff] [blame] | 365 | vdd-supply = <&pm8941_l21>; |
| 366 | vdd-io-supply = <&pm8941_l13>; |
| 367 | |
| 368 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 369 | qcom,vdd-current-level = <9000 800000>; |
| 370 | |
Venkat Gopalakrishnan | 9855edd | 2012-09-17 15:05:13 -0700 | [diff] [blame] | 371 | qcom,vdd-io-voltage-level = <1800000 2950000>; |
| 372 | qcom,vdd-io-current-level = <6 22000>; |
| 373 | |
| 374 | qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 375 | 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] | 376 | qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */ |
Venkat Gopalakrishnan | 9855edd | 2012-09-17 15:05:13 -0700 | [diff] [blame] | 377 | qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */ |
Venkat Gopalakrishnan | d446a12 | 2012-11-05 14:10:44 -0800 | [diff] [blame] | 378 | status = "ok"; |
Venkat Gopalakrishnan | 9855edd | 2012-09-17 15:05:13 -0700 | [diff] [blame] | 379 | }; |
| 380 | |
Krishna Konda | 6c5d0f4 | 2013-04-12 16:44:26 -0700 | [diff] [blame] | 381 | /* Drive strength recommendations for clock line from hardware team is 10 mA. |
| 382 | * But since the driver has been been using the below values from the start |
| 383 | * without any problems, continue to use those. |
| 384 | */ |
| 385 | &sdcc1 { |
| 386 | qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */ |
| 387 | }; |
| 388 | |
| 389 | &sdcc2 { |
| 390 | qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */ |
| 391 | }; |
| 392 | |
| 393 | &sdhc_1 { |
| 394 | qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */ |
| 395 | }; |
| 396 | |
| 397 | &sdhc_2 { |
| 398 | qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */ |
| 399 | }; |
| 400 | |
Jack Pham | 43ac427 | 2012-12-05 18:02:19 -0800 | [diff] [blame] | 401 | &usb3 { |
| 402 | qcom,otg-capability; |
| 403 | }; |
| 404 | |
Xiaozhe Shi | 7447fe7 | 2012-12-21 09:53:32 -0800 | [diff] [blame] | 405 | &pm8941_bms { |
| 406 | status = "ok"; |
| 407 | }; |
| 408 | |
Jack Pham | 9f9faa9 | 2012-12-01 20:13:31 -0800 | [diff] [blame] | 409 | &pm8941_chg { |
| 410 | status = "ok"; |
David Keitel | a2a6ff8 | 2013-04-09 16:52:54 -0700 | [diff] [blame] | 411 | qcom,charging-disabled; |
Jack Pham | 9f9faa9 | 2012-12-01 20:13:31 -0800 | [diff] [blame] | 412 | |
David Keitel | e89d478 | 2013-03-27 11:29:59 -0700 | [diff] [blame] | 413 | qcom,chgr@1000 { |
Jack Pham | 9f9faa9 | 2012-12-01 20:13:31 -0800 | [diff] [blame] | 414 | status = "ok"; |
| 415 | }; |
| 416 | |
David Keitel | e89d478 | 2013-03-27 11:29:59 -0700 | [diff] [blame] | 417 | qcom,buck@1100 { |
Jack Pham | 9f9faa9 | 2012-12-01 20:13:31 -0800 | [diff] [blame] | 418 | status = "ok"; |
| 419 | }; |
| 420 | |
David Keitel | e89d478 | 2013-03-27 11:29:59 -0700 | [diff] [blame] | 421 | qcom,bat-if@1200 { |
Jack Pham | 9f9faa9 | 2012-12-01 20:13:31 -0800 | [diff] [blame] | 422 | status = "ok"; |
| 423 | }; |
| 424 | |
David Keitel | e89d478 | 2013-03-27 11:29:59 -0700 | [diff] [blame] | 425 | qcom,usb-chgpth@1300 { |
Jack Pham | 9f9faa9 | 2012-12-01 20:13:31 -0800 | [diff] [blame] | 426 | status = "ok"; |
| 427 | }; |
| 428 | |
David Keitel | e89d478 | 2013-03-27 11:29:59 -0700 | [diff] [blame] | 429 | qcom,dc-chgpth@1400 { |
Jack Pham | 9f9faa9 | 2012-12-01 20:13:31 -0800 | [diff] [blame] | 430 | status = "ok"; |
| 431 | }; |
| 432 | |
David Keitel | e89d478 | 2013-03-27 11:29:59 -0700 | [diff] [blame] | 433 | qcom,boost@1500 { |
Jack Pham | 9f9faa9 | 2012-12-01 20:13:31 -0800 | [diff] [blame] | 434 | status = "ok"; |
| 435 | }; |
| 436 | |
| 437 | qcom,chg-misc@1600 { |
| 438 | status = "ok"; |
| 439 | }; |
| 440 | }; |
| 441 | |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 442 | &pm8941_gpios { |
| 443 | gpio@c000 { /* GPIO 1 */ |
| 444 | }; |
| 445 | |
| 446 | gpio@c100 { /* GPIO 2 */ |
| 447 | }; |
| 448 | |
| 449 | gpio@c200 { /* GPIO 3 */ |
| 450 | qcom,mode = <0>; |
| 451 | qcom,pull = <0>; |
| 452 | qcom,vin-sel = <2>; |
Michael Bohan | d734fb2 | 2012-10-30 14:19:22 -0700 | [diff] [blame] | 453 | qcom,src-sel = <0>; |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 454 | }; |
| 455 | |
| 456 | gpio@c300 { /* GPIO 4 */ |
| 457 | qcom,mode = <0>; |
| 458 | qcom,pull = <0>; |
| 459 | qcom,vin-sel = <2>; |
Michael Bohan | d734fb2 | 2012-10-30 14:19:22 -0700 | [diff] [blame] | 460 | qcom,src-sel = <0>; |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 461 | }; |
| 462 | |
| 463 | gpio@c400 { /* GPIO 5 */ |
| 464 | qcom,mode = <0>; |
| 465 | qcom,pull = <0>; |
| 466 | qcom,vin-sel = <2>; |
Michael Bohan | d734fb2 | 2012-10-30 14:19:22 -0700 | [diff] [blame] | 467 | qcom,src-sel = <0>; |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 468 | }; |
| 469 | |
| 470 | gpio@c500 { /* GPIO 6 */ |
| 471 | }; |
| 472 | |
| 473 | gpio@c600 { /* GPIO 7 */ |
| 474 | }; |
| 475 | |
| 476 | gpio@c700 { /* GPIO 8 */ |
| 477 | }; |
| 478 | |
| 479 | gpio@c800 { /* GPIO 9 */ |
| 480 | }; |
| 481 | |
| 482 | gpio@c900 { /* GPIO 10 */ |
| 483 | }; |
| 484 | |
| 485 | gpio@ca00 { /* GPIO 11 */ |
| 486 | }; |
| 487 | |
| 488 | gpio@cb00 { /* GPIO 12 */ |
Manoj Rao | 167072b | 2012-10-29 12:48:29 -0700 | [diff] [blame] | 489 | qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */ |
| 490 | qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */ |
| 491 | qcom,pull = <5>; /* QPNP_PIN_PULL_NO */ |
| 492 | qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */ |
| 493 | qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */ |
Manoj Rao | 9006780 | 2013-01-18 14:57:25 -0800 | [diff] [blame] | 494 | qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */ |
Manoj Rao | 167072b | 2012-10-29 12:48:29 -0700 | [diff] [blame] | 495 | qcom,master-en = <1>; |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 496 | }; |
| 497 | |
| 498 | gpio@cc00 { /* GPIO 13 */ |
| 499 | }; |
| 500 | |
| 501 | gpio@cd00 { /* GPIO 14 */ |
| 502 | }; |
| 503 | |
| 504 | gpio@ce00 { /* GPIO 15 */ |
| 505 | qcom,mode = <1>; |
| 506 | qcom,output-type = <0>; |
| 507 | qcom,pull = <5>; |
| 508 | qcom,vin-sel = <2>; |
Kiran Kandi | 1a35a22 | 2013-05-02 16:53:53 -0700 | [diff] [blame] | 509 | qcom,out-strength = <1>; |
Michael Bohan | d734fb2 | 2012-10-30 14:19:22 -0700 | [diff] [blame] | 510 | qcom,src-sel = <2>; |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 511 | qcom,master-en = <1>; |
| 512 | }; |
| 513 | |
| 514 | gpio@cf00 { /* GPIO 16 */ |
Amy Maloche | 527acc4 | 2012-12-07 18:40:54 -0800 | [diff] [blame] | 515 | qcom,mode = <1>; |
| 516 | qcom,output-type = <0>; |
| 517 | qcom,pull = <5>; |
| 518 | qcom,vin-sel = <2>; |
| 519 | qcom,out-strength = <3>; |
| 520 | qcom,src-sel = <2>; |
| 521 | qcom,master-en = <1>; |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 522 | }; |
| 523 | |
| 524 | gpio@d000 { /* GPIO 17 */ |
| 525 | }; |
| 526 | |
| 527 | gpio@d100 { /* GPIO 18 */ |
| 528 | }; |
| 529 | |
| 530 | gpio@d200 { /* GPIO 19 */ |
| 531 | qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */ |
| 532 | qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */ |
| 533 | qcom,pull = <5>; /* QPNP_PIN_PULL_NO */ |
| 534 | qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */ |
| 535 | qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */ |
Michael Bohan | d734fb2 | 2012-10-30 14:19:22 -0700 | [diff] [blame] | 536 | qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */ |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 537 | qcom,master-en = <1>; |
| 538 | }; |
| 539 | |
| 540 | gpio@d300 { /* GPIO 20 */ |
| 541 | }; |
| 542 | |
| 543 | gpio@d400 { /* GPIO 21 */ |
| 544 | }; |
| 545 | |
| 546 | gpio@d500 { /* GPIO 22 */ |
| 547 | }; |
| 548 | |
| 549 | gpio@d600 { /* GPIO 23 */ |
| 550 | }; |
| 551 | |
| 552 | gpio@d700 { /* GPIO 24 */ |
| 553 | }; |
| 554 | |
| 555 | gpio@d800 { /* GPIO 25 */ |
| 556 | }; |
| 557 | |
| 558 | gpio@d900 { /* GPIO 26 */ |
| 559 | }; |
| 560 | |
| 561 | gpio@da00 { /* GPIO 27 */ |
| 562 | }; |
| 563 | |
| 564 | gpio@db00 { /* GPIO 28 */ |
| 565 | }; |
| 566 | |
| 567 | gpio@dc00 { /* GPIO 29 */ |
| 568 | qcom,pull = <0>; /* set to default pull */ |
| 569 | qcom,master-en = <1>; |
| 570 | qcom,vin-sel = <2>; /* select 1.8 V source */ |
| 571 | }; |
| 572 | |
| 573 | gpio@dd00 { /* GPIO 30 */ |
| 574 | }; |
| 575 | |
| 576 | gpio@de00 { /* GPIO 31 */ |
| 577 | }; |
| 578 | |
| 579 | gpio@df00 { /* GPIO 32 */ |
| 580 | }; |
| 581 | |
| 582 | gpio@e000 { /* GPIO 33 */ |
| 583 | }; |
| 584 | |
| 585 | gpio@e100 { /* GPIO 34 */ |
| 586 | }; |
| 587 | |
| 588 | gpio@e200 { /* GPIO 35 */ |
| 589 | }; |
| 590 | |
| 591 | gpio@e300 { /* GPIO 36 */ |
| 592 | }; |
| 593 | }; |
| 594 | |
| 595 | &pm8941_mpps { |
| 596 | |
| 597 | mpp@a000 { /* MPP 1 */ |
Michael Bohan | bea1f58 | 2013-03-21 17:29:49 -0700 | [diff] [blame] | 598 | status = "disabled"; |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 599 | }; |
| 600 | |
| 601 | mpp@a100 { /* MPP 2 */ |
| 602 | }; |
| 603 | |
| 604 | mpp@a200 { /* MPP 3 */ |
| 605 | }; |
| 606 | |
| 607 | mpp@a300 { /* MPP 4 */ |
| 608 | }; |
| 609 | |
| 610 | mpp@a400 { /* MPP 5 */ |
| 611 | /* SPI_ETH config */ |
| 612 | qcom,mode = <1>; /* DIG_OUT */ |
| 613 | qcom,output-type = <0>; /* CMOS */ |
| 614 | qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */ |
Michael Bohan | d734fb2 | 2012-10-30 14:19:22 -0700 | [diff] [blame] | 615 | qcom,src-sel = <0>; /* CONSTANT */ |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 616 | qcom,master-en = <1>; /* ENABLE MPP */ |
| 617 | }; |
| 618 | |
| 619 | mpp@a500 { /* MPP 6 */ |
| 620 | /* SPI_ETH_RST config */ |
| 621 | qcom,mode = <1>; /* DIG_OUT */ |
| 622 | qcom,output-type = <0>; /* CMOS */ |
| 623 | qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */ |
Michael Bohan | d734fb2 | 2012-10-30 14:19:22 -0700 | [diff] [blame] | 624 | qcom,src-sel = <0>; /* CONSTANT */ |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 625 | qcom,master-en = <1>; /* ENABLE MPP */ |
| 626 | }; |
| 627 | |
| 628 | mpp@a600 { /* MPP 7 */ |
| 629 | }; |
| 630 | |
| 631 | mpp@a700 { /* MPP 8 */ |
Manoj Rao | 167072b | 2012-10-29 12:48:29 -0700 | [diff] [blame] | 632 | qcom,mode = <1>; /* DIG_OUT */ |
| 633 | qcom,output-type = <0>; /* CMOS */ |
Manoj Rao | 9006780 | 2013-01-18 14:57:25 -0800 | [diff] [blame] | 634 | qcom,pull = <0>; |
Manoj Rao | 167072b | 2012-10-29 12:48:29 -0700 | [diff] [blame] | 635 | qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */ |
Manoj Rao | 9006780 | 2013-01-18 14:57:25 -0800 | [diff] [blame] | 636 | qcom,src-sel = <0>; /* CONSTANT */ |
Manoj Rao | 167072b | 2012-10-29 12:48:29 -0700 | [diff] [blame] | 637 | qcom,master-en = <1>; /* ENABLE MPP */ |
Stepan Moskovchenko | 7731cd1 | 2012-10-23 14:44:15 -0700 | [diff] [blame] | 638 | }; |
| 639 | }; |
| 640 | |
| 641 | &pm8841_mpps { |
| 642 | |
| 643 | mpp@a000 { /* MPP 1 */ |
| 644 | }; |
| 645 | |
| 646 | mpp@a100 { /* MPP 2 */ |
| 647 | }; |
| 648 | |
| 649 | mpp@a200 { /* MPP 3 */ |
| 650 | }; |
| 651 | |
| 652 | mpp@a300 { /* MPP 4 */ |
| 653 | }; |
| 654 | }; |
Siddartha Mohanadoss | e9f24de | 2012-11-02 17:13:18 -0700 | [diff] [blame] | 655 | |
| 656 | &spi_epm { |
| 657 | epm-adc@0 { |
| 658 | compatible = "cy,epm-adc-cy8c5568lti-114"; |
| 659 | reg = <0>; |
| 660 | interrupt-parent = <&msmgpio>; |
| 661 | spi-max-frequency = <960000>; |
| 662 | qcom,channels = <31>; |
| 663 | qcom,gain = <100 100 100 50 100 100 1 100 1 50 |
| 664 | 1 100 1 100 50 50 50 50 50 50 |
| 665 | 100 50 100 50 50 50 50 50 50 50 |
| 666 | 50>; |
| 667 | qcom,rsense = <2 2 2 200 20 2 1 2 1 30 |
| 668 | 1 10 1 30 50 30 500 30 100 30 |
| 669 | 100 500 20 200 1000 20 1000 1000 70 200 |
| 670 | 50>; |
| 671 | qcom,channel-type = <0x1540>; |
| 672 | }; |
| 673 | }; |