Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2017, 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 | |
| 13 | &soc { |
| 14 | qcom,lpm-levels { |
| 15 | compatible = "qcom,lpm-levels"; |
| 16 | #address-cells = <1>; |
| 17 | #size-cells = <0>; |
| 18 | |
| 19 | qcom,pm-cluster@0 { |
| 20 | reg = <0>; |
| 21 | #address-cells = <1>; |
| 22 | #size-cells = <0>; |
| 23 | label = "L3"; |
| 24 | qcom,psci-mode-shift = <4>; |
| 25 | qcom,psci-mode-mask = <0xfff>; |
| 26 | |
| 27 | qcom,pm-cluster-level@0 { /* D1 */ |
| 28 | reg = <0>; |
| 29 | label = "l3-wfi"; |
| 30 | qcom,psci-mode = <0x1>; |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 31 | qcom,latency-us = <600>; |
| 32 | qcom,ss-power = <420>; |
| 33 | qcom,energy-overhead = <4254140>; |
| 34 | qcom,time-overhead = <1260>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 35 | }; |
| 36 | |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 37 | qcom,pm-cluster-level@1 { /* D4, D3 is not supported */ |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 38 | reg = <1>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 39 | label = "l3-pc"; |
| 40 | qcom,psci-mode = <0x4>; |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 41 | qcom,latency-us = <3048>; |
| 42 | qcom,ss-power = <329>; |
| 43 | qcom,energy-overhead = <6189829>; |
| 44 | qcom,time-overhead = <5800>; |
| 45 | qcom,min-child-idx = <3>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 46 | qcom,is-reset; |
| 47 | }; |
| 48 | |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 49 | qcom,pm-cluster-level@2 { /* Cx off */ |
| 50 | reg = <2>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 51 | label = "cx-off"; |
| 52 | qcom,psci-mode = <0x224>; |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 53 | qcom,latency-us = <4562>; |
| 54 | qcom,ss-power = <290>; |
| 55 | qcom,energy-overhead = <6989829>; |
| 56 | qcom,time-overhead = <8200>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 57 | qcom,min-child-idx = <3>; |
| 58 | qcom,is-reset; |
| 59 | qcom,notify-rpm; |
| 60 | }; |
| 61 | |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 62 | qcom,pm-cluster-level@3 { /* AOSS sleep */ |
| 63 | reg = <3>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 64 | label = "llcc-off"; |
| 65 | qcom,psci-mode = <0xC24>; |
| 66 | qcom,latency-us = <6562>; |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 67 | qcom,ss-power = <165>; |
| 68 | qcom,energy-overhead = <7000029>; |
| 69 | qcom,time-overhead = <9825>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 70 | qcom,min-child-idx = <3>; |
| 71 | qcom,is-reset; |
| 72 | qcom,notify-rpm; |
| 73 | }; |
| 74 | |
| 75 | qcom,pm-cpu@0 { |
| 76 | #address-cells = <1>; |
| 77 | #size-cells = <0>; |
| 78 | qcom,psci-mode-shift = <0>; |
| 79 | qcom,psci-mode-mask = <0xf>; |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 80 | qcom,use-prediction; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 81 | qcom,cpu = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 |
| 82 | &CPU5>; |
| 83 | |
| 84 | qcom,pm-cpu-level@0 { /* C1 */ |
| 85 | reg = <0>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 86 | label = "wfi"; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 87 | qcom,psci-cpu-mode = <0x1>; |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 88 | qcom,latency-us = <60>; |
| 89 | qcom,ss-power = <383>; |
| 90 | qcom,energy-overhead = <64140>; |
| 91 | qcom,time-overhead = <121>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 92 | }; |
| 93 | |
| 94 | qcom,pm-cpu-level@1 { /* C2D */ |
| 95 | reg = <1>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 96 | label = "ret"; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 97 | qcom,psci-cpu-mode = <0x2>; |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 98 | qcom,latency-us = <282>; |
| 99 | qcom,ss-power = <370>; |
| 100 | qcom,energy-overhead = <238600>; |
| 101 | qcom,time-overhead = <559>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 102 | }; |
| 103 | |
| 104 | qcom,pm-cpu-level@2 { /* C3 */ |
| 105 | reg = <2>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 106 | label = "pc"; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 107 | qcom,psci-cpu-mode = <0x3>; |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 108 | qcom,latency-us = <901>; |
| 109 | qcom,ss-power = <364>; |
| 110 | qcom,energy-overhead = <579285>; |
| 111 | qcom,time-overhead = <1450>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 112 | qcom,is-reset; |
| 113 | qcom,use-broadcast-timer; |
| 114 | }; |
| 115 | |
| 116 | qcom,pm-cpu-level@3 { /* C4 */ |
| 117 | reg = <3>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 118 | label = "rail-pc"; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 119 | qcom,psci-cpu-mode = <0x4>; |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 120 | qcom,latency-us = <915>; |
| 121 | qcom,ss-power = <353>; |
| 122 | qcom,energy-overhead = <666292>; |
| 123 | qcom,time-overhead = <1617>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 124 | qcom,is-reset; |
| 125 | qcom,use-broadcast-timer; |
| 126 | }; |
| 127 | }; |
| 128 | |
| 129 | qcom,pm-cpu@1 { |
| 130 | #address-cells = <1>; |
| 131 | #size-cells = <0>; |
| 132 | qcom,psci-mode-shift = <0>; |
| 133 | qcom,psci-mode-mask = <0xf>; |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 134 | qcom,use-prediction; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 135 | qcom,cpu = <&CPU6 &CPU7>; |
| 136 | |
| 137 | qcom,pm-cpu-level@0 { /* C1 */ |
| 138 | reg = <0>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 139 | label = "wfi"; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 140 | qcom,psci-cpu-mode = <0x1>; |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 141 | qcom,latency-us = <66>; |
| 142 | qcom,ss-power = <427>; |
| 143 | qcom,energy-overhead = <68410>; |
| 144 | qcom,time-overhead = <121>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 145 | }; |
| 146 | |
| 147 | qcom,pm-cpu-level@1 { /* C2D */ |
| 148 | reg = <1>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 149 | label = "ret"; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 150 | qcom,psci-cpu-mode = <0x2>; |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 151 | qcom,latency-us = <282>; |
| 152 | qcom,ss-power = <388>; |
| 153 | qcom,energy-overhead = <281755>; |
| 154 | qcom,time-overhead = <553>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 155 | }; |
| 156 | |
| 157 | qcom,pm-cpu-level@2 { /* C3 */ |
| 158 | reg = <2>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 159 | label = "pc"; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 160 | qcom,psci-cpu-mode = <0x3>; |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 161 | qcom,latency-us = <1244>; |
| 162 | qcom,ss-power = <373>; |
| 163 | qcom,energy-overhead = <795006>; |
| 164 | qcom,time-overhead = <1767>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 165 | qcom,is-reset; |
| 166 | qcom,use-broadcast-timer; |
| 167 | }; |
| 168 | |
| 169 | qcom,pm-cpu-level@3 { /* C4 */ |
| 170 | reg = <3>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 171 | label = "rail-pc"; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 172 | qcom,psci-cpu-mode = <0x4>; |
Maulik Shah | b24e5c6 | 2017-11-16 18:37:28 +0530 | [diff] [blame] | 173 | qcom,latency-us = <1854>; |
| 174 | qcom,ss-power = <359>; |
| 175 | qcom,energy-overhead = <1068095>; |
| 176 | qcom,time-overhead = <2380>; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 177 | qcom,is-reset; |
| 178 | qcom,use-broadcast-timer; |
| 179 | }; |
| 180 | }; |
| 181 | }; |
| 182 | }; |
Maulik Shah | 682f981 | 2017-06-15 09:56:07 +0530 | [diff] [blame] | 183 | |
| 184 | qcom,rpm-stats@c300000 { |
| 185 | compatible = "qcom,rpm-stats"; |
| 186 | reg = <0xc300000 0x1000>, <0xc3f0004 0x4>; |
| 187 | reg-names = "phys_addr_base", "offset_addr"; |
| 188 | }; |
Maulik Shah | d313ea8 | 2017-06-14 13:10:52 +0530 | [diff] [blame] | 189 | }; |