Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 | // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2018, Craig Tatlor. * Copyright (c) 2020, Alexey Minnekhanov <alexey.min@gmail.com> * Copyright (c) 2020, AngeloGioacchino Del Regno <kholk11@gmail.com> * Copyright (c) 2020, Konrad Dybcio <konradybcio@gmail.com> * Copyright (c) 2020, Martin Botka <martin.botka1@gmail.com> */ #include "sdm630.dtsi" /delete-node/ &buffer_mem; / { smp2p-cdsp { compatible = "qcom,smp2p"; qcom,smem = <94>, <432>; interrupts = <GIC_SPI 514 IRQ_TYPE_EDGE_RISING>; mboxes = <&apcs_glb 30>; qcom,local-pid = <0>; qcom,remote-pid = <5>; cdsp_smp2p_out: master-kernel { qcom,entry-name = "master-kernel"; #qcom,smem-state-cells = <1>; }; cdsp_smp2p_in: slave-kernel { qcom,entry-name = "slave-kernel"; interrupt-controller; #interrupt-cells = <2>; }; }; reserved-memory { cdsp_region: cdsp@94a00000 { reg = <0x0 0x94a00000 0x00 0x600000>; no-map; }; }; }; &adreno_gpu { compatible = "qcom,adreno-512.0", "qcom,adreno"; operating-points-v2 = <&gpu_sdm660_opp_table>; gpu_sdm660_opp_table: opp-table { compatible = "operating-points-v2"; /* * 775MHz is only available on the highest speed bin * Though it cannot be used for now due to interconnect * framework not supporting multiple frequencies * at the same opp-level opp-750000000 { opp-hz = /bits/ 64 <750000000>; opp-level = <RPM_SMD_LEVEL_TURBO>; opp-peak-kBps = <5412000>; opp-supported-hw = <0xCHECKME>; }; * These OPPs are correct, but we are lacking support for the * GPU regulator. Hence, disable them for now to prevent the * platform from hanging on high graphics loads. opp-700000000 { opp-hz = /bits/ 64 <700000000>; opp-level = <RPM_SMD_LEVEL_TURBO>; opp-peak-kBps = <5184000>; opp-supported-hw = <0xff>; }; opp-647000000 { opp-hz = /bits/ 64 <647000000>; opp-level = <RPM_SMD_LEVEL_NOM_PLUS>; opp-peak-kBps = <4068000>; opp-supported-hw = <0xff>; }; opp-588000000 { opp-hz = /bits/ 64 <588000000>; opp-level = <RPM_SMD_LEVEL_NOM>; opp-peak-kBps = <3072000>; opp-supported-hw = <0xff>; }; opp-465000000 { opp-hz = /bits/ 64 <465000000>; opp-level = <RPM_SMD_LEVEL_SVS_PLUS>; opp-peak-kBps = <2724000>; opp-supported-hw = <0xff>; }; opp-370000000 { opp-hz = /bits/ 64 <370000000>; opp-level = <RPM_SMD_LEVEL_SVS>; opp-peak-kBps = <2188000>; opp-supported-hw = <0xff>; }; */ opp-266000000 { opp-hz = /bits/ 64 <266000000>; opp-level = <RPM_SMD_LEVEL_LOW_SVS>; opp-peak-kBps = <1648000>; opp-supported-hw = <0xff>; }; opp-160000000 { opp-hz = /bits/ 64 <160000000>; opp-level = <RPM_SMD_LEVEL_MIN_SVS>; opp-peak-kBps = <1200000>; opp-supported-hw = <0xff>; }; }; }; &cpu0 { compatible = "qcom,kryo260"; capacity-dmips-mhz = <1024>; /delete-property/ operating-points-v2; }; &cpu1 { compatible = "qcom,kryo260"; capacity-dmips-mhz = <1024>; /delete-property/ operating-points-v2; }; &cpu2 { compatible = "qcom,kryo260"; capacity-dmips-mhz = <1024>; /delete-property/ operating-points-v2; }; &cpu3 { compatible = "qcom,kryo260"; capacity-dmips-mhz = <1024>; /delete-property/ operating-points-v2; }; &cpu4 { compatible = "qcom,kryo260"; capacity-dmips-mhz = <640>; /delete-property/ operating-points-v2; }; &cpu5 { compatible = "qcom,kryo260"; capacity-dmips-mhz = <640>; /delete-property/ operating-points-v2; }; &cpu6 { compatible = "qcom,kryo260"; capacity-dmips-mhz = <640>; /delete-property/ operating-points-v2; }; &cpu7 { compatible = "qcom,kryo260"; capacity-dmips-mhz = <640>; /delete-property/ operating-points-v2; }; &gcc { compatible = "qcom,gcc-sdm660"; }; &gpucc { compatible = "qcom,gpucc-sdm660"; }; &mdp { compatible = "qcom,sdm660-mdp5", "qcom,mdp5"; ports { port@1 { reg = <1>; mdp5_intf2_out: endpoint { remote-endpoint = <&mdss_dsi1_in>; }; }; }; }; &mdss { mdss_dsi1: dsi@c996000 { compatible = "qcom,sdm660-dsi-ctrl", "qcom,mdss-dsi-ctrl"; reg = <0x0c996000 0x400>; reg-names = "dsi_ctrl"; /* DSI1 shares the OPP table with DSI0 */ operating-points-v2 = <&dsi_opp_table>; power-domains = <&rpmpd RPMPD_VDDCX>; interrupt-parent = <&mdss>; interrupts = <5>; assigned-clocks = <&mmcc BYTE1_CLK_SRC>, <&mmcc PCLK1_CLK_SRC>; assigned-clock-parents = <&mdss_dsi1_phy DSI_BYTE_PLL_CLK>, <&mdss_dsi1_phy DSI_PIXEL_PLL_CLK>; clocks = <&mmcc MDSS_MDP_CLK>, <&mmcc MDSS_BYTE1_CLK>, <&mmcc MDSS_BYTE1_INTF_CLK>, <&mmcc MNOC_AHB_CLK>, <&mmcc MDSS_AHB_CLK>, <&mmcc MDSS_AXI_CLK>, <&mmcc MISC_AHB_CLK>, <&mmcc MDSS_PCLK1_CLK>, <&mmcc MDSS_ESC1_CLK>; clock-names = "mdp_core", "byte", "byte_intf", "mnoc", "iface", "bus", "core_mmss", "pixel", "core"; phys = <&mdss_dsi1_phy>; status = "disabled"; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; mdss_dsi1_in: endpoint { remote-endpoint = <&mdp5_intf2_out>; }; }; port@1 { reg = <1>; mdss_dsi1_out: endpoint { }; }; }; }; mdss_dsi1_phy: phy@c996400 { compatible = "qcom,dsi-phy-14nm-660"; reg = <0x0c996400 0x100>, <0x0c996500 0x300>, <0x0c996800 0x188>; reg-names = "dsi_phy", "dsi_phy_lane", "dsi_pll"; #clock-cells = <1>; #phy-cells = <0>; clocks = <&mmcc MDSS_AHB_CLK>, <&rpmcc RPM_SMD_XO_CLK_SRC>; clock-names = "iface", "ref"; status = "disabled"; }; }; &mmcc { compatible = "qcom,mmcc-sdm660"; clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, <&sleep_clk>, <&gcc GCC_MMSS_GPLL0_CLK>, <&gcc GCC_MMSS_GPLL0_DIV_CLK>, <&mdss_dsi0_phy DSI_PIXEL_PLL_CLK>, <&mdss_dsi0_phy DSI_BYTE_PLL_CLK>, <&mdss_dsi1_phy DSI_PIXEL_PLL_CLK>, <&mdss_dsi1_phy DSI_BYTE_PLL_CLK>, <0>, <0>; }; &soc { cdsp_smmu: iommu@5180000 { compatible = "qcom,sdm630-smmu-v2", "qcom,smmu-v2"; reg = <0x5180000 0x40000>; #iommu-cells = <1>; #global-interrupts = <2>; interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 533 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 534 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 535 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 536 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 537 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 538 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 539 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 540 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 541 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 542 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 543 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 544 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 545 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 546 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 547 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 548 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 549 IRQ_TYPE_LEVEL_HIGH>; clocks = <&gcc GCC_HLOS1_VOTE_TURING_ADSP_SMMU_CLK>; clock-names = "bus"; power-domains = <&gcc HLOS1_VOTE_TURING_ADSP_GDSC>; }; remoteproc_cdsp: remoteproc@1a300000 { compatible = "qcom,sdm660-cdsp-pas"; reg = <0x1a300000 0x00100>; interrupts-extended = <&intc GIC_SPI 518 IRQ_TYPE_EDGE_RISING>, <&cdsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, <&cdsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, <&cdsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, <&cdsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; clock-names = "xo"; memory-region = <&cdsp_region>; power-domains = <&rpmpd SDM660_VDDCX>; power-domain-names = "cx"; qcom,smem-states = <&cdsp_smp2p_out 0>; qcom,smem-state-names = "stop"; glink-edge { interrupts = <GIC_SPI 513 IRQ_TYPE_EDGE_RISING>; label = "cdsp"; mboxes = <&apcs_glb 29>; qcom,remote-pid = <5>; fastrpc { compatible = "qcom,fastrpc"; qcom,glink-channels = "fastrpcglink-apps-dsp"; label = "cdsp"; #address-cells = <1>; #size-cells = <0>; compute-cb@5 { compatible = "qcom,fastrpc-compute-cb"; reg = <5>; iommus = <&cdsp_smmu 3>; }; compute-cb@6 { compatible = "qcom,fastrpc-compute-cb"; reg = <6>; iommus = <&cdsp_smmu 4>; }; compute-cb@7 { compatible = "qcom,fastrpc-compute-cb"; reg = <7>; iommus = <&cdsp_smmu 5>; }; compute-cb@8 { compatible = "qcom,fastrpc-compute-cb"; reg = <8>; iommus = <&cdsp_smmu 6>; }; compute-cb@9 { compatible = "qcom,fastrpc-compute-cb"; reg = <9>; iommus = <&cdsp_smmu 7>; }; compute-cb@10 { compatible = "qcom,fastrpc-compute-cb"; reg = <10>; iommus = <&cdsp_smmu 8>; }; compute-cb@11 { compatible = "qcom,fastrpc-compute-cb"; reg = <11>; iommus = <&cdsp_smmu 9>; }; compute-cb@12 { compatible = "qcom,fastrpc-compute-cb"; reg = <12>; iommus = <&cdsp_smmu 10>; }; compute-cb@13 { compatible = "qcom,fastrpc-compute-cb"; reg = <13>; iommus = <&cdsp_smmu 11>; }; }; }; }; }; &tlmm { compatible = "qcom,sdm660-pinctrl"; }; &tsens { #qcom,sensors = <14>; }; |