Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 1 | /* Copyright (c) 2016-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 | */ |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 12 | |
| 13 | &soc { |
| 14 | qcom,lpm-levels { |
| 15 | compatible = "qcom,lpm-levels"; |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 16 | #address-cells = <1>; |
| 17 | #size-cells = <0>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 18 | |
Lina Iyer | 3afbb2b | 2017-03-14 14:30:51 -0600 | [diff] [blame] | 19 | qcom,pm-cluster@0 { |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 20 | reg = <0>; |
| 21 | #address-cells = <1>; |
| 22 | #size-cells = <0>; |
| 23 | label = "L3"; |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 24 | qcom,psci-mode-shift = <4>; |
Lina Iyer | 3afbb2b | 2017-03-14 14:30:51 -0600 | [diff] [blame] | 25 | qcom,psci-mode-mask = <0xfff>; |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 26 | |
Lina Iyer | 3afbb2b | 2017-03-14 14:30:51 -0600 | [diff] [blame] | 27 | qcom,pm-cluster-level@0 { /* D1 */ |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 28 | reg = <0>; |
| 29 | label = "l3-wfi"; |
| 30 | qcom,psci-mode = <0x1>; |
| 31 | qcom,latency-us = <51>; |
| 32 | qcom,ss-power = <452>; |
| 33 | qcom,energy-overhead = <69355>; |
| 34 | qcom,time-overhead = <99>; |
| 35 | }; |
Lina Iyer | 3afbb2b | 2017-03-14 14:30:51 -0600 | [diff] [blame] | 36 | |
Mahesh Sivasubramanian | 945fd6c | 2017-10-10 10:24:50 -0600 | [diff] [blame] | 37 | qcom,pm-cluster-level@1 { /* LLCC off, AOSS sleep */ |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 38 | reg = <1>; |
Lina Iyer | 3afbb2b | 2017-03-14 14:30:51 -0600 | [diff] [blame] | 39 | label = "llcc-off"; |
| 40 | qcom,psci-mode = <0xC24>; |
| 41 | qcom,latency-us = <6562>; |
| 42 | qcom,ss-power = <108>; |
Mahesh Sivasubramanian | 945fd6c | 2017-10-10 10:24:50 -0600 | [diff] [blame] | 43 | qcom,energy-overhead = <4000000>; |
| 44 | qcom,time-overhead = <5000>; |
| 45 | qcom,min-child-idx = <2>; |
Lina Iyer | 3afbb2b | 2017-03-14 14:30:51 -0600 | [diff] [blame] | 46 | qcom,is-reset; |
| 47 | qcom,notify-rpm; |
| 48 | }; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 49 | |
Mahesh Sivasubramanian | 168922d | 2017-06-09 09:47:52 -0600 | [diff] [blame] | 50 | qcom,pm-cpu@0 { |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 51 | #address-cells = <1>; |
| 52 | #size-cells = <0>; |
| 53 | qcom,psci-mode-shift = <0>; |
| 54 | qcom,psci-mode-mask = <0xf>; |
Mahesh Sivasubramanian | c6157e2 | 2017-10-16 16:49:33 -0600 | [diff] [blame] | 55 | qcom,use-prediction; |
Mahesh Sivasubramanian | 168922d | 2017-06-09 09:47:52 -0600 | [diff] [blame] | 56 | qcom,cpu = <&CPU0 &CPU1 &CPU2 &CPU3>; |
| 57 | |
| 58 | qcom,pm-cpu-level@0 { /* C1 */ |
| 59 | reg = <0>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 60 | label = "wfi"; |
Mahesh Sivasubramanian | 168922d | 2017-06-09 09:47:52 -0600 | [diff] [blame] | 61 | qcom,psci-cpu-mode = <0x1>; |
| 62 | qcom,latency-us = <43>; |
Mahesh Sivasubramanian | 945fd6c | 2017-10-10 10:24:50 -0600 | [diff] [blame] | 63 | qcom,ss-power = <150>; |
| 64 | qcom,energy-overhead = <10000>; |
| 65 | qcom,time-overhead = <100>; |
Mahesh Sivasubramanian | 168922d | 2017-06-09 09:47:52 -0600 | [diff] [blame] | 66 | }; |
| 67 | |
Mahesh Sivasubramanian | 945fd6c | 2017-10-10 10:24:50 -0600 | [diff] [blame] | 68 | qcom,pm-cpu-level@1 { /* C3 */ |
Mahesh Sivasubramanian | 168922d | 2017-06-09 09:47:52 -0600 | [diff] [blame] | 69 | reg = <1>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 70 | label = "pc"; |
Mahesh Sivasubramanian | 168922d | 2017-06-09 09:47:52 -0600 | [diff] [blame] | 71 | qcom,psci-cpu-mode = <0x3>; |
Mahesh Sivasubramanian | 179c00c | 2017-06-09 10:11:24 -0600 | [diff] [blame] | 72 | qcom,latency-us = <461>; |
Mahesh Sivasubramanian | 945fd6c | 2017-10-10 10:24:50 -0600 | [diff] [blame] | 73 | qcom,ss-power = <100>; |
| 74 | qcom,energy-overhead = <400000>; |
| 75 | qcom,time-overhead = <500>; |
Mahesh Sivasubramanian | 168922d | 2017-06-09 09:47:52 -0600 | [diff] [blame] | 76 | qcom,is-reset; |
| 77 | qcom,use-broadcast-timer; |
| 78 | }; |
| 79 | |
Mahesh Sivasubramanian | 945fd6c | 2017-10-10 10:24:50 -0600 | [diff] [blame] | 80 | qcom,pm-cpu-level@2 { /* C4 */ |
| 81 | reg = <2>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 82 | label = "rail-pc"; |
Mahesh Sivasubramanian | 168922d | 2017-06-09 09:47:52 -0600 | [diff] [blame] | 83 | qcom,psci-cpu-mode = <0x4>; |
Mahesh Sivasubramanian | 179c00c | 2017-06-09 10:11:24 -0600 | [diff] [blame] | 84 | qcom,latency-us = <531>; |
Mahesh Sivasubramanian | 945fd6c | 2017-10-10 10:24:50 -0600 | [diff] [blame] | 85 | qcom,ss-power = <73>; |
| 86 | qcom,energy-overhead = <500000>; |
| 87 | qcom,time-overhead = <600>; |
Mahesh Sivasubramanian | 168922d | 2017-06-09 09:47:52 -0600 | [diff] [blame] | 88 | qcom,is-reset; |
| 89 | qcom,use-broadcast-timer; |
| 90 | }; |
| 91 | }; |
| 92 | |
| 93 | qcom,pm-cpu@1 { |
| 94 | #address-cells = <1>; |
| 95 | #size-cells = <0>; |
| 96 | qcom,psci-mode-shift = <0>; |
| 97 | qcom,psci-mode-mask = <0xf>; |
| 98 | qcom,cpu = <&CPU4 &CPU5 &CPU6 &CPU7>; |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 99 | |
| 100 | qcom,pm-cpu-level@0 { /* C1 */ |
| 101 | reg = <0>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 102 | label = "wfi"; |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 103 | qcom,psci-cpu-mode = <0x1>; |
| 104 | qcom,latency-us = <43>; |
| 105 | qcom,ss-power = <454>; |
| 106 | qcom,energy-overhead = <38639>; |
| 107 | qcom,time-overhead = <83>; |
| 108 | }; |
| 109 | |
Mahesh Sivasubramanian | 945fd6c | 2017-10-10 10:24:50 -0600 | [diff] [blame] | 110 | qcom,pm-cpu-level@1 { /* C3 */ |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 111 | reg = <1>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 112 | label = "pc"; |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 113 | qcom,psci-cpu-mode = <0x3>; |
Mahesh Sivasubramanian | 179c00c | 2017-06-09 10:11:24 -0600 | [diff] [blame] | 114 | qcom,latency-us = <621>; |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 115 | qcom,ss-power = <436>; |
| 116 | qcom,energy-overhead = <418225>; |
| 117 | qcom,time-overhead = <885>; |
| 118 | qcom,is-reset; |
Lina Iyer | 3afbb2b | 2017-03-14 14:30:51 -0600 | [diff] [blame] | 119 | qcom,use-broadcast-timer; |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 120 | }; |
Lina Iyer | 3afbb2b | 2017-03-14 14:30:51 -0600 | [diff] [blame] | 121 | |
Mahesh Sivasubramanian | 945fd6c | 2017-10-10 10:24:50 -0600 | [diff] [blame] | 122 | qcom,pm-cpu-level@2 { /* C4 */ |
| 123 | reg = <2>; |
Maulik Shah | bdf541d | 2017-07-03 12:56:14 +0530 | [diff] [blame] | 124 | label = "rail-pc"; |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 125 | qcom,psci-cpu-mode = <0x4>; |
Mahesh Sivasubramanian | 179c00c | 2017-06-09 10:11:24 -0600 | [diff] [blame] | 126 | qcom,latency-us = <1061>; |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 127 | qcom,ss-power = <400>; |
| 128 | qcom,energy-overhead = <428225>; |
| 129 | qcom,time-overhead = <1000>; |
| 130 | qcom,is-reset; |
Lina Iyer | 3afbb2b | 2017-03-14 14:30:51 -0600 | [diff] [blame] | 131 | qcom,use-broadcast-timer; |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 132 | }; |
| 133 | }; |
| 134 | }; |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 135 | }; |
Lina Iyer | 893b7eb | 2017-03-16 14:05:31 -0600 | [diff] [blame] | 136 | |
| 137 | qcom,rpm-stats@c300000 { |
| 138 | compatible = "qcom,rpm-stats"; |
| 139 | reg = <0xC300000 0x1000>, <0xC3F0004 0x4>; |
| 140 | reg-names = "phys_addr_base", "offset_addr"; |
| 141 | }; |
Mahesh Sivasubramanian | 7a7b3c7 | 2016-11-04 14:31:59 -0600 | [diff] [blame] | 142 | }; |