Priyanka Mathur | d61f67f | 2013-01-17 11:16:06 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. |
Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -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/ "skeleton.dtsi" |
| 14 | |
| 15 | / { |
| 16 | qcom,spm@f9009000 { |
| 17 | compatible = "qcom,spm-v2"; |
| 18 | #address-cells = <1>; |
| 19 | #size-cells = <1>; |
| 20 | reg = <0xf9009000 0x1000>; |
| 21 | qcom,core-id = <0>; |
| 22 | qcom,saw2-ver-reg = <0xfd0>; |
| 23 | qcom,saw2-cfg = <0x101>; |
| 24 | qcom,saw2-spm-dly= <0>; |
| 25 | qcom,saw2-spm-ctl = <0x1>; |
| 26 | qcom,saw2-spm-cmd-wfi = [04 03 04 0f]; |
| 27 | qcom,saw2-spm-cmd-spc = [34 04 44 14 24 54 03 54 44 14 04 24 |
| 28 | 3e 0f]; |
| 29 | qcom,saw2-spm-cmd-pc = [34 04 44 14 24 54 07 54 44 14 04 24 |
| 30 | 3e 0f]; |
| 31 | }; |
| 32 | |
| 33 | qcom,lpm-resources { |
| 34 | compatible = "qcom,lpm-resources"; |
| 35 | #address-cells = <1>; |
| 36 | #size-cells = <0>; |
| 37 | |
| 38 | qcom,lpm-resources@0 { |
| 39 | reg = <0x0>; |
| 40 | qcom,name = "vdd-dig"; |
| 41 | qcom,resource-type = <0>; |
| 42 | qcom,type = <0x616F646C>; /* "ldoa" */ |
| 43 | qcom,id = <0x0A>; |
| 44 | qcom,key = <0x6e726f63>; /* "corn" */ |
Mahesh Sivasubramanian | b76fb5e | 2012-11-05 14:40:09 -0700 | [diff] [blame] | 45 | qcom,init-value = <5>; /* Super Turbo */ |
Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -0700 | [diff] [blame] | 46 | }; |
| 47 | |
| 48 | qcom,lpm-resources@1 { |
| 49 | reg = <0x1>; |
| 50 | qcom,name = "vdd-mem"; |
| 51 | qcom,resource-type = <0>; |
| 52 | qcom,type = <0x616F646C>; /* "ldoa" */ |
| 53 | qcom,id = <0x0C>; |
| 54 | qcom,key = <0x7675>; /* "uv" */ |
Mahesh Sivasubramanian | b76fb5e | 2012-11-05 14:40:09 -0700 | [diff] [blame] | 55 | qcom,init-value = <1050000>; /* Super Turbo */ |
Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -0700 | [diff] [blame] | 56 | }; |
| 57 | |
| 58 | qcom,lpm-resources@2 { |
| 59 | reg = <0x2>; |
| 60 | qcom,name = "pxo"; |
| 61 | qcom,resource-type = <0>; |
| 62 | qcom,type = <0x306b6c63>; /* "clk0" */ |
| 63 | qcom,id = <0x00>; |
| 64 | qcom,key = <0x62616e45>; /* "Enab" */ |
Mahesh Sivasubramanian | b76fb5e | 2012-11-05 14:40:09 -0700 | [diff] [blame] | 65 | qcom,init-value = <1>; /* On */ |
Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -0700 | [diff] [blame] | 66 | }; |
| 67 | }; |
| 68 | |
| 69 | qcom,lpm-levels { |
| 70 | compatible = "qcom,lpm-levels"; |
| 71 | #address-cells = <1>; |
| 72 | #size-cells = <0>; |
| 73 | |
Priyanka Mathur | d61f67f | 2013-01-17 11:16:06 -0800 | [diff] [blame] | 74 | qcom,use-qtimer; |
| 75 | |
Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -0700 | [diff] [blame] | 76 | qcom,lpm-level@0 { |
| 77 | reg = <0x0>; |
| 78 | qcom,mode = <0>; /* MSM_PM_SLEEP_MODE_WAIT_FOR_INTERRUPT */ |
| 79 | qcom,xo = <1>; /* ON */ |
| 80 | qcom,l2 = <3>; /* ACTIVE */ |
| 81 | qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */ |
| 82 | qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */ |
| 83 | qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */ |
| 84 | qcom,vdd-dig-lower-bound = <4>; /* NORMAL */ |
Mahesh Sivasubramanian | b71ce09 | 2013-01-08 13:44:23 -0700 | [diff] [blame] | 85 | qcom,irqs-detectable; |
| 86 | qcom.gpios-detectable; |
Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -0700 | [diff] [blame] | 87 | qcom,latency-us = <100>; |
| 88 | qcom,ss-power = <8000>; |
| 89 | qcom,energy-overhead = <100000>; |
| 90 | qcom,time-overhead = <1>; |
| 91 | }; |
| 92 | |
| 93 | qcom,lpm-level@1 { |
| 94 | reg = <0x1>; |
| 95 | qcom,mode = <2>; /* MSM_PM_SLEEP_MODE_STANDALONE_POWER_COLLAPSE */ |
| 96 | qcom,xo = <1>; /* ON */ |
| 97 | qcom,l2 = <3>; /* ACTIVE */ |
| 98 | qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */ |
| 99 | qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */ |
| 100 | qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */ |
| 101 | qcom,vdd-dig-lower-bound = <4>; /* NORMAL */ |
Mahesh Sivasubramanian | b71ce09 | 2013-01-08 13:44:23 -0700 | [diff] [blame] | 102 | qcom,irqs-detectable; |
| 103 | qcom.gpios-detectable; |
Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -0700 | [diff] [blame] | 104 | qcom,latency-us = <2000>; |
| 105 | qcom,ss-power = <5000>; |
| 106 | qcom,energy-overhead = <60100000>; |
| 107 | qcom,time-overhead = <3000>; |
| 108 | }; |
| 109 | |
| 110 | qcom,lpm-level@2 { |
| 111 | reg = <0x2>; |
| 112 | qcom,mode = <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */ |
| 113 | qcom,xo = <1>; /* ON */ |
| 114 | qcom,l2 = <1>; /* GDHS */ |
| 115 | qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */ |
| 116 | qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */ |
| 117 | qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */ |
| 118 | qcom,vdd-dig-lower-bound = <4>; /* NORMAL */ |
Mahesh Sivasubramanian | b71ce09 | 2013-01-08 13:44:23 -0700 | [diff] [blame] | 119 | qcom,irqs-detectable; |
| 120 | qcom.gpios-detectable; |
Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -0700 | [diff] [blame] | 121 | qcom,latency-us = <3500>; |
| 122 | qcom,ss-power = <5000>; |
| 123 | qcom,energy-overhead = <60350000>; |
| 124 | qcom,time-overhead = <6300>; |
| 125 | }; |
| 126 | |
| 127 | qcom,lpm-level@3 { |
| 128 | reg = <0x3>; |
Girish Mahadevan | e5db1ba | 2012-11-06 14:55:41 -0700 | [diff] [blame] | 129 | qcom,mode = <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */ |
| 130 | qcom,xo = <1>; /* ON */ |
| 131 | qcom,l2 = <0>; /* GDHS */ |
| 132 | qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */ |
| 133 | qcom,vdd-mem-lower-bound = <950000>; /* SVS SOC */ |
| 134 | qcom,vdd-dig-upper-bound = <4>; /* NORMAL */ |
| 135 | qcom,vdd-dig-lower-bound = <3>; /* SVS SOC */ |
Mahesh Sivasubramanian | b71ce09 | 2013-01-08 13:44:23 -0700 | [diff] [blame] | 136 | qcom,irqs-detectable; |
| 137 | qcom.gpios-detectable; |
Girish Mahadevan | e5db1ba | 2012-11-06 14:55:41 -0700 | [diff] [blame] | 138 | qcom,latency-us = <4500>; |
| 139 | qcom,ss-power = <5000>; |
| 140 | qcom,energy-overhead = <60350000>; |
| 141 | qcom,time-overhead = <7300>; |
| 142 | }; |
| 143 | |
| 144 | qcom,lpm-level@4 { |
| 145 | reg = <0x4>; |
Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -0700 | [diff] [blame] | 146 | qcom,mode= <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */ |
| 147 | qcom,xo = <0>; /* OFF */ |
| 148 | qcom,l2 = <0>; /* OFF */ |
| 149 | qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */ |
| 150 | qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */ |
| 151 | qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */ |
| 152 | qcom,vdd-dig-lower-bound = <4>; /* NORMAL */ |
Mahesh Sivasubramanian | b71ce09 | 2013-01-08 13:44:23 -0700 | [diff] [blame] | 153 | qcom,irqs-detectable; |
Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -0700 | [diff] [blame] | 154 | qcom,latency-us = <6800>; |
| 155 | qcom,ss-power = <2000>; |
| 156 | qcom,energy-overhead = <71850000>; |
| 157 | qcom,time-overhead = <13300>; |
| 158 | }; |
| 159 | |
Girish Mahadevan | e5db1ba | 2012-11-06 14:55:41 -0700 | [diff] [blame] | 160 | qcom,lpm-level@5 { |
| 161 | reg = <0x5>; |
Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -0700 | [diff] [blame] | 162 | qcom,mode= <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */ |
| 163 | qcom,xo = <0>; /* OFF */ |
| 164 | qcom,l2 = <0>; /* OFF */ |
Girish Mahadevan | e4d3040 | 2013-03-04 16:41:13 -0700 | [diff] [blame^] | 165 | qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */ |
| 166 | qcom,vdd-mem-lower-bound = <950000>; /* SVS SOC */ |
| 167 | qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */ |
| 168 | qcom,vdd-dig-lower-bound = <3>; /* SVS SOC */ |
| 169 | qcom,irqs-detectable; |
| 170 | qcom,latency-us = <8000>; |
| 171 | qcom,ss-power = <1800>; |
| 172 | qcom,energy-overhead = <71950000>; |
| 173 | qcom,time-overhead = <15300>; |
| 174 | }; |
| 175 | |
| 176 | qcom,lpm-level@6 { |
| 177 | reg = <0x6>; |
| 178 | qcom,mode= <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */ |
| 179 | qcom,xo = <0>; /* OFF */ |
| 180 | qcom,l2 = <0>; /* OFF */ |
Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -0700 | [diff] [blame] | 181 | qcom,vdd-mem-upper-bound = <950000>; /* SVS SOC */ |
| 182 | qcom,vdd-mem-lower-bound = <675000>; /* RETENTION */ |
| 183 | qcom,vdd-dig-upper-bound = <3>; /* SVS SOC */ |
| 184 | qcom,vdd-dig-lower-bound = <1>; /* RETENTION */ |
| 185 | qcom,latency-us = <9800>; |
| 186 | qcom,ss-power = <0>; |
| 187 | qcom,energy-overhead = <76350000>; |
| 188 | qcom,time-overhead = <28300>; |
| 189 | }; |
| 190 | }; |
| 191 | |
| 192 | qcom,pm-boot { |
| 193 | compatible = "qcom,pm-boot"; |
| 194 | qcom,mode = <0>; /* MSM_PM_BOOT_CONFIG_TZ */ |
| 195 | }; |
| 196 | |
| 197 | qcom,mpm@fc4281d0 { |
| 198 | compatible = "qcom,mpm-v2"; |
| 199 | reg = <0xfc4281d0 0x1000>, /* MSM_RPM_MPM_BASE 4K */ |
| 200 | <0xf9011008 0x4>; /* MSM_APCS_GCC_BASE 4K */ |
| 201 | reg-names = "vmpm", "ipc"; |
| 202 | interrupts = <0 171 1>; |
| 203 | |
| 204 | qcom,ipc-bit-offset = <1>; |
| 205 | |
| 206 | qcom,gic-parent = <&intc>; |
Girish Mahadevan | 38f51a5 | 2012-12-11 17:02:22 -0700 | [diff] [blame] | 207 | qcom,gic-map = <47 172>, /* usb2_hsic_async_wakeup_irq */ |
Girish Mahadevan | 0e3f0ca | 2013-02-19 17:22:44 -0700 | [diff] [blame] | 208 | <41 180>, /* usb_async_wakeup_irq */ |
| 209 | <62 222>, /* ee0_krait_hlos_spmi_periph_irq */ |
| 210 | <0xff 57>, /* mss_to_apps_irq(0) */ |
| 211 | <0xff 58>, /* mss_to_apps_irq(1) */ |
| 212 | <0xff 59>, /* mss_to_apps_irq(2) */ |
| 213 | <0xff 60>, /* mss_to_apps_irq(3) */ |
| 214 | <0xff 173>, /* o_wcss_apss_smd_hi */ |
| 215 | <0xff 174>, /* o_wcss_apss_smd_med */ |
| 216 | <0xff 175>, /* o_wcss_apss_smd_lo */ |
| 217 | <0xff 176>, /* o_wcss_apss_smsm_irq */ |
| 218 | <0xff 177>, /* o_wcss_apss_wlan_data_xfer_done */ |
| 219 | <0xff 178>, /* o_wcss_apss_wlan_rx_data_avail */ |
| 220 | <0xff 179>, /* o_wcss_apss_asic_intr */ |
| 221 | <0xff 188>, /* q6ss_irq_out(4) */ |
| 222 | <0xff 189>, /* q6ss_irq_out(5) */ |
| 223 | <0xff 190>, /* q6ss_irq_out(6) */ |
| 224 | <0xff 191>, /* q6ss_irq_out(7) */ |
| 225 | <0xff 192>, /* audio_out0_irq */ |
| 226 | <0xff 193>, /* midi_arm_irq */ |
| 227 | <0xff 194>, /* q6ss_wdog_exp_irq */ |
| 228 | <0xff 195>, /* slimbus_core_ee1_irq */ |
| 229 | <0xff 196>, /* bam_irq(1) */ |
| 230 | <0xff 197>, /* qdss_irq_out(7) */ |
| 231 | <0xff 200>, /* rpm_ipc(4) */ |
| 232 | <0xff 201>, /* rpm_ipc(5) */ |
| 233 | <0xff 202>, /* rpm_ipc(6) */ |
| 234 | <0xff 203>, /* rpm_ipc(7) */ |
| 235 | <0xff 204>, /* rpm_ipc(24) */ |
| 236 | <0xff 205>, /* rpm_ipc(25) */ |
| 237 | <0xff 206>, /* rpm_ipc(26) */ |
| 238 | <0xff 207>, /* rpm_ipc(27) */ |
| 239 | <0xff 240>; /* summary_irq_kpss */ |
Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -0700 | [diff] [blame] | 240 | |
| 241 | qcom,gpio-parent = <&msmgpio>; |
| 242 | qcom,gpio-map = <4 1>, |
| 243 | <5 5>, |
| 244 | <6 9>, |
| 245 | <7 18>, |
| 246 | <8 20>, |
| 247 | <9 24>, |
| 248 | <10 27>, |
| 249 | <11 28>, |
| 250 | <12 34>, |
| 251 | <13 35>, |
| 252 | <14 37>, |
| 253 | <15 42>, |
| 254 | <16 44>, |
| 255 | <17 46>, |
| 256 | <18 50>, |
| 257 | <19 54>, |
| 258 | <20 59>, |
| 259 | <21 61>, |
| 260 | <22 62>, |
| 261 | <23 64>, |
| 262 | <24 65>, |
| 263 | <25 66>, |
| 264 | <26 67>, |
| 265 | <27 68>, |
| 266 | <28 71>, |
| 267 | <29 72>, |
| 268 | <30 73>, |
| 269 | <31 74>, |
| 270 | <32 75>, |
| 271 | <33 77>, |
| 272 | <34 79>, |
| 273 | <35 80>, |
| 274 | <36 82>, |
| 275 | <37 86>; |
| 276 | }; |
| 277 | |
| 278 | qcom,pm-8x60 { |
| 279 | compatible = "qcom,pm-8x60"; |
| 280 | qcom,pc-mode = <2>; /*MSM_PC_TZ_L2_EXT */ |
| 281 | qcom,use-sync-timer; |
| 282 | }; |
Girish Mahadevan | 832a10f | 2012-11-07 15:41:09 -0700 | [diff] [blame] | 283 | |
Priyanka Mathur | 6e91f4b | 2012-12-10 15:07:53 -0800 | [diff] [blame] | 284 | qcom,rpm-log@fc19dc00 { |
| 285 | compatible = "qcom,rpm-log"; |
| 286 | reg = <0xfc19dc00 0x4000>; |
| 287 | qcom,rpm-addr-phys = <0xfc000000>; |
| 288 | qcom,offset-version = <4>; |
| 289 | qcom,offset-page-buffer-addr = <36>; |
| 290 | qcom,offset-log-len = <40>; |
| 291 | qcom,offset-log-len-mask = <44>; |
| 292 | qcom,offset-page-indices = <56>; |
| 293 | }; |
| 294 | |
Girish Mahadevan | 832a10f | 2012-11-07 15:41:09 -0700 | [diff] [blame] | 295 | qcom,rpm-stats@fc19dbd0 { |
| 296 | compatible = "qcom,rpm-stats"; |
| 297 | reg = <0xfc19dbd0 0x1000>; |
| 298 | reg-names = "phys_addr_base"; |
| 299 | qcom,sleep-stats-version = <2>; |
| 300 | }; |
Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -0700 | [diff] [blame] | 301 | }; |