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