msm8610-v2-pm.dtsi 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. /* Copyright (c) 2013-2014 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. &soc {
  13. qcom,spm@f9089000 {
  14. compatible = "qcom,spm-v2";
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. reg = <0xf9089000 0x1000>;
  18. qcom,core-id = <0>;
  19. qcom,saw2-ver-reg = <0xfd0>;
  20. qcom,saw2-cfg = <0x00>;
  21. qcom,saw2-spm-dly= <0x3c102800>;
  22. qcom,saw2-spm-ctl = <0x8>;
  23. qcom,saw2-spm-cmd-wfi = [60 03 60 0b 0f];
  24. qcom,saw2-spm-cmd-spc = [20 10 80 30 90 5b 60 03 60 3b 76 76
  25. 0b 94 5b 80 10 26 30 0f];
  26. qcom,saw2-spm-cmd-pc = [20 10 80 30 90 5b 60 03 60 3b 76 76
  27. 0b 94 5b 80 10 26 30 0f];
  28. };
  29. qcom,spm@f9099000 {
  30. compatible = "qcom,spm-v2";
  31. #address-cells = <1>;
  32. #size-cells = <1>;
  33. reg = <0xf9099000 0x1000>;
  34. qcom,core-id = <1>;
  35. qcom,saw2-ver-reg = <0xfd0>;
  36. qcom,saw2-cfg = <0x00>;
  37. qcom,saw2-spm-dly= <0x3c102800>;
  38. qcom,saw2-spm-ctl = <0x8>;
  39. qcom,saw2-spm-cmd-wfi = [60 03 60 0b 0f];
  40. qcom,saw2-spm-cmd-spc = [20 10 80 30 90 5b 60 03 60 3b 76 76
  41. 0b 94 5b 80 10 26 30 0f];
  42. qcom,saw2-spm-cmd-pc = [20 10 80 30 90 5b 60 03 60 3b 76 76
  43. 0b 94 5b 80 10 26 30 0f];
  44. };
  45. qcom,spm@f90a9000 {
  46. compatible = "qcom,spm-v2";
  47. #address-cells = <1>;
  48. #size-cells = <1>;
  49. reg = <0xf90a9000 0x1000>;
  50. qcom,core-id = <2>;
  51. qcom,saw2-ver-reg = <0xfd0>;
  52. qcom,saw2-cfg = <0x00>;
  53. qcom,saw2-spm-dly= <0x3c102800>;
  54. qcom,saw2-spm-ctl = <0x8>;
  55. qcom,saw2-spm-cmd-wfi = [60 03 60 0b 0f];
  56. qcom,saw2-spm-cmd-spc = [20 10 80 30 90 5b 60 03 60 3b 76 76
  57. 0b 94 5b 80 10 26 30 0f];
  58. qcom,saw2-spm-cmd-pc = [20 10 80 30 90 5b 60 03 60 3b 76 76
  59. 0b 94 5b 80 10 26 30 0f];
  60. };
  61. qcom,spm@f90b9000 {
  62. compatible = "qcom,spm-v2";
  63. #address-cells = <1>;
  64. #size-cells = <1>;
  65. reg = <0xf90b9000 0x1000>;
  66. qcom,core-id = <3>;
  67. qcom,saw2-ver-reg = <0xfd0>;
  68. qcom,saw2-cfg = <0x00>;
  69. qcom,saw2-spm-dly= <0x3c102800>;
  70. qcom,saw2-spm-ctl = <0x8>;
  71. qcom,saw2-spm-cmd-wfi = [60 03 60 0b 0f];
  72. qcom,saw2-spm-cmd-spc = [20 10 80 30 90 5b 60 03 60 3b 76 76
  73. 0b 94 5b 80 10 26 30 0f];
  74. qcom,saw2-spm-cmd-pc = [20 10 80 30 90 5b 60 03 60 3b 76 76
  75. 0b 94 5b 80 10 26 30 0f];
  76. };
  77. qcom,spm@f9012000 {
  78. compatible = "qcom,spm-v2";
  79. #address-cells = <1>;
  80. #size-cells = <1>;
  81. reg = <0xf9012000 0x1000>;
  82. qcom,core-id = <0xffff>; /* L2/APCS SAW */
  83. qcom,saw2-ver-reg = <0xfd0>;
  84. qcom,saw2-cfg = <0x14>;
  85. qcom,saw2-spm-dly= <0x3c102800>;
  86. qcom,saw2-spm-ctl = <0x0>;
  87. qcom,saw2-pmic-data0 = <0x02030080>;
  88. qcom,saw2-pmic-data1 = <0x00030000>;
  89. qcom,vctl-timeout-us = <50>;
  90. qcom,vctl-port = <0x0>;
  91. qcom,phase-port = <0x1>;
  92. qcom,pfm-port = <0x2>;
  93. qcom,saw2-spm-cmd-ret = [00 03 00 0f];
  94. qcom,saw2-spm-cmd-gdhs = [00 20 32 6b c0 e0 d0 42 03 50
  95. 4e 02 02 d0 e0 c0 22 6b 02 32 50 0f];
  96. qcom,saw2-spm-cmd-pc = [00 32 b0 10 e0 d0 6b c0 42 f0
  97. 11 07 01 b0 50 4e 02 02 c0 d0 12 e0 6b 02 32
  98. 50 f0 0f]; /*APCS_PMIC_OFF_L2RAM_OFF*/
  99. qcom,saw2-spm-cmd-pc-no-rpm = [00 32 b0 10 e0 d0 6b c0 42 f0
  100. 11 03 01 b0 50 4e 02 02 c0 d0 12 e0 6b 02 32
  101. 50 f0 0f]; /*APCS_PMIC_OFF_L2RAM_OFF*/
  102. qcom,L2-spm-is-apcs-master;
  103. };
  104. lpm_levels: qcom,lpm-levels {
  105. compatible = "qcom,lpm-levels";
  106. qcom,default-l2-state = "l2_cache_active";
  107. #address-cells = <1>;
  108. #size-cells = <0>;
  109. qcm,cpu-modes {
  110. compatible = "qcom,cpu-modes";
  111. qcom,cpu-modes@0 {
  112. qcom,mode = "wfi";
  113. qcom,latency-us = <1>;
  114. qcom,ss-power = <530>;
  115. qcom,energy-overhead = <52800>;
  116. qcom,time-overhead = <100>;
  117. };
  118. qcom,cpu-modes@1 {
  119. qcom,mode = "standalone_pc";
  120. qcom,latency-us = <500>;
  121. qcom,ss-power = <410>;
  122. qcom,energy-overhead = <603400>;
  123. qcom,time-overhead = <1200>;
  124. qcom,use-broadcast-timer;
  125. };
  126. qcom,cpu-modes@2 {
  127. qcom,mode = "pc";
  128. qcom,latency-us = <550>;
  129. qcom,ss-power = <372>;
  130. qcom,energy-overhead = <700000>;
  131. qcom,time-overhead = <1410>;
  132. qcom,use-broadcast-timer;
  133. };
  134. };
  135. qcom,system-modes {
  136. compatible = "qcom,system-modes";
  137. qcom,system-modes@0 {
  138. qcom,l2 = "l2_cache_gdhs";
  139. qcom,latency-us = <700>;
  140. qcom,ss-power = <372>;
  141. qcom,energy-overhead = <738750>;
  142. qcom,time-overhead = <1410>;
  143. qcom,min-cpu-mode= "standalone_pc";
  144. qcom,sync-cpus;
  145. };
  146. qcom,system-modes@1 {
  147. qcom,l2 = "l2_cache_pc_no_rpm";
  148. qcom,latency-us = <1000>;
  149. qcom,ss-power = <315>;
  150. qcom,energy-overhead = <1027150>;
  151. qcom,time-overhead = <2400>;
  152. qcom,min-cpu-mode= "standalone_pc";
  153. qcom,sync-cpus;
  154. };
  155. qcom,system-modes@2 {
  156. qcom,l2 = "l2_cache_pc";
  157. qcom,latency-us = <12700>;
  158. qcom,ss-power = <315>;
  159. qcom,energy-overhead = <1027150>;
  160. qcom,time-overhead = <2400>;
  161. qcom,min-cpu-mode= "pc";
  162. qcom,sync-cpus;
  163. qcom,send-rpm-sleep-set;
  164. };
  165. };
  166. };
  167. qcom,pm-boot {
  168. compatible = "qcom,pm-boot";
  169. qcom,mode = "tz";
  170. };
  171. qcom,mpm@fc4281d0 {
  172. compatible = "qcom,mpm-v2";
  173. reg = <0xfc4281d0 0x1000>, /* MSM_RPM_MPM_BASE 4K */
  174. <0xf9011008 0x4>; /* MSM_APCS_GCC_BASE 4K */
  175. reg-names = "vmpm", "ipc";
  176. interrupts = <0 171 1>;
  177. qcom,ipc-bit-offset = <1>;
  178. qcom,gic-parent = <&intc>;
  179. qcom,gic-map = <47 172>, /* usb2_hsic_async_wakeup_irq */
  180. <53 104>, /* mdss_irq */
  181. <62 222>, /* ee0_krait_hlos_spmi_periph_irq */
  182. <2 216>, /* tsens_upper_lower_int */
  183. <41 63>, /* dino_gen_purpose_irq35 */
  184. <0xff 18>, /* APC_qgicQTmrSecPhysIrptReq */
  185. <0xff 19>, /* APC_qgicQTmrNonSecPhysIrptReq */
  186. <0xff 35>, /* WDT_barkInt */
  187. <0xff 40>, /* qtmr_phy_irq[0] */
  188. <0xff 47>, /* rbif_irq[0] */
  189. <0xff 56>, /* q6_wdog_expired_irq */
  190. <0xff 57>, /* mss_to_apps_irq(0) */
  191. <0xff 58>, /* mss_to_apps_irq(1) */
  192. <0xff 59>, /* mss_to_apps_irq(2) */
  193. <0xff 60>, /* mss_to_apps_irq(3) */
  194. <0xff 61>, /* mss_a2_bam_irq */
  195. <0xff 65>, /* o_gc_sys_irq[0] */
  196. <0xff 74>, /* venus0_mmu_cirpt[1] */
  197. <0xff 75>, /* venus0_mmu_cirpt[0] */
  198. <0xff 78>, /* mdss_mmu_cirpt[0] */
  199. <0xff 79>, /* mdss_mmu_cirpt[1] */
  200. <0xff 97>, /* camss_vfe_mmu_cirpt[1] */
  201. <0xff 102>, /* camss_jpeg_mmu_cirpt[1] */
  202. <0xff 109>, /* ocmem_dm_nonsec_irq */
  203. <0xff 131>, /* blsp1_qup_5_irq */
  204. <0xff 141>, /* blsp1_uart_3_irq */
  205. <0xff 155>, /* sdc1_irq(0) */
  206. <0xff 157>, /* sdc2_irq(0) */
  207. <0xff 161>, /* lpass_irq_out_spare[4] */
  208. <0xff 162>, /* lpass_irq_out_spare[5]*/
  209. <0xff 170>, /* sdc1_pwr_cmd_irq */
  210. <0xff 173>, /* o_wcss_apss_smd_hi */
  211. <0xff 174>, /* o_wcss_apss_smd_med */
  212. <0xff 175>, /* o_wcss_apss_smd_low */
  213. <0xff 176>, /* o_wcss_apss_smsm_irq */
  214. <0xff 177>, /* o_wcss_apss_wlan_data_xfer_done */
  215. <0xff 178>, /* o_wcss_apss_wlan_rx_data_avail */
  216. <0xff 179>, /* o_wcss_apss_asic_intr */
  217. <0xff 181>, /* o_wcss_apss_wdog_bite_and_reset_rdy */
  218. <0xff 188>, /* lpass_irq_out_apcs(0) */
  219. <0xff 189>, /* lpass_irq_out_apcs(1) */
  220. <0xff 190>, /* lpass_irq_out_apcs(2) */
  221. <0xff 191>, /* lpass_irq_out_apcs(3) */
  222. <0xff 192>, /* lpass_irq_out_apcs(4) */
  223. <0xff 194>, /* lpass_irq_out_apcs(6) */
  224. <0xff 198>, /* QDSS - u_qdss */
  225. <0xff 200>, /* rpm_ipc(4) */
  226. <0xff 201>, /* rpm_ipc(5) */
  227. <0xff 202>, /* rpm_ipc(6) */
  228. <0xff 203>, /* rpm_ipc(7) */
  229. <0xff 204>, /* rpm_ipc(24) */
  230. <0xff 205>, /* rpm_ipc(25) */
  231. <0xff 206>, /* rpm_ipc(26) */
  232. <0xff 207>, /* rpm_ipc(27) */
  233. <0xff 234>, /* lpass_irq_out_spare[6]*/
  234. <0xff 235>, /* lpass_irq_out_spare[7]*/
  235. <0xff 240>, /* summary_irq_kpss */
  236. <0xff 253>, /* sdc2_pwr_cmd_irq */
  237. <0xff 258>, /* rpm_ipc(28) */
  238. <0xff 259>, /* rpm_ipc(29) */
  239. <0xff 269>, /* rpm_wdog_expired_irq */
  240. <0xff 270>, /* blsp1_bam_irq[0] */
  241. <0xff 275>, /* rpm_ipc(30) */
  242. <0xff 276>; /* rpm_ipc(31) */
  243. qcom,gpio-parent = <&msmgpio>;
  244. qcom,gpio-map = <3 1>,
  245. <4 5 >,
  246. <5 9 >,
  247. <6 14>,
  248. <7 15>,
  249. <8 32>,
  250. <9 33>,
  251. <10 34>,
  252. <11 35>,
  253. <12 41>,
  254. <13 42>,
  255. <14 72>,
  256. <15 73>,
  257. <16 74>,
  258. <17 75>,
  259. <18 76>,
  260. <19 77>,
  261. <20 78>,
  262. <21 79>,
  263. <22 80>,
  264. <23 81>,
  265. <24 82>,
  266. <25 83>,
  267. <26 84>,
  268. <27 85>,
  269. <28 87>,
  270. <29 90>,
  271. <30 91>,
  272. <31 92>,
  273. <32 93>,
  274. <33 94>,
  275. <34 95>,
  276. <35 96>,
  277. <36 97>,
  278. <37 98>,
  279. <38 99>,
  280. <39 100>,
  281. <40 101>;
  282. };
  283. qcom,pm-8x60@fe805664 {
  284. compatible = "qcom,pm-8x60";
  285. reg = <0xfe805664 0x40>;
  286. qcom,pc-mode = "tz_l2_int";
  287. qcom,use-sync-timer;
  288. qcom,pc-resets-timer;
  289. qcom,cpus-as-clocks;
  290. qcom,synced-clocks;
  291. qcom,lpm-levels = <&lpm_levels>;
  292. };
  293. qcom,cpu-sleep-status@f9088008{
  294. compatible = "qcom,cpu-sleep-status";
  295. reg = <0xf9088008 0x100>;
  296. qcom,cpu-alias-addr = <0x10000>;
  297. qcom,sleep-status-mask= <0x80000>;
  298. };
  299. qcom,rpm-log@fc19dc00 {
  300. compatible = "qcom,rpm-log";
  301. reg = <0xfc19dc00 0x4000>;
  302. qcom,rpm-addr-phys = <0xfc000000>;
  303. qcom,offset-version = <4>;
  304. qcom,offset-page-buffer-addr = <36>;
  305. qcom,offset-log-len = <40>;
  306. qcom,offset-log-len-mask = <44>;
  307. qcom,offset-page-indices = <56>;
  308. };
  309. qcom,rpm-stats@fc19dba0 {
  310. compatible = "qcom,rpm-stats";
  311. reg = <0xfc19dba0 0x1000>;
  312. reg-names = "phys_addr_base";
  313. qcom,sleep-stats-version = <2>;
  314. };
  315. qcom,rpm-rbcpr-stats@fc000000 {
  316. compatible = "qcom,rpmrbcpr-stats";
  317. reg = <0xfc000000 0x1a0000>;
  318. qcom,start-offset = <0x190010>;
  319. };
  320. };