Mohan Pallaka | a702446 | 2014-01-27 16:57:13 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -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 | |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 13 | /include/ "msm8226-camera-sensor-mtp.dtsi" |
| 14 | |
| 15 | &soc { |
| 16 | serial@f991f000 { |
| 17 | status = "ok"; |
| 18 | }; |
| 19 | |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 20 | i2c@f9927000 { /* BLSP1 QUP5 */ |
| 21 | synaptics@20 { |
| 22 | compatible = "synaptics,rmi4"; |
| 23 | reg = <0x20>; |
| 24 | interrupt-parent = <&msmgpio>; |
| 25 | interrupts = <17 0x2008>; |
| 26 | vdd-supply = <&pm8226_l19>; |
| 27 | vcc_i2c-supply = <&pm8226_lvs1>; |
| 28 | synaptics,reset-gpio = <&msmgpio 16 0x00>; |
| 29 | synaptics,irq-gpio = <&msmgpio 17 0x2008>; |
Amy Maloche | f4a3fdb | 2013-11-04 15:37:19 -0800 | [diff] [blame] | 30 | synaptics,display-coords = <0 0 1079 1919>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 31 | synaptics,i2c-pull-up; |
Amy Maloche | 80c1557 | 2013-09-19 15:15:23 -0700 | [diff] [blame] | 32 | synaptics,power-down; |
| 33 | synaptics,disable-gpios; |
Mohan Pallaka | a702446 | 2014-01-27 16:57:13 -0800 | [diff] [blame] | 34 | synaptics,fw-image-name = "PR1469074-s3408bt_001F010D.img"; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 35 | }; |
| 36 | }; |
| 37 | |
Amy Maloche | f4a3fdb | 2013-11-04 15:37:19 -0800 | [diff] [blame] | 38 | gen-vkeys { |
| 39 | compatible = "qcom,gen-vkeys"; |
| 40 | label = "synaptics_rmi4_i2c"; |
| 41 | qcom,disp-maxx = <1079>; |
| 42 | qcom,disp-maxy = <1919>; |
| 43 | qcom,panel-maxx = <1079>; |
| 44 | qcom,panel-maxy = <2084>; |
| 45 | qcom,key-codes = <158 139 102 217>; |
| 46 | }; |
| 47 | |
Madan Mohan Koyyalamudi | 2d7c6f5 | 2013-06-19 17:49:45 -0700 | [diff] [blame] | 48 | i2c@f9925000 { /* BLSP1 QUP3 */ |
| 49 | nfc-nci@0e { |
| 50 | compatible = "qcom,nfc-nci"; |
| 51 | reg = <0x0e>; |
| 52 | qcom,irq-gpio = <&msmgpio 21 0x00>; |
| 53 | qcom,dis-gpio = <&msmgpio 20 0x00>; |
Bansidhar Gopalachari | be0e4d9 | 2013-09-19 19:30:36 +0100 | [diff] [blame] | 54 | qcom,clk-src = "BBCLK2"; |
| 55 | qcom,clk-en-gpio = <&msmgpio 0 0x00>; |
Madan Mohan Koyyalamudi | 2d7c6f5 | 2013-06-19 17:49:45 -0700 | [diff] [blame] | 56 | interrupt-parent = <&msmgpio>; |
| 57 | interrupts = <21 0>; |
| 58 | qcom,clk-gpio = <&pm8226_gpios 3 0>; |
| 59 | }; |
| 60 | }; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 61 | gpio_keys { |
| 62 | compatible = "gpio-keys"; |
| 63 | input-name = "gpio-keys"; |
| 64 | |
| 65 | camera_focus { |
| 66 | label = "camera_focus"; |
| 67 | gpios = <&msmgpio 108 0x1>; |
| 68 | linux,input-type = <1>; |
| 69 | linux,code = <0x210>; |
| 70 | gpio-key,wakeup; |
| 71 | debounce-interval = <15>; |
| 72 | }; |
| 73 | |
| 74 | camera_snapshot { |
| 75 | label = "camera_snapshot"; |
| 76 | gpios = <&msmgpio 107 0x1>; |
| 77 | linux,input-type = <1>; |
| 78 | linux,code = <0x2fe>; |
| 79 | gpio-key,wakeup; |
| 80 | debounce-interval = <15>; |
| 81 | }; |
| 82 | |
| 83 | vol_up { |
| 84 | label = "volume_up"; |
| 85 | gpios = <&msmgpio 106 0x1>; |
| 86 | linux,input-type = <1>; |
| 87 | linux,code = <115>; |
| 88 | gpio-key,wakeup; |
| 89 | debounce-interval = <15>; |
| 90 | }; |
| 91 | }; |
| 92 | |
| 93 | spi@f9923000 { |
| 94 | ethernet-switch@3 { |
| 95 | compatible = "micrel,ks8851"; |
| 96 | reg = <3>; |
| 97 | interrupt-parent = <&msmgpio>; |
fangpan | f6f9607 | 2013-07-17 16:10:34 -0700 | [diff] [blame] | 98 | interrupts = <115 0x8>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 99 | spi-max-frequency = <4800000>; |
| 100 | rst-gpio = <&msmgpio 114 0>; |
| 101 | vdd-io-supply = <&pm8226_lvs1>; |
| 102 | vdd-phy-supply = <&pm8226_lvs1>; |
| 103 | }; |
| 104 | }; |
| 105 | |
| 106 | sound { |
| 107 | qcom,audio-routing = |
| 108 | "RX_BIAS", "MCLK", |
| 109 | "LDO_H", "MCLK", |
| 110 | "SPK_OUT", "MCLK", |
| 111 | "SPK_OUT", "EXT_VDD_SPKR", |
| 112 | "AMIC1", "MIC BIAS1 External", |
| 113 | "MIC BIAS1 External", "Handset Mic", |
| 114 | "AMIC2", "MIC BIAS2 External", |
| 115 | "MIC BIAS2 External", "Headset Mic", |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 116 | "AMIC4", "MIC BIAS2 External", |
Phani Kumar Uppalapati | c2f9c22 | 2013-05-09 19:17:58 -0700 | [diff] [blame] | 117 | "MIC BIAS2 External", "ANCRight Headset Mic", |
| 118 | "AMIC5", "MIC BIAS2 External", |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 119 | "MIC BIAS2 External", "ANCLeft Headset Mic"; |
| 120 | |
| 121 | qcom,cdc-mclk-gpios = <&pm8226_gpios 1 0>; |
| 122 | qcom,cdc-vdd-spkr-gpios = <&pm8226_gpios 2 0>; |
Laxminath Kasam | be661bc | 2014-02-24 19:19:54 +0530 | [diff] [blame] | 123 | qcom,cdc-us-euro-gpios = <&msmgpio 69 0>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 124 | }; |
Phani Kumar Uppalapati | c2f9c22 | 2013-05-09 19:17:58 -0700 | [diff] [blame] | 125 | |
| 126 | sound-9302 { |
| 127 | qcom,audio-routing = |
| 128 | "RX_BIAS", "MCLK", |
| 129 | "LDO_H", "MCLK", |
| 130 | "SPK_OUT", "MCLK", |
| 131 | "SPK_OUT", "EXT_VDD_SPKR", |
| 132 | "AMIC1", "MIC BIAS1 Internal1", |
| 133 | "MIC BIAS1 Internal1", "Handset Mic", |
| 134 | "AMIC2", "MIC BIAS2 External", |
| 135 | "MIC BIAS2 External", "Headset Mic", |
| 136 | "AMIC3", "MIC BIAS1 External", |
| 137 | "MIC BIAS1 External", "Handset Mic"; |
| 138 | |
| 139 | qcom,cdc-mclk-gpios = <&pm8226_gpios 1 0>; |
| 140 | qcom,cdc-vdd-spkr-gpios = <&pm8226_gpios 2 0>; |
Laxminath Kasam | be661bc | 2014-02-24 19:19:54 +0530 | [diff] [blame] | 141 | qcom,cdc-us-euro-gpios = <&msmgpio 69 0>; |
Phani Kumar Uppalapati | c2f9c22 | 2013-05-09 19:17:58 -0700 | [diff] [blame] | 142 | }; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 143 | }; |
| 144 | |
Manu Gautam | 41334e9 | 2013-06-04 17:49:25 +0530 | [diff] [blame] | 145 | &usb_otg { |
| 146 | #address-cells = <0>; |
| 147 | interrupt-parent = <&usb_otg>; |
| 148 | interrupts = <0 1 2>; |
| 149 | #interrupt-cells = <1>; |
| 150 | interrupt-map-mask = <0xffffffff>; |
| 151 | interrupt-map = <0 &intc 0 134 0 |
| 152 | 1 &intc 0 140 0 |
| 153 | 2 &spmi_bus 0x0 0x0 0x9 0x0>; |
| 154 | interrupt-names = "core_irq", "async_irq", "pmic_id_irq"; |
| 155 | |
| 156 | qcom,hsusb-otg-mode = <3>; |
David Keitel | 3bdfa5d | 2013-07-10 17:36:07 -0700 | [diff] [blame] | 157 | vbus_otg-supply = <&pm8226_chg_otg>; |
Manu Gautam | 41334e9 | 2013-06-04 17:49:25 +0530 | [diff] [blame] | 158 | }; |
| 159 | |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 160 | &sdcc1 { |
| 161 | vdd-supply = <&pm8226_l17>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 162 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 163 | qcom,vdd-current-level = <800 500000>; |
| 164 | |
| 165 | vdd-io-supply = <&pm8226_l6>; |
| 166 | qcom,vdd-io-always-on; |
| 167 | qcom,vdd-io-voltage-level = <1800000 1800000>; |
| 168 | qcom,vdd-io-current-level = <250 154000>; |
| 169 | |
| 170 | qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 171 | qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 172 | qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */ |
| 173 | qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */ |
| 174 | |
| 175 | qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>; |
| 176 | qcom,sup-voltages = <2950 2950>; |
| 177 | |
| 178 | qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v"; |
| 179 | qcom,nonremovable; |
| 180 | |
| 181 | status = "disabled"; |
| 182 | }; |
| 183 | |
| 184 | &sdhc_1 { |
| 185 | vdd-supply = <&pm8226_l17>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 186 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 187 | qcom,vdd-current-level = <800 500000>; |
| 188 | |
| 189 | vdd-io-supply = <&pm8226_l6>; |
| 190 | qcom,vdd-io-always-on; |
| 191 | qcom,vdd-io-voltage-level = <1800000 1800000>; |
| 192 | qcom,vdd-io-current-level = <250 154000>; |
| 193 | |
| 194 | qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 195 | qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 196 | qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */ |
| 197 | qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */ |
| 198 | |
| 199 | qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>; |
| 200 | qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v"; |
| 201 | qcom,nonremovable; |
| 202 | |
| 203 | status = "ok"; |
| 204 | }; |
| 205 | |
| 206 | &sdcc2 { |
| 207 | vdd-supply = <&pm8226_l18>; |
| 208 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 209 | qcom,vdd-current-level = <9000 800000>; |
| 210 | |
| 211 | vdd-io-supply = <&pm8226_l21>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 212 | qcom,vdd-io-voltage-level = <1800000 2950000>; |
| 213 | qcom,vdd-io-current-level = <6 22000>; |
| 214 | |
| 215 | qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 216 | qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 217 | qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */ |
| 218 | qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */ |
| 219 | |
| 220 | qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>; |
| 221 | qcom,sup-voltages = <2950 2950>; |
| 222 | |
| 223 | qcom,xpc; |
| 224 | qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104"; |
| 225 | qcom,current-limit = <600>; #address-cells = <0>; interrupt-parent = <&sdcc2>; |
| 226 | interrupts = <0 1 2>; |
| 227 | #interrupt-cells = <1>; |
| 228 | interrupt-map-mask = <0xffffffff>; |
| 229 | interrupt-map = <0 &intc 0 125 0 |
| 230 | 1 &intc 0 220 0 |
| 231 | 2 &msmgpio 38 0x3>; |
| 232 | interrupt-names = "core_irq", "bam_irq", "status_irq"; |
| 233 | cd-gpios = <&msmgpio 38 0x1>; |
| 234 | |
| 235 | status = "disabled"; |
| 236 | }; |
| 237 | |
| 238 | &sdhc_2 { |
| 239 | vdd-supply = <&pm8226_l18>; |
| 240 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 241 | qcom,vdd-current-level = <9000 800000>; |
| 242 | |
| 243 | vdd-io-supply = <&pm8226_l21>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 244 | qcom,vdd-io-voltage-level = <1800000 2950000>; |
| 245 | qcom,vdd-io-current-level = <6 22000>; |
| 246 | |
| 247 | qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 248 | qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */ |
| 249 | qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */ |
| 250 | qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */ |
| 251 | |
| 252 | qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>; |
| 253 | |
| 254 | #address-cells = <0>; |
| 255 | interrupt-parent = <&sdhc_2>; |
| 256 | interrupts = <0 1 2>; |
| 257 | #interrupt-cells = <1>; |
| 258 | interrupt-map-mask = <0xffffffff>; |
| 259 | interrupt-map = <0 &intc 0 125 0 |
| 260 | 1 &intc 0 221 0 |
| 261 | 2 &msmgpio 38 0x3>; |
| 262 | interrupt-names = "hc_irq", "pwr_irq", "status_irq"; |
| 263 | cd-gpios = <&msmgpio 38 0x1>; |
| 264 | |
| 265 | status = "ok"; |
| 266 | }; |
| 267 | |
| 268 | &spmi_bus { |
| 269 | qcom,pm8226@0 { |
| 270 | qcom,leds@a100 { |
| 271 | status = "okay"; |
| 272 | qcom,led_mpp_2 { |
| 273 | label = "mpp"; |
| 274 | linux,name = "button-backlight"; |
| 275 | linux,default-trigger = "none"; |
| 276 | qcom,default-state = "off"; |
| 277 | qcom,max-current = <40>; |
| 278 | qcom,current-setting = <5>; |
| 279 | qcom,id = <6>; |
| 280 | qcom,mode = "manual"; |
| 281 | qcom,source-sel = <1>; |
| 282 | qcom,mode-ctrl = <0x60>; |
| 283 | }; |
| 284 | }; |
| 285 | |
| 286 | qcom,leds@a300 { |
| 287 | status = "okay"; |
| 288 | qcom,led_mpp_4 { |
| 289 | label = "mpp"; |
| 290 | linux,name = "green"; |
Shantanu Jain | 997a42a | 2013-08-22 16:55:59 +0530 | [diff] [blame] | 291 | linux,default-trigger = "battery-full"; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 292 | qcom,default-state = "off"; |
| 293 | qcom,max-current = <40>; |
| 294 | qcom,current-setting = <5>; |
| 295 | qcom,id = <6>; |
Amy Maloche | ba8aa74 | 2013-06-05 11:08:40 -0700 | [diff] [blame] | 296 | qcom,mode = "pwm"; |
| 297 | qcom,pwm-us = <1000>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 298 | qcom,source-sel = <8>; |
| 299 | qcom,mode-ctrl = <0x60>; |
| 300 | qcom,pwm-channel = <0>; |
| 301 | qcom,start-idx = <1>; |
Amy Maloche | d70ffba | 2013-06-25 14:04:29 -0700 | [diff] [blame] | 302 | qcom,ramp-step-ms = <120>; |
| 303 | qcom,duty-pcts = [00 00 00 00 00 |
| 304 | 00 00 00 00 00 |
| 305 | 50 00 00 00 00 |
| 306 | 00 00 00 00 00 |
| 307 | 00]; |
Amy Maloche | ba8aa74 | 2013-06-05 11:08:40 -0700 | [diff] [blame] | 308 | qcom,use-blink; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 309 | }; |
| 310 | }; |
| 311 | |
| 312 | qcom,leds@a500 { |
| 313 | status = "okay"; |
| 314 | qcom,led_mpp_6 { |
| 315 | label = "mpp"; |
| 316 | linux,name = "red"; |
Shantanu Jain | 997a42a | 2013-08-22 16:55:59 +0530 | [diff] [blame] | 317 | linux,default-trigger = "battery-charging"; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 318 | qcom,default-state = "off"; |
| 319 | qcom,max-current = <40>; |
| 320 | qcom,current-setting = <5>; |
| 321 | qcom,id = <6>; |
Amy Maloche | ba8aa74 | 2013-06-05 11:08:40 -0700 | [diff] [blame] | 322 | qcom,mode = "pwm"; |
| 323 | qcom,pwm-us = <1000>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 324 | qcom,mode-ctrl = <0x60>; |
| 325 | qcom,source-sel = <10>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 326 | qcom,pwm-channel = <5>; |
| 327 | qcom,start-idx = <1>; |
Amy Maloche | d70ffba | 2013-06-25 14:04:29 -0700 | [diff] [blame] | 328 | qcom,ramp-step-ms = <120>; |
| 329 | qcom,duty-pcts = [00 00 00 00 00 |
| 330 | 00 00 00 00 00 |
| 331 | 50 00 00 00 00 |
| 332 | 00 00 00 00 00 |
| 333 | 00]; |
Amy Maloche | ba8aa74 | 2013-06-05 11:08:40 -0700 | [diff] [blame] | 334 | qcom,use-blink; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 335 | }; |
| 336 | }; |
| 337 | }; |
| 338 | |
| 339 | qcom,pm8226@1 { |
| 340 | qcom,leds@d300 { |
| 341 | status = "okay"; |
| 342 | }; |
| 343 | |
| 344 | qcom,leds@d800 { |
| 345 | status = "okay"; |
| 346 | qcom,wled_0 { |
| 347 | label = "wled"; |
| 348 | linux,name = "wled:backlight"; |
| 349 | linux,default-trigger = "bkl-trigger"; |
| 350 | qcom,cs-out-en; |
| 351 | qcom,op-fdbck = <1>; |
| 352 | qcom,default-state = "on"; |
Wu Fenglin | 2e57afc | 2013-06-05 18:07:13 +0800 | [diff] [blame] | 353 | qcom,max-current = <20>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 354 | qcom,ctrl-delay-us = <0>; |
| 355 | qcom,boost-curr-lim = <3>; |
| 356 | qcom,cp-sel = <0>; |
Amy Maloche | 9eccb4c | 2013-07-12 14:31:56 -0700 | [diff] [blame] | 357 | qcom,switch-freq = <11>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 358 | qcom,ovp-val = <0>; |
| 359 | qcom,num-strings = <1>; |
| 360 | qcom,id = <0>; |
| 361 | }; |
| 362 | }; |
Shantanu Jain | ab582d8 | 2013-08-22 17:00:27 +0530 | [diff] [blame] | 363 | |
| 364 | qcom,vibrator@c000 { |
| 365 | status = "okay"; |
| 366 | qcom,vib-timeout-ms = <15000>; |
| 367 | qcom,vib-vtg-level-mV = <3100>; |
| 368 | }; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 369 | }; |
| 370 | }; |
| 371 | |
| 372 | &pm8226_gpios { |
| 373 | gpio@c000 { /* GPIO 1 */ |
| 374 | /* XO_PMIC_CDC_MCLK enable for tapan codec */ |
| 375 | qcom,mode = <1>; /* Digital output */ |
| 376 | qcom,output-type = <0>; /* CMOS logic */ |
| 377 | qcom,pull = <5>; /* QPNP_PIN_PULL_NO*/ |
| 378 | qcom,vin-sel = <3>; /* QPNP_PIN_VIN3 */ |
| 379 | qcom,out-strength = <3>;/* QPNP_PIN_OUT_STRENGTH_HIGH */ |
| 380 | qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */ |
| 381 | qcom,master-en = <1>; /* Enable GPIO */ |
| 382 | }; |
| 383 | |
| 384 | gpio@c100 { /* GPIO 2 */ |
| 385 | qcom,mode = <1>; |
| 386 | qcom,output-type = <0>; |
| 387 | qcom,pull = <5>; |
| 388 | qcom,vin-sel = <3>; |
| 389 | qcom,out-strength = <3>; |
| 390 | qcom,src-sel = <2>; |
| 391 | qcom,master-en = <1>; |
| 392 | }; |
| 393 | |
| 394 | gpio@c200 { /* GPIO 3 */ |
Madan Mohan Koyyalamudi | 2d7c6f5 | 2013-06-19 17:49:45 -0700 | [diff] [blame] | 395 | qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */ |
| 396 | qcom,pull = <5>; /* QPNP_PIN_PULL_NO */ |
| 397 | qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */ |
| 398 | qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */ |
| 399 | qcom,master-en = <1>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 400 | }; |
| 401 | |
| 402 | gpio@c300 { /* GPIO 4 */ |
| 403 | }; |
| 404 | |
| 405 | gpio@c400 { /* GPIO 5 */ |
| 406 | }; |
| 407 | |
| 408 | gpio@c500 { /* GPIO 6 */ |
| 409 | }; |
| 410 | |
| 411 | gpio@c600 { /* GPIO 7 */ |
| 412 | }; |
| 413 | |
| 414 | gpio@c700 { /* GPIO 8 */ |
| 415 | }; |
| 416 | }; |
| 417 | |
| 418 | &pm8226_mpps { |
| 419 | mpp@a000 { /* MPP 1 */ |
| 420 | }; |
| 421 | |
| 422 | mpp@a100 { /* MPP 2 */ |
| 423 | }; |
| 424 | |
| 425 | mpp@a200 { /* MPP 3 */ |
| 426 | }; |
| 427 | |
| 428 | mpp@a300 { /* MPP 4 */ |
| 429 | }; |
| 430 | |
| 431 | mpp@a400 { /* MPP 5 */ |
| 432 | /* PA_THERM0 config */ |
| 433 | qcom,mode = <4>; /* AIN input */ |
| 434 | qcom,invert = <1>; /* Enable MPP */ |
| 435 | qcom,ain-route = <0>; /* AMUX 5 */ |
| 436 | qcom,master-en = <1>; |
| 437 | qcom,src-sel = <0>; /* Function constant */ |
| 438 | }; |
| 439 | |
| 440 | mpp@a500 { /* MPP 6 */ |
| 441 | }; |
| 442 | |
| 443 | mpp@a600 { /* MPP 7 */ |
| 444 | }; |
| 445 | |
| 446 | mpp@a700 { /* MPP 8 */ |
| 447 | /* PA_THERM1 config */ |
| 448 | qcom,mode = <4>; /* AIN input */ |
| 449 | qcom,invert = <1>; /* Enable MPP */ |
| 450 | qcom,ain-route = <3>; /* AMUX 8 */ |
| 451 | qcom,master-en = <1>; |
| 452 | qcom,src-sel = <0>; /* Function constant */ |
| 453 | }; |
| 454 | }; |
| 455 | |
| 456 | &pm8226_vadc { |
| 457 | chan@14 { |
| 458 | label = "pa_therm0"; |
| 459 | reg = <0x14>; |
| 460 | qcom,decimation = <0>; |
| 461 | qcom,pre-div-channel-scaling = <0>; |
| 462 | qcom,calibration-type = "ratiometric"; |
| 463 | qcom,scale-function = <2>; |
| 464 | qcom,hw-settle-time = <2>; |
| 465 | qcom,fast-avg-setup = <0>; |
| 466 | }; |
| 467 | |
| 468 | chan@17 { |
| 469 | label = "pa_therm1"; |
| 470 | reg = <0x17>; |
| 471 | qcom,decimation = <0>; |
| 472 | qcom,pre-div-channel-scaling = <0>; |
| 473 | qcom,calibration-type = "ratiometric"; |
| 474 | qcom,scale-function = <2>; |
| 475 | qcom,hw-settle-time = <2>; |
| 476 | qcom,fast-avg-setup = <0>; |
| 477 | }; |
| 478 | }; |
| 479 | |
Xiaozhe Shi | 98f08f3 | 2013-06-19 12:02:13 -0700 | [diff] [blame] | 480 | / { |
| 481 | mtp_batterydata: qcom,battery-data { |
| 482 | qcom,rpull-up-kohm = <100>; |
| 483 | qcom,vref-batt-therm = <1800000>; |
| 484 | |
| 485 | /include/ "batterydata-palladium.dtsi" |
| 486 | /include/ "batterydata-mtp-3000mah.dtsi" |
| 487 | }; |
| 488 | }; |
| 489 | |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 490 | &pm8226_bms { |
| 491 | status = "ok"; |
Syed Rameez Mustafa | 80ba367 | 2013-10-31 14:07:51 -0700 | [diff] [blame] | 492 | qcom,battery-data = <&mtp_batterydata>; |
Anirudh Ghayal | c11af95 | 2013-08-14 20:44:51 +0530 | [diff] [blame] | 493 | qcom,enable-fcc-learning; |
| 494 | qcom,min-fcc-learning-soc = <20>; |
| 495 | qcom,min-fcc-ocv-pc = <30>; |
| 496 | qcom,min-fcc-learning-samples = <5>; |
| 497 | qcom,fcc-resolution = <10>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 498 | }; |
| 499 | |
| 500 | &pm8226_chg { |
| 501 | qcom,charging-disabled; |
Xiaozhe Shi | 98f08f3 | 2013-06-19 12:02:13 -0700 | [diff] [blame] | 502 | qcom,battery-data = <&mtp_batterydata>; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 503 | }; |
| 504 | |
| 505 | &slim_msm { |
| 506 | tapan_codec { |
| 507 | qcom,cdc-micbias1-ext-cap; |
Syed Rameez Mustafa | 8f192fb | 2013-05-24 12:02:43 -0700 | [diff] [blame] | 508 | }; |
| 509 | }; |
Aravind Venkateswaran | fc02254 | 2013-11-04 14:37:13 -0800 | [diff] [blame] | 510 | |
| 511 | &mdss_mdp { |
| 512 | qcom,mdss-pref-prim-intf = "dsi"; |
| 513 | }; |
| 514 | |
| 515 | &mdss_dsi0 { |
| 516 | qcom,dsi-pref-prim-pan = <&dsi_jdi_1080_vid>; |
| 517 | qcom,platform-enable-gpio = <&msmgpio 109 0>; |
| 518 | }; |
| 519 | |
| 520 | &dsi_jdi_1080_vid { |
| 521 | qcom,cont-splash-enabled; |
| 522 | }; |