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