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