Swetha Chikkaboraiah | 5916226 | 2018-03-12 11:25:36 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015-2016, 2018, The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #include <dt-bindings/msm/pm.h> |
| 15 | |
| 16 | &soc { |
| 17 | qcom,spm@b012000 { |
| 18 | compatible = "qcom,spm-v2"; |
| 19 | #address-cells = <1>; |
| 20 | #size-cells = <1>; |
| 21 | reg = <0xb012000 0x1000>; |
| 22 | qcom,name = "perf-l2"; |
| 23 | qcom,saw2-ver-reg = <0xfd0>; |
| 24 | qcom,saw2-cfg = <0x14>; |
| 25 | qcom,saw2-spm-dly= <0x3C11840A>; |
| 26 | qcom,saw2-spm-ctl = <0xe>; |
| 27 | qcom,cpu-vctl-list = <&CPU0 &CPU1 &CPU2 &CPU3>; |
| 28 | qcom,vctl-timeout-us = <500>; |
| 29 | qcom,vctl-port = <0x0>; |
| 30 | }; |
| 31 | |
| 32 | qcom,lpm-levels { |
| 33 | compatible = "qcom,lpm-levels"; |
| 34 | qcom,use-psci; |
| 35 | #address-cells = <1>; |
| 36 | #size-cells = <0>; |
| 37 | |
| 38 | qcom,pm-cluster@0{ |
| 39 | reg = <0>; |
| 40 | #address-cells = <1>; |
| 41 | #size-cells = <0>; |
| 42 | label = "perf"; |
| 43 | qcom,spm-device-names = "l2"; |
| 44 | qcom,default-level=<0>; |
| 45 | qcom,psci-mode-shift = <4>; |
| 46 | qcom,psci-mode-mask = <0xf>; |
| 47 | |
| 48 | qcom,pm-cluster-level@0{ |
| 49 | reg = <0>; |
| 50 | label = "perf-l2-wfi"; |
| 51 | qcom,psci-mode = <1>; |
| 52 | qcom,latency-us = <180>; |
| 53 | qcom,ss-power = <429>; |
| 54 | qcom,energy-overhead = <162991>; |
| 55 | qcom,time-overhead = <305>; |
| 56 | }; |
| 57 | |
| 58 | qcom,pm-cluster-level@1{ |
| 59 | reg = <1>; |
| 60 | label = "perf-l2-gdhs"; |
| 61 | qcom,psci-mode = <4>; |
| 62 | qcom,latency-us = <280>; |
| 63 | qcom,ss-power = <421>; |
| 64 | qcom,energy-overhead = <257510>; |
| 65 | qcom,time-overhead = <520>; |
| 66 | qcom,min-child-idx = <1>; |
| 67 | qcom,reset-level = <LPM_RESET_LVL_GDHS>; |
| 68 | }; |
| 69 | |
| 70 | qcom,pm-cluster-level@2{ |
| 71 | reg = <2>; |
| 72 | label = "perf-l2-retention"; |
| 73 | qcom,psci-mode = <2>; |
| 74 | qcom,latency-us = <650>; |
| 75 | qcom,ss-power = <350>; |
| 76 | qcom,energy-overhead = <651061>; |
| 77 | qcom,time-overhead = <1350>; |
| 78 | qcom,min-child-idx = <1>; |
| 79 | qcom,reset-level = <LPM_RESET_LVL_RET>; |
| 80 | }; |
| 81 | |
| 82 | qcom,pm-cluster-level@3{ |
| 83 | reg = <3>; |
| 84 | label = "perf-l2-pc"; |
| 85 | qcom,psci-mode = <5>; |
| 86 | qcom,latency-us = <11200>; |
| 87 | qcom,ss-power = <320>; |
| 88 | qcom,energy-overhead = <917561>; |
| 89 | qcom,time-overhead = <1700>; |
| 90 | qcom,min-child-idx = <1>; |
| 91 | qcom,is-reset; |
| 92 | qcom,notify-rpm; |
| 93 | qcom,reset-level = <LPM_RESET_LVL_PC>; |
| 94 | }; |
| 95 | |
| 96 | qcom,pm-cpu { |
| 97 | #address-cells = <1>; |
| 98 | #size-cells = <0>; |
| 99 | qcom,psci-mode-shift = <0>; |
| 100 | qcom,psci-mode-mask = <0xf>; |
| 101 | |
| 102 | qcom,pm-cpu-level@0 { |
| 103 | reg = <0>; |
| 104 | qcom,psci-cpu-mode = <0>; |
| 105 | label = "wfi"; |
| 106 | qcom,latency-us = <12>; |
| 107 | qcom,ss-power = <463>; |
| 108 | qcom,energy-overhead = <23520>; |
| 109 | qcom,time-overhead = <25>; |
| 110 | }; |
| 111 | |
| 112 | qcom,pm-cpu-level@1 { |
| 113 | reg = <1>; |
| 114 | qcom,psci-cpu-mode = <3>; |
| 115 | label = "pc"; |
| 116 | qcom,latency-us = <180>; |
| 117 | qcom,ss-power = <429>; |
| 118 | qcom,energy-overhead = <162991>; |
| 119 | qcom,time-overhead = <305>; |
| 120 | qcom,use-broadcast-timer; |
| 121 | qcom,is-reset; |
| 122 | qcom,reset-level = <LPM_RESET_LVL_PC>; |
| 123 | }; |
| 124 | }; |
| 125 | }; |
| 126 | }; |
| 127 | |
| 128 | qcom,cpu-sleep-status { |
| 129 | compatible = "qcom,cpu-sleep-status"; |
| 130 | }; |
| 131 | }; |