Girish Mahadevan | fc5f5c3 | 2012-10-23 16:27:28 -0700 | [diff] [blame^] | 1 | /* Copyright (c) 2012, 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 | /include/ "skeleton.dtsi" |
| 14 | |
| 15 | / { |
| 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"; |
| 41 | qcom,resource-type = <0>; |
| 42 | qcom,type = <0x616F646C>; /* "ldoa" */ |
| 43 | qcom,id = <0x0A>; |
| 44 | qcom,key = <0x6e726f63>; /* "corn" */ |
| 45 | }; |
| 46 | |
| 47 | qcom,lpm-resources@1 { |
| 48 | reg = <0x1>; |
| 49 | qcom,name = "vdd-mem"; |
| 50 | qcom,resource-type = <0>; |
| 51 | qcom,type = <0x616F646C>; /* "ldoa" */ |
| 52 | qcom,id = <0x0C>; |
| 53 | qcom,key = <0x7675>; /* "uv" */ |
| 54 | }; |
| 55 | |
| 56 | qcom,lpm-resources@2 { |
| 57 | reg = <0x2>; |
| 58 | qcom,name = "pxo"; |
| 59 | qcom,resource-type = <0>; |
| 60 | qcom,type = <0x306b6c63>; /* "clk0" */ |
| 61 | qcom,id = <0x00>; |
| 62 | qcom,key = <0x62616e45>; /* "Enab" */ |
| 63 | }; |
| 64 | }; |
| 65 | |
| 66 | qcom,lpm-levels { |
| 67 | compatible = "qcom,lpm-levels"; |
| 68 | #address-cells = <1>; |
| 69 | #size-cells = <0>; |
| 70 | |
| 71 | qcom,lpm-level@0 { |
| 72 | reg = <0x0>; |
| 73 | qcom,mode = <0>; /* MSM_PM_SLEEP_MODE_WAIT_FOR_INTERRUPT */ |
| 74 | qcom,xo = <1>; /* ON */ |
| 75 | qcom,l2 = <3>; /* ACTIVE */ |
| 76 | qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */ |
| 77 | qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */ |
| 78 | qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */ |
| 79 | qcom,vdd-dig-lower-bound = <4>; /* NORMAL */ |
| 80 | qcom,latency-us = <100>; |
| 81 | qcom,ss-power = <8000>; |
| 82 | qcom,energy-overhead = <100000>; |
| 83 | qcom,time-overhead = <1>; |
| 84 | }; |
| 85 | |
| 86 | qcom,lpm-level@1 { |
| 87 | reg = <0x1>; |
| 88 | qcom,mode = <2>; /* MSM_PM_SLEEP_MODE_STANDALONE_POWER_COLLAPSE */ |
| 89 | qcom,xo = <1>; /* ON */ |
| 90 | qcom,l2 = <3>; /* ACTIVE */ |
| 91 | qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */ |
| 92 | qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */ |
| 93 | qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */ |
| 94 | qcom,vdd-dig-lower-bound = <4>; /* NORMAL */ |
| 95 | qcom,latency-us = <2000>; |
| 96 | qcom,ss-power = <5000>; |
| 97 | qcom,energy-overhead = <60100000>; |
| 98 | qcom,time-overhead = <3000>; |
| 99 | }; |
| 100 | |
| 101 | qcom,lpm-level@2 { |
| 102 | reg = <0x2>; |
| 103 | qcom,mode = <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */ |
| 104 | qcom,xo = <1>; /* ON */ |
| 105 | qcom,l2 = <1>; /* GDHS */ |
| 106 | qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */ |
| 107 | qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */ |
| 108 | qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */ |
| 109 | qcom,vdd-dig-lower-bound = <4>; /* NORMAL */ |
| 110 | qcom,latency-us = <3500>; |
| 111 | qcom,ss-power = <5000>; |
| 112 | qcom,energy-overhead = <60350000>; |
| 113 | qcom,time-overhead = <6300>; |
| 114 | }; |
| 115 | |
| 116 | qcom,lpm-level@3 { |
| 117 | reg = <0x3>; |
| 118 | qcom,mode= <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */ |
| 119 | qcom,xo = <0>; /* OFF */ |
| 120 | qcom,l2 = <0>; /* OFF */ |
| 121 | qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */ |
| 122 | qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */ |
| 123 | qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */ |
| 124 | qcom,vdd-dig-lower-bound = <4>; /* NORMAL */ |
| 125 | qcom,latency-us = <6800>; |
| 126 | qcom,ss-power = <2000>; |
| 127 | qcom,energy-overhead = <71850000>; |
| 128 | qcom,time-overhead = <13300>; |
| 129 | }; |
| 130 | |
| 131 | qcom,lpm-level@4 { |
| 132 | reg = <0x4>; |
| 133 | qcom,mode= <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */ |
| 134 | qcom,xo = <0>; /* OFF */ |
| 135 | qcom,l2 = <0>; /* OFF */ |
| 136 | qcom,vdd-mem-upper-bound = <950000>; /* SVS SOC */ |
| 137 | qcom,vdd-mem-lower-bound = <675000>; /* RETENTION */ |
| 138 | qcom,vdd-dig-upper-bound = <3>; /* SVS SOC */ |
| 139 | qcom,vdd-dig-lower-bound = <1>; /* RETENTION */ |
| 140 | qcom,latency-us = <9800>; |
| 141 | qcom,ss-power = <0>; |
| 142 | qcom,energy-overhead = <76350000>; |
| 143 | qcom,time-overhead = <28300>; |
| 144 | }; |
| 145 | }; |
| 146 | |
| 147 | qcom,pm-boot { |
| 148 | compatible = "qcom,pm-boot"; |
| 149 | qcom,mode = <0>; /* MSM_PM_BOOT_CONFIG_TZ */ |
| 150 | }; |
| 151 | |
| 152 | qcom,mpm@fc4281d0 { |
| 153 | compatible = "qcom,mpm-v2"; |
| 154 | reg = <0xfc4281d0 0x1000>, /* MSM_RPM_MPM_BASE 4K */ |
| 155 | <0xf9011008 0x4>; /* MSM_APCS_GCC_BASE 4K */ |
| 156 | reg-names = "vmpm", "ipc"; |
| 157 | interrupts = <0 171 1>; |
| 158 | |
| 159 | qcom,ipc-bit-offset = <1>; |
| 160 | |
| 161 | qcom,gic-parent = <&intc>; |
| 162 | qcom,gic-map = <41 172>, /* usb2_hsic_async_wakeup_irq */ |
| 163 | <0xff 208>; /* summary_irq_kpss */ |
| 164 | |
| 165 | qcom,gpio-parent = <&msmgpio>; |
| 166 | qcom,gpio-map = <4 1>, |
| 167 | <5 5>, |
| 168 | <6 9>, |
| 169 | <7 18>, |
| 170 | <8 20>, |
| 171 | <9 24>, |
| 172 | <10 27>, |
| 173 | <11 28>, |
| 174 | <12 34>, |
| 175 | <13 35>, |
| 176 | <14 37>, |
| 177 | <15 42>, |
| 178 | <16 44>, |
| 179 | <17 46>, |
| 180 | <18 50>, |
| 181 | <19 54>, |
| 182 | <20 59>, |
| 183 | <21 61>, |
| 184 | <22 62>, |
| 185 | <23 64>, |
| 186 | <24 65>, |
| 187 | <25 66>, |
| 188 | <26 67>, |
| 189 | <27 68>, |
| 190 | <28 71>, |
| 191 | <29 72>, |
| 192 | <30 73>, |
| 193 | <31 74>, |
| 194 | <32 75>, |
| 195 | <33 77>, |
| 196 | <34 79>, |
| 197 | <35 80>, |
| 198 | <36 82>, |
| 199 | <37 86>; |
| 200 | }; |
| 201 | |
| 202 | qcom,pm-8x60 { |
| 203 | compatible = "qcom,pm-8x60"; |
| 204 | qcom,pc-mode = <2>; /*MSM_PC_TZ_L2_EXT */ |
| 205 | qcom,use-sync-timer; |
| 206 | }; |
| 207 | }; |