Maria Yu | 6451c37 | 2017-09-28 17:04:28 +0800 | [diff] [blame] | 1 | /* |
Shefali Jain | 235fab7 | 2018-01-05 13:10:38 +0530 | [diff] [blame] | 2 | * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. |
Maria Yu | 6451c37 | 2017-09-28 17:04:28 +0800 | [diff] [blame] | 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 "msm8953.dtsi" |
| 15 | |
| 16 | / { |
| 17 | model = "Qualcomm Technologies, Inc. SDM450"; |
| 18 | compatible = "qcom,sdm450"; |
| 19 | qcom,msm-id = <338 0x0>; |
Maria Yu | f307a0f | 2017-11-24 16:34:30 +0800 | [diff] [blame] | 20 | qcom,msm-name = "SDM450"; |
Maria Yu | 6451c37 | 2017-09-28 17:04:28 +0800 | [diff] [blame] | 21 | }; |
| 22 | |
Maria Yu | 3f75132 | 2017-12-07 19:45:07 +0800 | [diff] [blame] | 23 | &CPU4 { |
| 24 | efficiency = <1024>; |
| 25 | }; |
| 26 | |
| 27 | &CPU5 { |
| 28 | efficiency = <1024>; |
| 29 | }; |
| 30 | |
| 31 | &CPU6 { |
| 32 | efficiency = <1024>; |
| 33 | }; |
| 34 | |
| 35 | &CPU7 { |
| 36 | efficiency = <1024>; |
| 37 | }; |
Shefali Jain | 235fab7 | 2018-01-05 13:10:38 +0530 | [diff] [blame] | 38 | |
| 39 | &clock_gcc_gfx { |
| 40 | compatible = "qcom,gcc-gfx-sdm450"; |
| 41 | qcom,gfxfreq-corner = |
| 42 | < 0 0 >, |
| 43 | < 133330000 1 >, /* Min SVS */ |
| 44 | < 216000000 2 >, /* Low SVS */ |
| 45 | < 320000000 3 >, /* SVS */ |
| 46 | < 400000000 4 >, /* SVS Plus */ |
| 47 | < 510000000 5 >, /* NOM */ |
| 48 | < 560000000 6 >, /* Nom Plus */ |
| 49 | < 600000000 7 >; /* Turbo */ |
| 50 | }; |
Sunil Khatri | 18f32cb | 2018-01-03 17:38:43 +0530 | [diff] [blame] | 51 | |
| 52 | /* GPU Overrides*/ |
| 53 | &msm_gpu { |
| 54 | |
| 55 | /delete-node/qcom,gpu-pwrlevels; |
| 56 | |
| 57 | qcom,gpu-pwrlevels { |
| 58 | #address-cells = <1>; |
| 59 | #size-cells = <0>; |
| 60 | |
| 61 | compatible = "qcom,gpu-pwrlevels"; |
| 62 | |
| 63 | /* TURBO */ |
| 64 | qcom,gpu-pwrlevel@0 { |
| 65 | reg = <0>; |
| 66 | qcom,gpu-freq = <600000000>; |
| 67 | qcom,bus-freq = <10>; |
| 68 | qcom,bus-min = <10>; |
| 69 | qcom,bus-max = <10>; |
| 70 | }; |
| 71 | |
| 72 | /* NOM+ */ |
| 73 | qcom,gpu-pwrlevel@1 { |
| 74 | reg = <1>; |
| 75 | qcom,gpu-freq = <560000000>; |
| 76 | qcom,bus-freq = <10>; |
| 77 | qcom,bus-min = <8>; |
| 78 | qcom,bus-max = <10>; |
| 79 | }; |
| 80 | |
| 81 | /* NOM */ |
| 82 | qcom,gpu-pwrlevel@2 { |
| 83 | reg = <2>; |
| 84 | qcom,gpu-freq = <510000000>; |
| 85 | qcom,bus-freq = <9>; |
| 86 | qcom,bus-min = <6>; |
| 87 | qcom,bus-max = <10>; |
| 88 | }; |
| 89 | |
| 90 | /* SVS+ */ |
| 91 | qcom,gpu-pwrlevel@3 { |
| 92 | reg = <3>; |
| 93 | qcom,gpu-freq = <400000000>; |
| 94 | qcom,bus-freq = <7>; |
| 95 | qcom,bus-min = <5>; |
| 96 | qcom,bus-max = <8>; |
| 97 | }; |
| 98 | |
| 99 | /* SVS */ |
| 100 | qcom,gpu-pwrlevel@4 { |
| 101 | reg = <4>; |
| 102 | qcom,gpu-freq = <320000000>; |
| 103 | qcom,bus-freq = <4>; |
| 104 | qcom,bus-min = <2>; |
| 105 | qcom,bus-max = <6>; |
| 106 | }; |
| 107 | |
| 108 | /* Low SVS */ |
| 109 | qcom,gpu-pwrlevel@5 { |
| 110 | reg = <5>; |
| 111 | qcom,gpu-freq = <216000000>; |
| 112 | qcom,bus-freq = <1>; |
| 113 | qcom,bus-min = <1>; |
| 114 | qcom,bus-max = <4>; |
| 115 | }; |
| 116 | |
| 117 | /* Min SVS */ |
| 118 | qcom,gpu-pwrlevel@6 { |
| 119 | reg = <6>; |
| 120 | qcom,gpu-freq = <133300000>; |
| 121 | qcom,bus-freq = <1>; |
| 122 | qcom,bus-min = <1>; |
| 123 | qcom,bus-max = <4>; |
| 124 | }; |
| 125 | /* XO */ |
| 126 | qcom,gpu-pwrlevel@7 { |
| 127 | reg = <7>; |
| 128 | qcom,gpu-freq = <19200000>; |
| 129 | qcom,bus-freq = <0>; |
| 130 | qcom,bus-min = <0>; |
| 131 | }; |
| 132 | }; |
| 133 | }; |