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