Vijayavardhan Vennapusa | 439783e | 2019-11-12 11:15:52 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved. |
Raja Mallik | aac1e599 | 2018-02-16 14:54:12 +0530 | [diff] [blame] | 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 | |
Raja Mallik | aac1e599 | 2018-02-16 14:54:12 +0530 | [diff] [blame] | 13 | &soc { |
| 14 | /delete-node/ qcom,clock-a7@0b011050; |
| 15 | clock_cpu: qcom,clock-a7@0b011050 { |
| 16 | compatible = "qcom,clock-a53-8916"; |
| 17 | reg = <0x0b011050 0x8>, |
| 18 | <0x0005c00c 0x8>; |
| 19 | reg-names = "rcg-base", "efuse"; |
| 20 | qcom,safe-freq = < 400000000 >; |
| 21 | cpu-vdd-supply = <&apc_vreg_corner>; |
| 22 | clocks = <&clock_gcc clk_gpll0_ao_clk_src>, |
| 23 | <&clock_gcc clk_a7sspll>; |
| 24 | clock-names = "clk-4", "clk-5"; |
Taniya Das | a4af320 | 2018-03-20 08:59:11 +0530 | [diff] [blame] | 25 | qcom,enable-opp; |
Raja Mallik | aac1e599 | 2018-02-16 14:54:12 +0530 | [diff] [blame] | 26 | qcom,speed0-bin-v0 = |
| 27 | < 0 0>, |
| 28 | < 800000000 4>, |
| 29 | < 1267200000 9>; |
| 30 | |
| 31 | qcom,speed2-bin-v0 = |
| 32 | < 0 0>, |
| 33 | < 800000000 4>, |
| 34 | < 1094400000 6>; |
| 35 | #clock-cells = <1>; |
| 36 | }; |
| 37 | |
| 38 | /delete-node/ qcom,msm-cpufreq; |
| 39 | qcom,msm-cpufreq { |
| 40 | reg = <0 4>; |
| 41 | compatible = "qcom,msm-cpufreq"; |
| 42 | clocks = <&clock_cpu clk_a7ssmux>, |
| 43 | <&clock_cpu clk_a7ssmux>, |
| 44 | <&clock_cpu clk_a7ssmux>, |
| 45 | <&clock_cpu clk_a7ssmux>; |
| 46 | clock-names = "cpu0_clk", "cpu1_clk", |
| 47 | "cpu2_clk", "cpu3_clk"; |
| 48 | qcom,cpufreq-table = |
| 49 | < 800000 >, |
| 50 | < 1094400 >, |
| 51 | < 1267200 >; |
| 52 | }; |
| 53 | |
| 54 | /delete-node/ qcom,cpubw; |
| 55 | cpubw: qcom,cpubw { |
| 56 | compatible = "qcom,devbw"; |
| 57 | governor = "cpufreq"; |
| 58 | qcom,src-dst-ports = <1 512>; |
| 59 | qcom,active-only; |
| 60 | qcom,bw-tbl = |
| 61 | < 732 /* 96 MHz */>, |
| 62 | < 1464 /* 192 MHz */>, |
| 63 | < 2929 /* 384 MHz */>; |
| 64 | }; |
| 65 | |
| 66 | /delete-node/ devfreq-cpufreq; |
| 67 | devfreq-cpufreq { |
| 68 | cpubw-cpufreq { |
| 69 | target-dev = <&cpubw>; |
| 70 | cpu-to-dev-map = |
| 71 | < 800000 1464>, |
| 72 | < 1094400 2929>, |
| 73 | < 1267200 2929>; |
| 74 | }; |
| 75 | }; |
| 76 | }; |
| 77 | |
Vijayavardhan Vennapusa | 439783e | 2019-11-12 11:15:52 +0530 | [diff] [blame] | 78 | &usb_otg { |
| 79 | qcom,enumeration-check-for-sdp; |
| 80 | }; |
| 81 | |
Raja Mallik | aac1e599 | 2018-02-16 14:54:12 +0530 | [diff] [blame] | 82 | &qcom_crypto { |
| 83 | qcom,msm-bus,vectors-KBps = |
| 84 | <55 512 0 0>, |
| 85 | <55 512 393600 393600>; /* 49.2MHz & 49.2MHz */ |
| 86 | }; |
| 87 | |
| 88 | &qcom_cedev { |
| 89 | qcom,msm-bus,vectors-KBps = |
| 90 | <55 512 0 0>, |
| 91 | <55 512 393600 393600>; /* 49.2MHz & 49.2MHz */ |
| 92 | }; |
| 93 | |
| 94 | &qcom_seecom { |
| 95 | qcom,msm-bus,vectors-KBps = |
| 96 | <55 512 0 0>, |
| 97 | <55 512 0 0>, |
| 98 | <55 512 196800 196800>, |
| 99 | <55 512 393600 393600>; |
| 100 | }; |
Arun kumar | 8e24ce1 | 2018-03-21 22:16:36 +0530 | [diff] [blame] | 101 | |
| 102 | &mdss_dsi0 { |
| 103 | qcom,dsi-pref-prim-pan = <&dsi_auo_cx_qvga_cmd>; |
| 104 | pinctrl-names = "mdss_default", "mdss_sleep"; |
| 105 | pinctrl-0 = <&mdss_dsi_active &mdss_te_active>; |
| 106 | pinctrl-1 = <&mdss_dsi_suspend &mdss_te_suspend>; |
| 107 | |
| 108 | qcom,platform-te-gpio = <&msm_gpio 24 0>; |
| 109 | qcom,platform-reset-gpio = <&msm_gpio 25 0>; |
| 110 | qcom,platform-bklight-en-gpio = <&msm_gpio 37 0>; |
| 111 | }; |
Chinkit Kumar,Kirti Kumar Parmar | 3f8026c | 2018-06-01 23:59:55 +0530 | [diff] [blame] | 112 | |
| 113 | &thermal_zones { |
| 114 | gpu-step { |
| 115 | trips { |
| 116 | gpu-step-trip { |
| 117 | temperature = <70000>; |
| 118 | }; |
| 119 | }; |
| 120 | }; |
| 121 | cpu0-2-step { |
| 122 | trips { |
| 123 | cpu0-2-step-trip { |
| 124 | temperature = <60000>; |
| 125 | }; |
| 126 | }; |
| 127 | }; |
| 128 | cpu1-3-step { |
| 129 | trips { |
| 130 | cpu1-3-step-trip { |
| 131 | temperature = <60000>; |
| 132 | }; |
| 133 | }; |
| 134 | }; |
| 135 | |
| 136 | case-therm-step { |
| 137 | polling-delay-passive = <5000>; |
| 138 | polling-delay = <0>; |
| 139 | thermal-sensors = <&pm660_adc_tm 0x51>; |
| 140 | thermal-governor = "step_wise"; |
| 141 | trips { |
| 142 | cpu_freq_trip: cpu-freq-trip { |
| 143 | temperature = <40000>; |
| 144 | hysteresis = <0>; |
| 145 | type = "passive"; |
| 146 | }; |
| 147 | modem_mon_trip0: modem-mon-trip0 { |
| 148 | temperature = <47000>; |
| 149 | hysteresis = <2000>; |
| 150 | type = "passive"; |
| 151 | }; |
| 152 | modem_mon_trip1: modem-mon-trip1 { |
| 153 | temperature = <55000>; |
| 154 | hysteresis = <2000>; |
| 155 | type = "passive"; |
| 156 | }; |
| 157 | cpu1_hotplug_trip: cpu1-hotplug-trip { |
| 158 | temperature = <49000>; |
| 159 | hysteresis = <3000>; |
| 160 | type = "passive"; |
| 161 | }; |
| 162 | }; |
| 163 | cooling-maps { |
| 164 | cpu0_cdev { |
| 165 | trip = <&cpu_freq_trip>; |
| 166 | cooling-device = |
| 167 | <&CPU0 THERMAL_NO_LIMIT 2>; |
| 168 | }; |
| 169 | cpu1_cdev { |
| 170 | trip = <&cpu_freq_trip>; |
| 171 | cooling-device = |
| 172 | <&CPU1 THERMAL_NO_LIMIT 2>; |
| 173 | }; |
| 174 | cpu2_cdev { |
| 175 | trip = <&cpu_freq_trip>; |
| 176 | cooling-device = |
| 177 | <&CPU2 THERMAL_NO_LIMIT 2>; |
| 178 | }; |
| 179 | cpu3_cdev { |
| 180 | trip = <&cpu_freq_trip>; |
| 181 | cooling-device = |
| 182 | <&CPU3 THERMAL_NO_LIMIT 2>; |
| 183 | }; |
| 184 | modem_lvl1 { |
| 185 | trip = <&modem_mon_trip0>; |
| 186 | cooling-device = <&modem_pa 2 2>; |
| 187 | }; |
| 188 | modem_lvl2 { |
| 189 | trip = <&modem_mon_trip1>; |
| 190 | cooling-device = <&modem_pa 3 3>; |
| 191 | }; |
| 192 | hotplug_cpu1_cdev { |
| 193 | trip = <&cpu1_hotplug_trip>; |
| 194 | cooling-device = |
| 195 | <&CPU1 THERMAL_MAX_LIMIT |
| 196 | THERMAL_MAX_LIMIT>; |
| 197 | }; |
| 198 | }; |
| 199 | }; |
Chinkit Kumar,Kirti Kumar Parmar | 9cf462c | 2018-06-12 22:43:55 +0530 | [diff] [blame] | 200 | mdm-lowf { |
| 201 | cooling-maps { |
| 202 | cx_vdd_cdev { |
| 203 | cooling-device = <&pm660_cx_cdev 0 0>; |
| 204 | }; |
| 205 | }; |
| 206 | }; |
| 207 | camera-lowf { |
| 208 | cooling-maps { |
| 209 | cx_vdd_cdev { |
| 210 | cooling-device = <&pm660_cx_cdev 0 0>; |
| 211 | }; |
| 212 | }; |
| 213 | }; |
| 214 | gpu-lowf { |
| 215 | cooling-maps { |
| 216 | cx_vdd_cdev { |
| 217 | cooling-device = <&pm660_cx_cdev 0 0>; |
| 218 | }; |
| 219 | }; |
| 220 | }; |
| 221 | cpu0-2-lowf { |
| 222 | cooling-maps { |
| 223 | cx_vdd_cdev { |
| 224 | cooling-device = <&pm660_cx_cdev 0 0>; |
| 225 | }; |
| 226 | }; |
| 227 | }; |
| 228 | cpu1-3-lowf { |
| 229 | cooling-maps { |
| 230 | cx_vdd_cdev { |
| 231 | cooling-device = <&pm660_cx_cdev 0 0>; |
| 232 | }; |
| 233 | }; |
| 234 | }; |
Chinkit Kumar,Kirti Kumar Parmar | 3f8026c | 2018-06-01 23:59:55 +0530 | [diff] [blame] | 235 | }; |