msm8974pro-pm.dtsi 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  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 = <0x01>;
  21. qcom,saw2-avs-ctl = <0>;
  22. qcom,saw2-avs-hysteresis = <0>;
  23. qcom,saw2-avs-limit = <0>;
  24. qcom,saw2-avs-dly= <0>;
  25. qcom,saw2-spm-dly= <0x3C102800>;
  26. qcom,saw2-spm-ctl = <0x1>;
  27. qcom,saw2-spm-cmd-wfi = [03 0b 0f];
  28. qcom,saw2-spm-cmd-ret = [42 1b 00 d8 5B 03 d8 5b 0b 00 42 1b 0f];
  29. qcom,saw2-spm-cmd-spc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
  30. 30 06 26 30 0F];
  31. qcom,saw2-spm-cmd-pc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
  32. 30 06 26 30 0F];
  33. };
  34. qcom,spm@f9099000 {
  35. compatible = "qcom,spm-v2";
  36. #address-cells = <1>;
  37. #size-cells = <1>;
  38. reg = <0xf9099000 0x1000>;
  39. qcom,core-id = <1>;
  40. qcom,saw2-ver-reg = <0xfd0>;
  41. qcom,saw2-cfg = <0x01>;
  42. qcom,saw2-avs-ctl = <0>;
  43. qcom,saw2-avs-hysteresis = <0>;
  44. qcom,saw2-avs-limit = <0>;
  45. qcom,saw2-avs-dly= <0>;
  46. qcom,saw2-spm-dly= <0x3C102800>;
  47. qcom,saw2-spm-ctl = <0x1>;
  48. qcom,saw2-spm-cmd-wfi = [03 0b 0f];
  49. qcom,saw2-spm-cmd-ret = [42 1b 00 d8 5B 03 d8 5b 0b 00 42 1b 0f];
  50. qcom,saw2-spm-cmd-spc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
  51. 30 06 26 30 0F];
  52. qcom,saw2-spm-cmd-pc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
  53. 30 06 26 30 0F];
  54. };
  55. qcom,spm@f90a9000 {
  56. compatible = "qcom,spm-v2";
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. reg = <0xf90a9000 0x1000>;
  60. qcom,core-id = <2>;
  61. qcom,saw2-ver-reg = <0xfd0>;
  62. qcom,saw2-cfg = <0x01>;
  63. qcom,saw2-avs-ctl = <0>;
  64. qcom,saw2-avs-hysteresis = <0>;
  65. qcom,saw2-avs-limit = <0>;
  66. qcom,saw2-avs-dly= <0>;
  67. qcom,saw2-spm-dly= <0x3C102800>;
  68. qcom,saw2-spm-ctl = <0x1>;
  69. qcom,saw2-spm-cmd-wfi = [03 0b 0f];
  70. qcom,saw2-spm-cmd-ret = [42 1b 00 d8 5B 03 d8 5b 0b 00 42 1b 0f];
  71. qcom,saw2-spm-cmd-spc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
  72. 30 06 26 30 0F];
  73. qcom,saw2-spm-cmd-pc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
  74. 30 06 26 30 0F];
  75. };
  76. qcom,spm@f90b9000 {
  77. compatible = "qcom,spm-v2";
  78. #address-cells = <1>;
  79. #size-cells = <1>;
  80. reg = <0xf90b9000 0x1000>;
  81. qcom,core-id = <3>;
  82. qcom,saw2-ver-reg = <0xfd0>;
  83. qcom,saw2-cfg = <0x01>;
  84. qcom,saw2-avs-ctl = <0>;
  85. qcom,saw2-avs-hysteresis = <0>;
  86. qcom,saw2-avs-limit = <0>;
  87. qcom,saw2-avs-dly= <0>;
  88. qcom,saw2-spm-dly= <0x3C102800>;
  89. qcom,saw2-spm-ctl = <0x1>;
  90. qcom,saw2-spm-cmd-wfi = [03 0b 0f];
  91. qcom,saw2-spm-cmd-ret = [42 1b 00 d8 5B 03 d8 5b 0b 00 42 1b 0f];
  92. qcom,saw2-spm-cmd-spc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
  93. 30 06 26 30 0F];
  94. qcom,saw2-spm-cmd-pc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
  95. 30 06 26 30 0F];
  96. };
  97. qcom,spm@f9012000 {
  98. compatible = "qcom,spm-v2";
  99. #address-cells = <1>;
  100. #size-cells = <1>;
  101. reg = <0xf9012000 0x1000>;
  102. qcom,core-id = <0xffff>; /* L2/APCS SAW */
  103. qcom,saw2-ver-reg = <0xfd0>;
  104. qcom,saw2-cfg = <0x14>;
  105. qcom,saw2-avs-ctl = <0>;
  106. qcom,saw2-avs-hysteresis = <0>;
  107. qcom,saw2-avs-limit = <0>;
  108. qcom,saw2-avs-dly= <0>;
  109. qcom,saw2-spm-dly= <0x3C102800>;
  110. qcom,saw2-spm-ctl = <0x1>;
  111. qcom,saw2-pmic-data0 = <0x02030080>;
  112. qcom,saw2-pmic-data1 = <0x00030000>;
  113. qcom,vctl-timeout-us = <50>;
  114. qcom,vctl-port = <0x0>;
  115. qcom,phase-port = <0x1>;
  116. qcom,pfm-port = <0x2>;
  117. qcom,saw2-spm-cmd-ret = [1f 00 03 00 0f];
  118. qcom,saw2-spm-cmd-gdhs = [00 32 42 03 44 50 02 32 50 0f];
  119. qcom,saw2-spm-cmd-pc = [00 10 32 b0 11 42 07 01 b0 12 44
  120. 50 02 32 50 0f];
  121. qcom,L2-spm-is-apcs-master;
  122. };
  123. lpm_levels: qcom,lpm-levels {
  124. compatible = "qcom,lpm-levels";
  125. qcom,allow-synced-levels;
  126. qcom,default-l2-state = "l2_cache_retention";
  127. #address-cells = <1>;
  128. #size-cells = <1>;
  129. qcom,cpu-modes {
  130. compatible = "qcom,cpu-modes";
  131. qcom,cpu-mode@0 {
  132. qcom,mode = "wfi";
  133. qcom,latency-us = <1>;
  134. qcom,ss-power = <715>;
  135. qcom,energy-overhead = <17700>;
  136. qcom,time-overhead = <2>;
  137. };
  138. qcom,cpu-mode@1 {
  139. qcom,mode = "retention";
  140. qcom,latency-us = <35>;
  141. qcom,ss-power = <542>;
  142. qcom,energy-overhead = <34920>;
  143. qcom,time-overhead = <40>;
  144. };
  145. qcom,cpu-mode@2 {
  146. qcom,mode = "standalone_pc";
  147. qcom,latency-us = <300>;
  148. qcom,ss-power = <476>;
  149. qcom,energy-overhead = <225300>;
  150. qcom,time-overhead = <350>;
  151. };
  152. qcom,cpu-mode@3 {
  153. qcom,mode = "pc";
  154. qcom,latency-us = <500>;
  155. qcom,ss-power = <400>;
  156. qcom,energy-overhead = <280000>;
  157. qcom,time-overhead = <500>;
  158. qcom,use-broadcast-timer;
  159. };
  160. };
  161. qcom,system-modes {
  162. compatible = "qcom,system-modes";
  163. qcom,system-mode@0 {
  164. qcom,l2 = "l2_cache_gdhs";
  165. qcom,latency-us = <500>;
  166. qcom,ss-power = <163>;
  167. qcom,energy-overhead = <577736>;
  168. qcom,time-overhead = <1000>;
  169. qcom,min-cpu-mode= "standalone_pc";
  170. qcom,sync-cpus;
  171. };
  172. qcom,system-mode@1 {
  173. qcom,l2 = "l2_cache_pc";
  174. qcom,latency-us = <30000>;
  175. qcom,ss-power = <83>;
  176. qcom,energy-overhead = <2274420>;
  177. qcom,time-overhead = <6605>;
  178. qcom,min-cpu-mode = "pc";
  179. qcom,sync-cpus;
  180. qcom,send-rpm-sleep-set;
  181. };
  182. };
  183. };
  184. qcom,pm-boot {
  185. compatible = "qcom,pm-boot";
  186. qcom,mode = "tz";
  187. };
  188. qcom,mpm@fc4281d0 {
  189. compatible = "qcom,mpm-v2";
  190. reg = <0xfc4281d0 0x1000>, /* MSM_RPM_MPM_BASE 4K */
  191. <0xf9011008 0x4>; /* MSM_APCS_GCC_BASE 4K */
  192. reg-names = "vmpm", "ipc";
  193. interrupts = <0 171 1>;
  194. qcom,ipc-bit-offset = <1>;
  195. qcom,gic-parent = <&intc>;
  196. qcom,gic-map = <2 216>, /* tsens_upper_lower_int */
  197. <47 165>, /* usb30_hs_phy_irq */
  198. <50 172>, /* usb1_hs_async_wakeup_irq */
  199. <53 104>, /* mdss_irq */
  200. <62 222>, /* ee0_krait_hlos_spmi_periph_irq */
  201. <0xff 18>, /* APCx_qgicQTmrSecPhysIrptReq */
  202. <0xff 19>, /* APCx_qgicQTmrSecPhysIrptReq */
  203. <0xff 25>, /* APCx_qgicExtFaultIrptReq */
  204. <0xff 33>, /* APCC_qgicL2PerfMonIrptReq */
  205. <0xff 34>, /* APCC_qgicL2ErrorIrptReq */
  206. <0xff 35>, /* WDT_barkInt */
  207. <0xff 40>, /* qtimer_phy_irq */
  208. <0xff 56>, /* modem_watchdog */
  209. <0xff 57>, /* mss_to_apps_irq(0) */
  210. <0xff 58>, /* mss_to_apps_irq(1) */
  211. <0xff 59>, /* mss_to_apps_irq(2) */
  212. <0xff 60>, /* mss_to_apps_irq(3) */
  213. <0xff 61>, /* mss_a2_bam_irq */
  214. <0xff 70>, /* iommu_pmon_nonsecure_irq */
  215. <0xff 74>, /* osmmu_CIrpt[1] */
  216. <0xff 75>, /* osmmu_CIrpt[0] */
  217. <0xff 77>, /* osmmu_CIrpt[0] */
  218. <0xff 78>, /* osmmu_CIrpt[0] */
  219. <0xff 79>, /* osmmu_CIrpt[0] */
  220. <0xff 94>, /* osmmu_CIrpt[0] */
  221. <0xff 97>, /* iommu_nonsecure_irq */
  222. <0xff 99>, /* msm_iommu_pmon_nonsecure_irq */
  223. <0xff 102>, /* osmmu_CIrpt[1] */
  224. <0xff 105>, /* iommu_pmon_nonsecure_irq */
  225. <0xff 109>, /* ocmem_dm_nonsec_irq */
  226. <0xff 126>, /* bam_irq[0] */
  227. <0xff 140>, /* uart_dm_intr */
  228. <0xff 146>, /* uart_dm_intr: blsp2_uart_2_irq */
  229. <0xff 155>, /* sdcc_irq[0] */
  230. <0xff 157>, /* sdcc_irq[0] */
  231. <0xff 159>, /* sdcc_irq[0] */
  232. <0xff 163>, /* usb30_ee1_irq */
  233. <0xff 170>, /* sdcc_pwr_cmd_irq */
  234. <0xff 173>, /* o_wcss_apss_smd_hi */
  235. <0xff 174>, /* o_wcss_apss_smd_med */
  236. <0xff 175>, /* o_wcss_apss_smd_low */
  237. <0xff 176>, /* o_wcss_apss_smsm_irq */
  238. <0xff 177>, /* o_wcss_apss_wlan_data_xfer_done */
  239. <0xff 178>, /* o_wcss_apss_wlan_rx_data_avail */
  240. <0xff 179>, /* o_wcss_apss_asic_intr */
  241. <0xff 181>, /* wcnss watchdog */
  242. <0xff 188>, /* lpass_irq_out_apcs(0) */
  243. <0xff 189>, /* lpass_irq_out_apcs(1) */
  244. <0xff 190>, /* lpass_irq_out_apcs(2) */
  245. <0xff 191>, /* lpass_irq_out_apcs(3) */
  246. <0xff 192>, /* lpass_irq_out_apcs(4) */
  247. <0xff 193>, /* lpass_irq_out_apcs(5) */
  248. <0xff 194>, /* lpass_irq_out_apcs(6) */
  249. <0xff 195>, /* lpass_irq_out_apcs(7) */
  250. <0xff 196>, /* lpass_irq_out_apcs(8) */
  251. <0xff 197>, /* lpass_irq_out_apcs(9) */
  252. <0xff 198>, /* coresight-tmc-etr interrupt */
  253. <0xff 200>, /* rpm_ipc(4) */
  254. <0xff 201>, /* rpm_ipc(5) */
  255. <0xff 202>, /* rpm_ipc(6) */
  256. <0xff 203>, /* rpm_ipc(7) */
  257. <0xff 204>, /* rpm_ipc(24) */
  258. <0xff 205>, /* rpm_ipc(25) */
  259. <0xff 206>, /* rpm_ipc(26) */
  260. <0xff 207>, /* rpm_ipc(27) */
  261. <0xff 211>, /* usb_dwc3_otg */
  262. <0xff 240>, /* summary_irq_kpss */
  263. <0xff 253>, /* sdcc_pwr_cmd_irq */
  264. <0xff 256>, /* sdcc_pwr_cmd_irq */
  265. <0xff 268>, /* bam_irq[1] */
  266. <0xff 270>, /* bam_irq[0] */
  267. <0xff 271>; /* bam_irq[0] */
  268. qcom,gpio-parent = <&msmgpio>;
  269. qcom,gpio-map = <3 102>,
  270. <4 1 >,
  271. <5 5 >,
  272. <6 9 >,
  273. <7 18>,
  274. <8 20>,
  275. <9 24>,
  276. <10 27>,
  277. <11 28>,
  278. <12 34>,
  279. <13 35>,
  280. <14 37>,
  281. <15 42>,
  282. <16 44>,
  283. <17 46>,
  284. <18 50>,
  285. <19 54>,
  286. <20 59>,
  287. <21 61>,
  288. <22 62>,
  289. <23 64>,
  290. <24 65>,
  291. <25 66>,
  292. <26 67>,
  293. <27 68>,
  294. <28 71>,
  295. <29 72>,
  296. <30 73>,
  297. <31 74>,
  298. <32 75>,
  299. <33 77>,
  300. <34 79>,
  301. <35 80>,
  302. <36 82>,
  303. <37 86>,
  304. <38 92>,
  305. <39 93>,
  306. <40 95>,
  307. <41 144>;
  308. };
  309. qcom,pm-8x60@fe805664 {
  310. compatible = "qcom,pm-8x60";
  311. #address-cells = <1>;
  312. #size-cells = <1>;
  313. ranges;
  314. reg = <0xfe805664 0x40>;
  315. qcom,pc-mode = "tz_l2_int";
  316. qcom,cpus-as-clocks;
  317. qcom,lpm-levels = <&lpm_levels>;
  318. qcom,pm-snoc-client {
  319. compatible = "qcom,pm-snoc-client";
  320. qcom,msm-bus,name = "ocimem_snoc";
  321. qcom,msm-bus,num-cases = <2>;
  322. qcom,msm-bus,num-paths = <1>;
  323. qcom,msm-bus,active-only;
  324. qcom,msm-bus,vectors-KBps =
  325. <54 585 0 0>,
  326. <54 585 0 800000>;
  327. };
  328. };
  329. qcom,cpu-sleep-status@f9088008{
  330. compatible = "qcom,cpu-sleep-status";
  331. reg = <0xf9088008 0x100>;
  332. qcom,cpu-alias-addr = <0x10000>;
  333. qcom,sleep-status-mask= <0x80000>;
  334. };
  335. qcom,rpm-log@fc19dc00 {
  336. compatible = "qcom,rpm-log";
  337. reg = <0xfc19dc00 0x4000>;
  338. qcom,rpm-addr-phys = <0xfc000000>;
  339. qcom,offset-version = <4>;
  340. qcom,offset-page-buffer-addr = <36>;
  341. qcom,offset-log-len = <40>;
  342. qcom,offset-log-len-mask = <44>;
  343. qcom,offset-page-indices = <56>;
  344. };
  345. qcom,rpm-stats@fc19dba0 {
  346. compatible = "qcom,rpm-stats";
  347. reg = <0xfc19dba0 0x1000>;
  348. reg-names = "phys_addr_base";
  349. qcom,sleep-stats-version = <2>;
  350. };
  351. qcom,rpm-rbcpr-stats@fc000000 {
  352. compatible = "qcom,rpmrbcpr-stats";
  353. reg = <0xfc000000 0x1a0000>;
  354. qcom,start-offset = <0x190010>;
  355. };
  356. qcom,rpm-master-stats@fc428150 {
  357. compatible = "qcom,rpm-master-stats";
  358. reg = <0xfc428150 0x3200>;
  359. qcom,masters = "APSS", "MPSS", "LPSS", "PRONTO";
  360. qcom,master-stats-version = <2>;
  361. qcom,master-offset = <2560>;
  362. };
  363. };