1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * sc7280 SoC device tree source 4 * 5 * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. 6 */ 7 8#include <dt-bindings/clock/qcom,gcc-sc7280.h> 9#include <dt-bindings/clock/qcom,rpmh.h> 10#include <dt-bindings/interrupt-controller/arm-gic.h> 11#include <dt-bindings/soc/qcom,rpmh-rsc.h> 12 13/ { 14 interrupt-parent = <&intc>; 15 16 #address-cells = <2>; 17 #size-cells = <2>; 18 19 chosen { }; 20 21 clocks { 22 xo_board: xo-board { 23 compatible = "fixed-clock"; 24 clock-frequency = <76800000>; 25 #clock-cells = <0>; 26 }; 27 28 sleep_clk: sleep-clk { 29 compatible = "fixed-clock"; 30 clock-frequency = <32000>; 31 #clock-cells = <0>; 32 }; 33 }; 34 35 reserved-memory { 36 #address-cells = <2>; 37 #size-cells = <2>; 38 ranges; 39 40 aop_mem: memory@80800000 { 41 reg = <0x0 0x80800000 0x0 0x60000>; 42 no-map; 43 }; 44 45 aop_cmd_db_mem: memory@80860000 { 46 reg = <0x0 0x80860000 0x0 0x20000>; 47 compatible = "qcom,cmd-db"; 48 no-map; 49 }; 50 51 cpucp_mem: memory@80b00000 { 52 no-map; 53 reg = <0x0 0x80b00000 0x0 0x100000>; 54 }; 55 }; 56 57 cpus { 58 #address-cells = <2>; 59 #size-cells = <0>; 60 61 CPU0: cpu@0 { 62 device_type = "cpu"; 63 compatible = "arm,kryo"; 64 reg = <0x0 0x0>; 65 enable-method = "psci"; 66 next-level-cache = <&L2_0>; 67 L2_0: l2-cache { 68 compatible = "cache"; 69 next-level-cache = <&L3_0>; 70 L3_0: l3-cache { 71 compatible = "cache"; 72 }; 73 }; 74 }; 75 76 CPU1: cpu@100 { 77 device_type = "cpu"; 78 compatible = "arm,kryo"; 79 reg = <0x0 0x100>; 80 enable-method = "psci"; 81 next-level-cache = <&L2_100>; 82 L2_100: l2-cache { 83 compatible = "cache"; 84 next-level-cache = <&L3_0>; 85 }; 86 }; 87 88 CPU2: cpu@200 { 89 device_type = "cpu"; 90 compatible = "arm,kryo"; 91 reg = <0x0 0x200>; 92 enable-method = "psci"; 93 next-level-cache = <&L2_200>; 94 L2_200: l2-cache { 95 compatible = "cache"; 96 next-level-cache = <&L3_0>; 97 }; 98 }; 99 100 CPU3: cpu@300 { 101 device_type = "cpu"; 102 compatible = "arm,kryo"; 103 reg = <0x0 0x300>; 104 enable-method = "psci"; 105 next-level-cache = <&L2_300>; 106 L2_300: l2-cache { 107 compatible = "cache"; 108 next-level-cache = <&L3_0>; 109 }; 110 }; 111 112 CPU4: cpu@400 { 113 device_type = "cpu"; 114 compatible = "arm,kryo"; 115 reg = <0x0 0x400>; 116 enable-method = "psci"; 117 next-level-cache = <&L2_400>; 118 L2_400: l2-cache { 119 compatible = "cache"; 120 next-level-cache = <&L3_0>; 121 }; 122 }; 123 124 CPU5: cpu@500 { 125 device_type = "cpu"; 126 compatible = "arm,kryo"; 127 reg = <0x0 0x500>; 128 enable-method = "psci"; 129 next-level-cache = <&L2_500>; 130 L2_500: l2-cache { 131 compatible = "cache"; 132 next-level-cache = <&L3_0>; 133 }; 134 }; 135 136 CPU6: cpu@600 { 137 device_type = "cpu"; 138 compatible = "arm,kryo"; 139 reg = <0x0 0x600>; 140 enable-method = "psci"; 141 next-level-cache = <&L2_600>; 142 L2_600: l2-cache { 143 compatible = "cache"; 144 next-level-cache = <&L3_0>; 145 }; 146 }; 147 148 CPU7: cpu@700 { 149 device_type = "cpu"; 150 compatible = "arm,kryo"; 151 reg = <0x0 0x700>; 152 enable-method = "psci"; 153 next-level-cache = <&L2_700>; 154 L2_700: l2-cache { 155 compatible = "cache"; 156 next-level-cache = <&L3_0>; 157 }; 158 }; 159 }; 160 161 memory@80000000 { 162 device_type = "memory"; 163 /* We expect the bootloader to fill in the size */ 164 reg = <0 0x80000000 0 0>; 165 }; 166 167 firmware { 168 scm { 169 compatible = "qcom,scm-sc7280", "qcom,scm"; 170 }; 171 }; 172 173 pmu { 174 compatible = "arm,armv8-pmuv3"; 175 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW>; 176 }; 177 178 psci { 179 compatible = "arm,psci-1.0"; 180 method = "smc"; 181 }; 182 183 soc: soc@0 { 184 #address-cells = <2>; 185 #size-cells = <2>; 186 ranges = <0 0 0 0 0x10 0>; 187 dma-ranges = <0 0 0 0 0x10 0>; 188 compatible = "simple-bus"; 189 190 gcc: clock-controller@100000 { 191 compatible = "qcom,gcc-sc7280"; 192 reg = <0 0x00100000 0 0x1f0000>; 193 clocks = <&rpmhcc RPMH_CXO_CLK>, 194 <&rpmhcc RPMH_CXO_CLK_A>, <&sleep_clk>, 195 <0>, <0>, <0>, <0>, <0>, <0>; 196 clock-names = "bi_tcxo", "bi_tcxo_ao", "sleep_clk", 197 "pcie_0_pipe_clk", "pcie_1_pipe-clk", 198 "ufs_phy_rx_symbol_0_clk", "ufs_phy_rx_symbol_1_clk", 199 "ufs_phy_tx_symbol_0_clk", 200 "usb3_phy_wrapper_gcc_usb30_pipe_clk"; 201 #clock-cells = <1>; 202 #reset-cells = <1>; 203 #power-domain-cells = <1>; 204 }; 205 206 qupv3_id_0: geniqup@9c0000 { 207 compatible = "qcom,geni-se-qup"; 208 reg = <0 0x009c0000 0 0x2000>; 209 clock-names = "m-ahb", "s-ahb"; 210 clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, 211 <&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; 212 #address-cells = <2>; 213 #size-cells = <2>; 214 ranges; 215 status = "disabled"; 216 217 uart5: serial@994000 { 218 compatible = "qcom,geni-debug-uart"; 219 reg = <0 0x00994000 0 0x4000>; 220 clock-names = "se"; 221 clocks = <&gcc GCC_QUPV3_WRAP0_S5_CLK>; 222 pinctrl-names = "default"; 223 pinctrl-0 = <&qup_uart5_default>; 224 interrupts = <GIC_SPI 606 IRQ_TYPE_LEVEL_HIGH>; 225 status = "disabled"; 226 }; 227 }; 228 229 pdc: interrupt-controller@b220000 { 230 compatible = "qcom,sc7280-pdc", "qcom,pdc"; 231 reg = <0 0x0b220000 0 0x30000>; 232 qcom,pdc-ranges = <0 480 40>, <40 140 14>, <54 263 1>, 233 <55 306 4>, <59 312 3>, <62 374 2>, 234 <64 434 2>, <66 438 3>, <69 86 1>, 235 <70 520 54>, <124 609 31>, <155 63 1>, 236 <156 716 12>; 237 #interrupt-cells = <2>; 238 interrupt-parent = <&intc>; 239 interrupt-controller; 240 }; 241 242 tlmm: pinctrl@f100000 { 243 compatible = "qcom,sc7280-pinctrl"; 244 reg = <0 0x0f100000 0 0x300000>; 245 interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 246 gpio-controller; 247 #gpio-cells = <2>; 248 interrupt-controller; 249 #interrupt-cells = <2>; 250 gpio-ranges = <&tlmm 0 0 175>; 251 wakeup-parent = <&pdc>; 252 253 qup_uart5_default: qup-uart5-default { 254 pins = "gpio46", "gpio47"; 255 function = "qup13"; 256 }; 257 }; 258 259 apps_smmu: iommu@15000000 { 260 compatible = "qcom,sc7280-smmu-500", "arm,mmu-500"; 261 reg = <0 0x15000000 0 0x100000>; 262 #iommu-cells = <2>; 263 #global-interrupts = <1>; 264 dma-coherent; 265 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>, 266 <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>, 267 <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>, 268 <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>, 269 <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>, 270 <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>, 271 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>, 272 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>, 273 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>, 274 <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>, 275 <GIC_SPI 105 IRQ_TYPE_LEVEL_HI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L_HIGH>, 333 <GIC_SPI 396 IRQ_TYPE_LEVEL_HIGH>, 334 <GIC_SPI 397 IRQ_TYPE_LEVEL_HIGH>, 335 <GIC_SPI 398 IRQ_TYPE_LEVEL_HIGH>, 336 <GIC_SPI 399 IRQ_TYPE_LEVEL_HIGH>, 337 <GIC_SPI 400 IRQ_TYPE_LEVEL_HIGH>, 338 <GIC_SPI 401 IRQ_TYPE_LEVEL_HIGH>, 339 <GIC_SPI 402 IRQ_TYPE_LEVEL_HIGH>, 340 <GIC_SPI 403 IRQ_TYPE_LEVEL_HIGH>, 341 <GIC_SPI 404 IRQ_TYPE_LEVEL_HIGH>, 342 <GIC_SPI 405 IRQ_TYPE_LEVEL_HIGH>, 343 <GIC_SPI 406 IRQ_TYPE_LEVEL_HIGH>, 344 <GIC_SPI 407 IRQ_TYPE_LEVEL_HIGH>, 345 <GIC_SPI 408 IRQ_TYPE_LEVEL_HIGH>; 346 }; 347 348 intc: interrupt-controller@17a00000 { 349 compatible = "arm,gic-v3"; 350 #address-cells = <2>; 351 #size-cells = <2>; 352 ranges; 353 #interrupt-cells = <3>; 354 interrupt-controller; 355 reg = <0 0x17a00000 0 0x10000>, /* GICD */ 356 <0 0x17a60000 0 0x100000>; /* GICR * 8 */ 357 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_LOW>; 358 359 gic-its@17a40000 { 360 compatible = "arm,gic-v3-its"; 361 msi-controller; 362 #msi-cells = <1>; 363 reg = <0 0x17a40000 0 0x20000>; 364 status = "disabled"; 365 }; 366 }; 367 368 timer@17c20000 { 369 #address-cells = <2>; 370 #size-cells = <2>; 371 ranges; 372 compatible = "arm,armv7-timer-mem"; 373 reg = <0 0x17c20000 0 0x1000>; 374 375 frame@17c21000 { 376 frame-number = <0>; 377 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>, 378 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; 379 reg = <0 0x17c21000 0 0x1000>, 380 <0 0x17c22000 0 0x1000>; 381 }; 382 383 frame@17c23000 { 384 frame-number = <1>; 385 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; 386 reg = <0 0x17c23000 0 0x1000>; 387 status = "disabled"; 388 }; 389 390 frame@17c25000 { 391 frame-number = <2>; 392 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; 393 reg = <0 0x17c25000 0 0x1000>; 394 status = "disabled"; 395 }; 396 397 frame@17c27000 { 398 frame-number = <3>; 399 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; 400 reg = <0 0x17c27000 0 0x1000>; 401 status = "disabled"; 402 }; 403 404 frame@17c29000 { 405 frame-number = <4>; 406 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; 407 reg = <0 0x17c29000 0 0x1000>; 408 status = "disabled"; 409 }; 410 411 frame@17c2b000 { 412 frame-number = <5>; 413 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; 414 reg = <0 0x17c2b000 0 0x1000>; 415 status = "disabled"; 416 }; 417 418 frame@17c2d000 { 419 frame-number = <6>; 420 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; 421 reg = <0 0x17c2d000 0 0x1000>; 422 status = "disabled"; 423 }; 424 }; 425 426 apps_rsc: rsc@18200000 { 427 compatible = "qcom,rpmh-rsc"; 428 reg = <0 0x18200000 0 0x10000>, 429 <0 0x18210000 0 0x10000>, 430 <0 0x18220000 0 0x10000>; 431 reg-names = "drv-0", "drv-1", "drv-2"; 432 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>, 433 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, 434 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; 435 qcom,tcs-offset = <0xd00>; 436 qcom,drv-id = <2>; 437 qcom,tcs-config = <ACTIVE_TCS 2>, 438 <SLEEP_TCS 3>, 439 <WAKE_TCS 3>, 440 <CONTROL_TCS 1>; 441 442 rpmhcc: clock-controller { 443 compatible = "qcom,sc7280-rpmh-clk"; 444 clocks = <&xo_board>; 445 clock-names = "xo"; 446 #clock-cells = <1>; 447 }; 448 }; 449 }; 450 451 timer { 452 compatible = "arm,armv8-timer"; 453 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, 454 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, 455 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, 456 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; 457 }; 458}; 459