Yanhong Wang | 96c3eb72 | 2023-03-29 11:42:21 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 OR MIT |
| 2 | /* |
| 3 | * Copyright (C) 2022 StarFive Technology Co., Ltd. |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | #include <dt-bindings/clock/starfive,jh7110-crg.h> |
| 8 | #include <dt-bindings/reset/starfive,jh7110-crg.h> |
| 9 | |
| 10 | / { |
| 11 | compatible = "starfive,jh7110"; |
| 12 | #address-cells = <2>; |
| 13 | #size-cells = <2>; |
| 14 | |
| 15 | cpus { |
| 16 | #address-cells = <1>; |
| 17 | #size-cells = <0>; |
| 18 | |
| 19 | S7_0: cpu@0 { |
| 20 | compatible = "sifive,s7", "riscv"; |
| 21 | reg = <0>; |
| 22 | device_type = "cpu"; |
| 23 | i-cache-block-size = <64>; |
| 24 | i-cache-sets = <64>; |
| 25 | i-cache-size = <16384>; |
| 26 | next-level-cache = <&ccache>; |
| 27 | riscv,isa = "rv64imac_zba_zbb"; |
| 28 | status = "disabled"; |
| 29 | |
| 30 | cpu0_intc: interrupt-controller { |
| 31 | compatible = "riscv,cpu-intc"; |
| 32 | interrupt-controller; |
| 33 | #interrupt-cells = <1>; |
| 34 | }; |
| 35 | }; |
| 36 | |
| 37 | U74_1: cpu@1 { |
| 38 | compatible = "sifive,u74-mc", "riscv"; |
| 39 | reg = <1>; |
| 40 | d-cache-block-size = <64>; |
| 41 | d-cache-sets = <64>; |
| 42 | d-cache-size = <32768>; |
| 43 | d-tlb-sets = <1>; |
| 44 | d-tlb-size = <40>; |
| 45 | device_type = "cpu"; |
| 46 | i-cache-block-size = <64>; |
| 47 | i-cache-sets = <64>; |
| 48 | i-cache-size = <32768>; |
| 49 | i-tlb-sets = <1>; |
| 50 | i-tlb-size = <40>; |
| 51 | mmu-type = "riscv,sv39"; |
| 52 | next-level-cache = <&ccache>; |
| 53 | riscv,isa = "rv64imafdc_zba_zbb"; |
| 54 | tlb-split; |
| 55 | |
| 56 | cpu1_intc: interrupt-controller { |
| 57 | compatible = "riscv,cpu-intc"; |
| 58 | interrupt-controller; |
| 59 | #interrupt-cells = <1>; |
| 60 | }; |
| 61 | }; |
| 62 | |
| 63 | U74_2: cpu@2 { |
| 64 | compatible = "sifive,u74-mc", "riscv"; |
| 65 | reg = <2>; |
| 66 | d-cache-block-size = <64>; |
| 67 | d-cache-sets = <64>; |
| 68 | d-cache-size = <32768>; |
| 69 | d-tlb-sets = <1>; |
| 70 | d-tlb-size = <40>; |
| 71 | device_type = "cpu"; |
| 72 | i-cache-block-size = <64>; |
| 73 | i-cache-sets = <64>; |
| 74 | i-cache-size = <32768>; |
| 75 | i-tlb-sets = <1>; |
| 76 | i-tlb-size = <40>; |
| 77 | mmu-type = "riscv,sv39"; |
| 78 | next-level-cache = <&ccache>; |
| 79 | riscv,isa = "rv64imafdc_zba_zbb"; |
| 80 | tlb-split; |
| 81 | |
| 82 | cpu2_intc: interrupt-controller { |
| 83 | compatible = "riscv,cpu-intc"; |
| 84 | interrupt-controller; |
| 85 | #interrupt-cells = <1>; |
| 86 | }; |
| 87 | }; |
| 88 | |
| 89 | U74_3: cpu@3 { |
| 90 | compatible = "sifive,u74-mc", "riscv"; |
| 91 | reg = <3>; |
| 92 | d-cache-block-size = <64>; |
| 93 | d-cache-sets = <64>; |
| 94 | d-cache-size = <32768>; |
| 95 | d-tlb-sets = <1>; |
| 96 | d-tlb-size = <40>; |
| 97 | device_type = "cpu"; |
| 98 | i-cache-block-size = <64>; |
| 99 | i-cache-sets = <64>; |
| 100 | i-cache-size = <32768>; |
| 101 | i-tlb-sets = <1>; |
| 102 | i-tlb-size = <40>; |
| 103 | mmu-type = "riscv,sv39"; |
| 104 | next-level-cache = <&ccache>; |
| 105 | riscv,isa = "rv64imafdc_zba_zbb"; |
| 106 | tlb-split; |
| 107 | |
| 108 | cpu3_intc: interrupt-controller { |
| 109 | compatible = "riscv,cpu-intc"; |
| 110 | interrupt-controller; |
| 111 | #interrupt-cells = <1>; |
| 112 | }; |
| 113 | }; |
| 114 | |
| 115 | U74_4: cpu@4 { |
| 116 | compatible = "sifive,u74-mc", "riscv"; |
| 117 | reg = <4>; |
| 118 | d-cache-block-size = <64>; |
| 119 | d-cache-sets = <64>; |
| 120 | d-cache-size = <32768>; |
| 121 | d-tlb-sets = <1>; |
| 122 | d-tlb-size = <40>; |
| 123 | device_type = "cpu"; |
| 124 | i-cache-block-size = <64>; |
| 125 | i-cache-sets = <64>; |
| 126 | i-cache-size = <32768>; |
| 127 | i-tlb-sets = <1>; |
| 128 | i-tlb-size = <40>; |
| 129 | mmu-type = "riscv,sv39"; |
| 130 | next-level-cache = <&ccache>; |
| 131 | riscv,isa = "rv64imafdc_zba_zbb"; |
| 132 | tlb-split; |
| 133 | |
| 134 | cpu4_intc: interrupt-controller { |
| 135 | compatible = "riscv,cpu-intc"; |
| 136 | interrupt-controller; |
| 137 | #interrupt-cells = <1>; |
| 138 | }; |
| 139 | }; |
| 140 | |
| 141 | cpu-map { |
| 142 | cluster0 { |
| 143 | core0 { |
| 144 | cpu = <&S7_0>; |
| 145 | }; |
| 146 | |
| 147 | core1 { |
| 148 | cpu = <&U74_1>; |
| 149 | }; |
| 150 | |
| 151 | core2 { |
| 152 | cpu = <&U74_2>; |
| 153 | }; |
| 154 | |
| 155 | core3 { |
| 156 | cpu = <&U74_3>; |
| 157 | }; |
| 158 | |
| 159 | core4 { |
| 160 | cpu = <&U74_4>; |
| 161 | }; |
| 162 | }; |
| 163 | }; |
| 164 | }; |
| 165 | |
| 166 | osc: oscillator { |
| 167 | compatible = "fixed-clock"; |
| 168 | clock-output-names = "osc"; |
| 169 | #clock-cells = <0>; |
| 170 | }; |
| 171 | |
| 172 | rtc_osc: rtc-oscillator { |
| 173 | compatible = "fixed-clock"; |
| 174 | clock-output-names = "rtc_osc"; |
| 175 | #clock-cells = <0>; |
| 176 | }; |
| 177 | |
| 178 | gmac0_rmii_refin: gmac0-rmii-refin-clock { |
| 179 | compatible = "fixed-clock"; |
| 180 | clock-output-names = "gmac0_rmii_refin"; |
| 181 | #clock-cells = <0>; |
| 182 | }; |
| 183 | |
| 184 | gmac0_rgmii_rxin: gmac0-rgmii-rxin-clock { |
| 185 | compatible = "fixed-clock"; |
| 186 | clock-output-names = "gmac0_rgmii_rxin"; |
| 187 | #clock-cells = <0>; |
| 188 | }; |
| 189 | |
| 190 | gmac1_rmii_refin: gmac1-rmii-refin-clock { |
| 191 | compatible = "fixed-clock"; |
| 192 | clock-output-names = "gmac1_rmii_refin"; |
| 193 | #clock-cells = <0>; |
| 194 | }; |
| 195 | |
| 196 | gmac1_rgmii_rxin: gmac1-rgmii-rxin-clock { |
| 197 | compatible = "fixed-clock"; |
| 198 | clock-output-names = "gmac1_rgmii_rxin"; |
| 199 | #clock-cells = <0>; |
| 200 | }; |
| 201 | |
| 202 | i2stx_bclk_ext: i2stx-bclk-ext-clock { |
| 203 | compatible = "fixed-clock"; |
| 204 | clock-output-names = "i2stx_bclk_ext"; |
| 205 | #clock-cells = <0>; |
| 206 | }; |
| 207 | |
| 208 | i2stx_lrck_ext: i2stx-lrck-ext-clock { |
| 209 | compatible = "fixed-clock"; |
| 210 | clock-output-names = "i2stx_lrck_ext"; |
| 211 | #clock-cells = <0>; |
| 212 | }; |
| 213 | |
| 214 | i2srx_bclk_ext: i2srx-bclk-ext-clock { |
| 215 | compatible = "fixed-clock"; |
| 216 | clock-output-names = "i2srx_bclk_ext"; |
| 217 | #clock-cells = <0>; |
| 218 | }; |
| 219 | |
| 220 | i2srx_lrck_ext: i2srx-lrck-ext-clock { |
| 221 | compatible = "fixed-clock"; |
| 222 | clock-output-names = "i2srx_lrck_ext"; |
| 223 | #clock-cells = <0>; |
| 224 | }; |
| 225 | |
| 226 | tdm_ext: tdm-ext-clock { |
| 227 | compatible = "fixed-clock"; |
| 228 | clock-output-names = "tdm_ext"; |
| 229 | #clock-cells = <0>; |
| 230 | }; |
| 231 | |
| 232 | mclk_ext: mclk-ext-clock { |
| 233 | compatible = "fixed-clock"; |
| 234 | clock-output-names = "mclk_ext"; |
| 235 | #clock-cells = <0>; |
| 236 | }; |
| 237 | |
Yanhong Wang | 7f63bd9 | 2023-06-15 17:36:44 +0800 | [diff] [blame] | 238 | stmmac_axi_setup: stmmac-axi-config { |
| 239 | snps,lpi_en; |
| 240 | snps,wr_osr_lmt = <4>; |
| 241 | snps,rd_osr_lmt = <4>; |
| 242 | snps,blen = <256 128 64 32 0 0 0>; |
| 243 | }; |
| 244 | |
Yanhong Wang | 96c3eb72 | 2023-03-29 11:42:21 +0800 | [diff] [blame] | 245 | soc { |
| 246 | compatible = "simple-bus"; |
| 247 | interrupt-parent = <&plic>; |
| 248 | #address-cells = <2>; |
| 249 | #size-cells = <2>; |
| 250 | ranges; |
| 251 | |
| 252 | clint: timer@2000000 { |
| 253 | compatible = "starfive,jh7110-clint", "sifive,clint0"; |
| 254 | reg = <0x0 0x2000000 0x0 0x10000>; |
| 255 | interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>, |
| 256 | <&cpu1_intc 3>, <&cpu1_intc 7>, |
| 257 | <&cpu2_intc 3>, <&cpu2_intc 7>, |
| 258 | <&cpu3_intc 3>, <&cpu3_intc 7>, |
| 259 | <&cpu4_intc 3>, <&cpu4_intc 7>; |
| 260 | }; |
| 261 | |
| 262 | plic: interrupt-controller@c000000 { |
| 263 | compatible = "starfive,jh7110-plic", "sifive,plic-1.0.0"; |
| 264 | reg = <0x0 0xc000000 0x0 0x4000000>; |
| 265 | interrupts-extended = <&cpu0_intc 11>, |
| 266 | <&cpu1_intc 11>, <&cpu1_intc 9>, |
| 267 | <&cpu2_intc 11>, <&cpu2_intc 9>, |
| 268 | <&cpu3_intc 11>, <&cpu3_intc 9>, |
| 269 | <&cpu4_intc 11>, <&cpu4_intc 9>; |
| 270 | interrupt-controller; |
| 271 | #interrupt-cells = <1>; |
| 272 | #address-cells = <0>; |
| 273 | riscv,ndev = <136>; |
| 274 | }; |
| 275 | |
| 276 | ccache: cache-controller@2010000 { |
| 277 | compatible = "starfive,jh7110-ccache", "sifive,ccache0", "cache"; |
| 278 | reg = <0x0 0x2010000 0x0 0x4000>; |
| 279 | interrupts = <1>, <3>, <4>, <2>; |
| 280 | cache-block-size = <64>; |
| 281 | cache-level = <2>; |
| 282 | cache-sets = <2048>; |
| 283 | cache-size = <2097152>; |
| 284 | cache-unified; |
| 285 | }; |
| 286 | |
| 287 | uart0: serial@10000000 { |
| 288 | compatible = "snps,dw-apb-uart"; |
| 289 | reg = <0x0 0x10000000 0x0 0x10000>; |
| 290 | clocks = <&syscrg JH7110_SYSCLK_UART0_CORE>, |
| 291 | <&syscrg JH7110_SYSCLK_UART0_APB>; |
| 292 | clock-names = "baudclk", "apb_pclk"; |
| 293 | resets = <&syscrg JH7110_SYSRST_UART0_APB>, |
| 294 | <&syscrg JH7110_SYSRST_UART0_CORE>; |
| 295 | interrupts = <32>; |
| 296 | reg-io-width = <4>; |
| 297 | reg-shift = <2>; |
| 298 | status = "disabled"; |
| 299 | }; |
| 300 | |
| 301 | uart1: serial@10010000 { |
| 302 | compatible = "snps,dw-apb-uart"; |
| 303 | reg = <0x0 0x10010000 0x0 0x10000>; |
| 304 | clocks = <&syscrg JH7110_SYSCLK_UART1_CORE>, |
| 305 | <&syscrg JH7110_SYSCLK_UART1_APB>; |
| 306 | clock-names = "baudclk", "apb_pclk"; |
| 307 | resets = <&syscrg JH7110_SYSRST_UART1_APB>, |
| 308 | <&syscrg JH7110_SYSRST_UART1_CORE>; |
| 309 | interrupts = <33>; |
| 310 | reg-io-width = <4>; |
| 311 | reg-shift = <2>; |
| 312 | status = "disabled"; |
| 313 | }; |
| 314 | |
| 315 | uart2: serial@10020000 { |
| 316 | compatible = "snps,dw-apb-uart"; |
| 317 | reg = <0x0 0x10020000 0x0 0x10000>; |
| 318 | clocks = <&syscrg JH7110_SYSCLK_UART2_CORE>, |
| 319 | <&syscrg JH7110_SYSCLK_UART2_APB>; |
| 320 | clock-names = "baudclk", "apb_pclk"; |
| 321 | resets = <&syscrg JH7110_SYSRST_UART2_APB>, |
| 322 | <&syscrg JH7110_SYSRST_UART2_CORE>; |
| 323 | interrupts = <34>; |
| 324 | reg-io-width = <4>; |
| 325 | reg-shift = <2>; |
| 326 | status = "disabled"; |
| 327 | }; |
| 328 | |
| 329 | i2c0: i2c@10030000 { |
| 330 | compatible = "snps,designware-i2c"; |
| 331 | reg = <0x0 0x10030000 0x0 0x10000>; |
| 332 | clocks = <&syscrg JH7110_SYSCLK_I2C0_APB>; |
| 333 | clock-names = "ref"; |
| 334 | resets = <&syscrg JH7110_SYSRST_I2C0_APB>; |
| 335 | interrupts = <35>; |
| 336 | #address-cells = <1>; |
| 337 | #size-cells = <0>; |
| 338 | status = "disabled"; |
| 339 | }; |
| 340 | |
| 341 | i2c1: i2c@10040000 { |
| 342 | compatible = "snps,designware-i2c"; |
| 343 | reg = <0x0 0x10040000 0x0 0x10000>; |
| 344 | clocks = <&syscrg JH7110_SYSCLK_I2C1_APB>; |
| 345 | clock-names = "ref"; |
| 346 | resets = <&syscrg JH7110_SYSRST_I2C1_APB>; |
| 347 | interrupts = <36>; |
| 348 | #address-cells = <1>; |
| 349 | #size-cells = <0>; |
| 350 | status = "disabled"; |
| 351 | }; |
| 352 | |
| 353 | i2c2: i2c@10050000 { |
| 354 | compatible = "snps,designware-i2c"; |
| 355 | reg = <0x0 0x10050000 0x0 0x10000>; |
| 356 | clocks = <&syscrg JH7110_SYSCLK_I2C2_APB>; |
| 357 | clock-names = "ref"; |
| 358 | resets = <&syscrg JH7110_SYSRST_I2C2_APB>; |
| 359 | interrupts = <37>; |
| 360 | #address-cells = <1>; |
| 361 | #size-cells = <0>; |
| 362 | status = "disabled"; |
| 363 | }; |
| 364 | |
| 365 | stgcrg: clock-controller@10230000 { |
| 366 | compatible = "starfive,jh7110-stgcrg"; |
| 367 | reg = <0x0 0x10230000 0x0 0x10000>; |
| 368 | #clock-cells = <1>; |
| 369 | #reset-cells = <1>; |
| 370 | }; |
| 371 | |
| 372 | stg_syscon: stg_syscon@10240000 { |
| 373 | compatible = "starfive,jh7110-stg-syscon","syscon"; |
| 374 | reg = <0x0 0x10240000 0x0 0x1000>; |
| 375 | }; |
| 376 | |
| 377 | uart3: serial@12000000 { |
| 378 | compatible = "snps,dw-apb-uart"; |
| 379 | reg = <0x0 0x12000000 0x0 0x10000>; |
| 380 | clocks = <&syscrg JH7110_SYSCLK_UART3_CORE>, |
| 381 | <&syscrg JH7110_SYSCLK_UART3_APB>; |
| 382 | clock-names = "baudclk", "apb_pclk"; |
| 383 | resets = <&syscrg JH7110_SYSRST_UART3_APB>, |
| 384 | <&syscrg JH7110_SYSRST_UART3_CORE>; |
| 385 | interrupts = <45>; |
| 386 | reg-io-width = <4>; |
| 387 | reg-shift = <2>; |
| 388 | status = "disabled"; |
| 389 | }; |
| 390 | |
| 391 | uart4: serial@12010000 { |
| 392 | compatible = "snps,dw-apb-uart"; |
| 393 | reg = <0x0 0x12010000 0x0 0x10000>; |
| 394 | clocks = <&syscrg JH7110_SYSCLK_UART4_CORE>, |
| 395 | <&syscrg JH7110_SYSCLK_UART4_APB>; |
| 396 | clock-names = "baudclk", "apb_pclk"; |
| 397 | resets = <&syscrg JH7110_SYSRST_UART4_APB>, |
| 398 | <&syscrg JH7110_SYSRST_UART4_CORE>; |
| 399 | interrupts = <46>; |
| 400 | reg-io-width = <4>; |
| 401 | reg-shift = <2>; |
| 402 | status = "disabled"; |
| 403 | }; |
| 404 | |
| 405 | uart5: serial@12020000 { |
| 406 | compatible = "snps,dw-apb-uart"; |
| 407 | reg = <0x0 0x12020000 0x0 0x10000>; |
| 408 | clocks = <&syscrg JH7110_SYSCLK_UART5_CORE>, |
| 409 | <&syscrg JH7110_SYSCLK_UART5_APB>; |
| 410 | clock-names = "baudclk", "apb_pclk"; |
| 411 | resets = <&syscrg JH7110_SYSRST_UART5_APB>, |
| 412 | <&syscrg JH7110_SYSRST_UART5_CORE>; |
| 413 | interrupts = <47>; |
| 414 | reg-io-width = <4>; |
| 415 | reg-shift = <2>; |
| 416 | status = "disabled"; |
| 417 | }; |
| 418 | |
| 419 | i2c3: i2c@12030000 { |
| 420 | compatible = "snps,designware-i2c"; |
| 421 | reg = <0x0 0x12030000 0x0 0x10000>; |
| 422 | clocks = <&syscrg JH7110_SYSCLK_I2C3_APB>; |
| 423 | clock-names = "ref"; |
| 424 | resets = <&syscrg JH7110_SYSRST_I2C3_APB>; |
| 425 | interrupts = <48>; |
| 426 | #address-cells = <1>; |
| 427 | #size-cells = <0>; |
| 428 | status = "disabled"; |
| 429 | }; |
| 430 | |
| 431 | i2c4: i2c@12040000 { |
| 432 | compatible = "snps,designware-i2c"; |
| 433 | reg = <0x0 0x12040000 0x0 0x10000>; |
| 434 | clocks = <&syscrg JH7110_SYSCLK_I2C4_APB>; |
| 435 | clock-names = "ref"; |
| 436 | resets = <&syscrg JH7110_SYSRST_I2C4_APB>; |
| 437 | interrupts = <49>; |
| 438 | #address-cells = <1>; |
| 439 | #size-cells = <0>; |
| 440 | status = "disabled"; |
| 441 | }; |
| 442 | |
| 443 | i2c5: i2c@12050000 { |
| 444 | compatible = "snps,designware-i2c"; |
| 445 | reg = <0x0 0x12050000 0x0 0x10000>; |
| 446 | clocks = <&syscrg JH7110_SYSCLK_I2C5_APB>; |
| 447 | clock-names = "ref"; |
| 448 | resets = <&syscrg JH7110_SYSRST_I2C5_APB>; |
| 449 | interrupts = <50>; |
| 450 | #address-cells = <1>; |
| 451 | #size-cells = <0>; |
| 452 | status = "disabled"; |
| 453 | }; |
| 454 | |
| 455 | i2c6: i2c@12060000 { |
| 456 | compatible = "snps,designware-i2c"; |
| 457 | reg = <0x0 0x12060000 0x0 0x10000>; |
| 458 | clocks = <&syscrg JH7110_SYSCLK_I2C6_APB>; |
| 459 | clock-names = "ref"; |
| 460 | resets = <&syscrg JH7110_SYSRST_I2C6_APB>; |
| 461 | interrupts = <51>; |
| 462 | #address-cells = <1>; |
| 463 | #size-cells = <0>; |
| 464 | status = "disabled"; |
| 465 | }; |
| 466 | |
| 467 | qspi: spi@13010000 { |
| 468 | compatible = "cdns,qspi-nor"; |
| 469 | reg = <0x0 0x13010000 0x0 0x10000 |
| 470 | 0x0 0x21000000 0x0 0x400000>; |
| 471 | clocks = <&syscrg JH7110_SYSCLK_QSPI_REF>; |
| 472 | clock-names = "clk_ref"; |
| 473 | resets = <&syscrg JH7110_SYSRST_QSPI_APB>, |
| 474 | <&syscrg JH7110_SYSRST_QSPI_AHB>, |
| 475 | <&syscrg JH7110_SYSRST_QSPI_REF>; |
| 476 | reset-names = "rst_apb", "rst_ahb", "rst_ref"; |
| 477 | cdns,fifo-depth = <256>; |
| 478 | cdns,fifo-width = <4>; |
| 479 | #address-cells = <1>; |
| 480 | #size-cells = <0>; |
| 481 | }; |
| 482 | |
| 483 | syscrg: clock-controller@13020000 { |
| 484 | compatible = "starfive,jh7110-syscrg"; |
| 485 | reg = <0x0 0x13020000 0x0 0x10000>; |
| 486 | clocks = <&osc>, <&gmac1_rmii_refin>, |
| 487 | <&gmac1_rgmii_rxin>, |
| 488 | <&i2stx_bclk_ext>, <&i2stx_lrck_ext>, |
| 489 | <&i2srx_bclk_ext>, <&i2srx_lrck_ext>, |
Xingyu Wu | 1345c9e | 2023-07-07 18:50:09 +0800 | [diff] [blame] | 490 | <&tdm_ext>, <&mclk_ext>, |
| 491 | <&pllclk JH7110_SYSCLK_PLL0_OUT>, |
| 492 | <&pllclk JH7110_SYSCLK_PLL1_OUT>, |
| 493 | <&pllclk JH7110_SYSCLK_PLL2_OUT>; |
Yanhong Wang | 96c3eb72 | 2023-03-29 11:42:21 +0800 | [diff] [blame] | 494 | clock-names = "osc", "gmac1_rmii_refin", |
| 495 | "gmac1_rgmii_rxin", |
| 496 | "i2stx_bclk_ext", "i2stx_lrck_ext", |
| 497 | "i2srx_bclk_ext", "i2srx_lrck_ext", |
Xingyu Wu | 1345c9e | 2023-07-07 18:50:09 +0800 | [diff] [blame] | 498 | "tdm_ext", "mclk_ext", |
| 499 | "pll0_out", "pll1_out", "pll2_out"; |
Yanhong Wang | 96c3eb72 | 2023-03-29 11:42:21 +0800 | [diff] [blame] | 500 | #clock-cells = <1>; |
| 501 | #reset-cells = <1>; |
| 502 | }; |
| 503 | |
| 504 | sys_syscon: sys_syscon@13030000 { |
Xingyu Wu | 7ae81bb | 2023-07-07 18:50:08 +0800 | [diff] [blame] | 505 | compatible = "starfive,jh7110-sys-syscon","syscon", "simple-mfd"; |
Yanhong Wang | 96c3eb72 | 2023-03-29 11:42:21 +0800 | [diff] [blame] | 506 | reg = <0x0 0x13030000 0x0 0x1000>; |
Xingyu Wu | 7ae81bb | 2023-07-07 18:50:08 +0800 | [diff] [blame] | 507 | |
| 508 | pllclk: clock-controller { |
| 509 | compatible = "starfive,jh7110-pll"; |
| 510 | clocks = <&osc>; |
| 511 | #clock-cells = <1>; |
| 512 | }; |
Yanhong Wang | 96c3eb72 | 2023-03-29 11:42:21 +0800 | [diff] [blame] | 513 | }; |
| 514 | |
| 515 | sysgpio: pinctrl@13040000 { |
| 516 | compatible = "starfive,jh7110-sys-pinctrl"; |
| 517 | reg = <0x0 0x13040000 0x0 0x10000>; |
| 518 | clocks = <&syscrg JH7110_SYSCLK_IOMUX_APB>; |
| 519 | resets = <&syscrg JH7110_SYSRST_IOMUX_APB>; |
| 520 | interrupts = <86>; |
| 521 | interrupt-controller; |
| 522 | #interrupt-cells = <2>; |
| 523 | gpio-controller; |
| 524 | #gpio-cells = <2>; |
| 525 | }; |
| 526 | |
| 527 | mmc0: mmc@16010000 { |
| 528 | compatible = "starfive,jh7110-mmc"; |
| 529 | reg = <0x0 0x16010000 0x0 0x10000>; |
| 530 | clocks = <&syscrg JH7110_SYSCLK_SDIO0_AHB>, |
| 531 | <&syscrg JH7110_SYSCLK_SDIO0_SDCARD>; |
| 532 | clock-names = "biu", "ciu"; |
| 533 | resets = <&syscrg JH7110_SYSRST_SDIO0_AHB>; |
| 534 | reset-names = "reset"; |
| 535 | interrupts = <74>; |
| 536 | fifo-depth = <32>; |
| 537 | fifo-watermark-aligned; |
| 538 | data-addr = <0>; |
| 539 | starfive,sysreg = <&sys_syscon 0x14 0x1a 0x7c000000>; |
| 540 | status = "disabled"; |
| 541 | }; |
| 542 | |
| 543 | mmc1: mmc@16020000 { |
| 544 | compatible = "starfive,jh7110-mmc"; |
| 545 | reg = <0x0 0x16020000 0x0 0x10000>; |
| 546 | clocks = <&syscrg JH7110_SYSCLK_SDIO1_AHB>, |
| 547 | <&syscrg JH7110_SYSCLK_SDIO1_SDCARD>; |
| 548 | clock-names = "biu", "ciu"; |
| 549 | resets = <&syscrg JH7110_SYSRST_SDIO1_AHB>; |
| 550 | reset-names = "reset"; |
| 551 | interrupts = <75>; |
| 552 | fifo-depth = <32>; |
| 553 | fifo-watermark-aligned; |
| 554 | data-addr = <0>; |
| 555 | starfive,sysreg = <&sys_syscon 0x9c 0x1 0x3e>; |
| 556 | status = "disabled"; |
| 557 | }; |
| 558 | |
Yanhong Wang | 7f63bd9 | 2023-06-15 17:36:44 +0800 | [diff] [blame] | 559 | gmac0: ethernet@16030000 { |
| 560 | compatible = "starfive,jh7110-dwmac", "snps,dwmac-5.20"; |
| 561 | reg = <0x0 0x16030000 0x0 0x10000>; |
| 562 | clocks = <&aoncrg JH7110_AONCLK_GMAC0_AXI>, |
| 563 | <&aoncrg JH7110_AONCLK_GMAC0_AHB>, |
| 564 | <&syscrg JH7110_SYSCLK_GMAC0_PTP>, |
| 565 | <&aoncrg JH7110_AONCLK_GMAC0_TX_INV>, |
| 566 | <&syscrg JH7110_SYSCLK_GMAC0_GTXC>; |
| 567 | clock-names = "stmmaceth", "pclk", "ptp_ref", |
| 568 | "tx", "gtx"; |
| 569 | resets = <&aoncrg JH7110_AONRST_GMAC0_AXI>, |
| 570 | <&aoncrg JH7110_AONRST_GMAC0_AHB>; |
| 571 | reset-names = "stmmaceth", "ahb"; |
| 572 | interrupts = <7>, <6>, <5>; |
| 573 | interrupt-names = "macirq", "eth_wake_irq", "eth_lpi"; |
| 574 | snps,multicast-filter-bins = <64>; |
| 575 | snps,perfect-filter-entries = <8>; |
| 576 | rx-fifo-depth = <2048>; |
| 577 | tx-fifo-depth = <2048>; |
| 578 | snps,fixed-burst; |
| 579 | snps,no-pbl-x8; |
| 580 | snps,force_thresh_dma_mode; |
| 581 | snps,axi-config = <&stmmac_axi_setup>; |
| 582 | snps,tso; |
| 583 | snps,en-tx-lpi-clockgating; |
| 584 | snps,txpbl = <16>; |
| 585 | snps,rxpbl = <16>; |
| 586 | starfive,syscon = <&aon_syscon 0xc 0x12>; |
| 587 | status = "disabled"; |
| 588 | }; |
| 589 | |
| 590 | gmac1: ethernet@16040000 { |
| 591 | compatible = "starfive,jh7110-dwmac", "snps,dwmac-5.20"; |
| 592 | reg = <0x0 0x16040000 0x0 0x10000>; |
| 593 | clocks = <&syscrg JH7110_SYSCLK_GMAC1_AXI>, |
| 594 | <&syscrg JH7110_SYSCLK_GMAC1_AHB>, |
| 595 | <&syscrg JH7110_SYSCLK_GMAC1_PTP>, |
| 596 | <&syscrg JH7110_SYSCLK_GMAC1_TX_INV>, |
| 597 | <&syscrg JH7110_SYSCLK_GMAC1_GTXC>; |
| 598 | clock-names = "stmmaceth", "pclk", "ptp_ref", |
| 599 | "tx", "gtx"; |
| 600 | resets = <&syscrg JH7110_SYSRST_GMAC1_AXI>, |
| 601 | <&syscrg JH7110_SYSRST_GMAC1_AHB>; |
| 602 | reset-names = "stmmaceth", "ahb"; |
| 603 | interrupts = <78>, <77>, <76>; |
| 604 | interrupt-names = "macirq", "eth_wake_irq", "eth_lpi"; |
| 605 | snps,multicast-filter-bins = <64>; |
| 606 | snps,perfect-filter-entries = <8>; |
| 607 | rx-fifo-depth = <2048>; |
| 608 | tx-fifo-depth = <2048>; |
| 609 | snps,fixed-burst; |
| 610 | snps,no-pbl-x8; |
| 611 | snps,force_thresh_dma_mode; |
| 612 | snps,axi-config = <&stmmac_axi_setup>; |
| 613 | snps,tso; |
| 614 | snps,en-tx-lpi-clockgating; |
| 615 | snps,txpbl = <16>; |
| 616 | snps,rxpbl = <16>; |
| 617 | starfive,syscon = <&sys_syscon 0x90 0x2>; |
| 618 | status = "disabled"; |
| 619 | }; |
| 620 | |
Yanhong Wang | 96c3eb72 | 2023-03-29 11:42:21 +0800 | [diff] [blame] | 621 | aoncrg: clock-controller@17000000 { |
| 622 | compatible = "starfive,jh7110-aoncrg"; |
| 623 | reg = <0x0 0x17000000 0x0 0x10000>; |
| 624 | clocks = <&osc>, <&rtc_osc>, |
| 625 | <&gmac0_rmii_refin>, <&gmac0_rgmii_rxin>, |
| 626 | <&syscrg JH7110_SYSCLK_STG_AXIAHB>, |
| 627 | <&syscrg JH7110_SYSCLK_APB_BUS>, |
| 628 | <&syscrg JH7110_SYSCLK_GMAC0_GTXCLK>; |
| 629 | clock-names = "osc", "rtc_osc", "gmac0_rmii_refin", |
| 630 | "gmac0_rgmii_rxin", "stg_axiahb", |
| 631 | "apb_bus", "gmac0_gtxclk"; |
| 632 | #clock-cells = <1>; |
| 633 | #reset-cells = <1>; |
| 634 | }; |
| 635 | |
| 636 | aon_syscon: aon_syscon@17010000 { |
| 637 | compatible = "starfive,jh7110-aon-syscon","syscon"; |
| 638 | reg = <0x0 0x17010000 0x0 0x1000>; |
| 639 | }; |
| 640 | |
| 641 | aongpio: pinctrl@17020000 { |
| 642 | compatible = "starfive,jh7110-aon-pinctrl"; |
| 643 | reg = <0x0 0x17020000 0x0 0x10000>; |
| 644 | resets = <&aoncrg JH7110_AONRST_IOMUX>; |
| 645 | interrupts = <85>; |
| 646 | interrupt-controller; |
| 647 | #interrupt-cells = <2>; |
| 648 | gpio-controller; |
| 649 | #gpio-cells = <2>; |
| 650 | }; |
Mason Huo | 23dfd81 | 2023-07-25 17:46:50 +0800 | [diff] [blame] | 651 | |
| 652 | pcie0: pcie@2b000000 { |
| 653 | compatible = "starfive,jh7110-pcie"; |
| 654 | reg = <0x0 0x2b000000 0x0 0x1000000 |
| 655 | 0x9 0x40000000 0x0 0x10000000>; |
| 656 | reg-names = "reg", "config"; |
| 657 | #address-cells = <3>; |
| 658 | #size-cells = <2>; |
| 659 | #interrupt-cells = <1>; |
| 660 | ranges = <0x82000000 0x0 0x30000000 0x0 0x30000000 0x0 0x08000000>, |
| 661 | <0xc3000000 0x9 0x00000000 0x9 0x00000000 0x0 0x40000000>; |
| 662 | interrupts = <56>; |
| 663 | interrupt-parent = <&plic>; |
| 664 | interrupt-map-mask = <0x0 0x0 0x0 0x7>; |
| 665 | interrupt-map = <0x0 0x0 0x0 0x1 &plic 0x1>, |
| 666 | <0x0 0x0 0x0 0x2 &plic 0x2>, |
| 667 | <0x0 0x0 0x0 0x3 &plic 0x3>, |
| 668 | <0x0 0x0 0x0 0x4 &plic 0x4>; |
| 669 | msi-parent = <&plic>; |
| 670 | device_type = "pci"; |
| 671 | starfive,stg-syscon = <&stg_syscon 0xc0 0xc4 0x130 0x1b8>; |
| 672 | bus-range = <0x0 0xff>; |
| 673 | clocks = <&syscrg JH7110_SYSCLK_NOC_BUS_STG_AXI>, |
| 674 | <&stgcrg JH7110_STGCLK_PCIE0_TL>, |
| 675 | <&stgcrg JH7110_STGCLK_PCIE0_AXI>, |
| 676 | <&stgcrg JH7110_STGCLK_PCIE0_APB>; |
| 677 | clock-names = "noc", "tl", "axi", "apb"; |
| 678 | resets = <&stgcrg JH7110_STGRST_PCIE0_MST0>, |
| 679 | <&stgcrg JH7110_STGRST_PCIE0_SLV0>, |
| 680 | <&stgcrg JH7110_STGRST_PCIE0_SLV>, |
| 681 | <&stgcrg JH7110_STGRST_PCIE0_BRG>, |
| 682 | <&stgcrg JH7110_STGRST_PCIE0_CORE>, |
| 683 | <&stgcrg JH7110_STGRST_PCIE0_APB>; |
| 684 | reset-names = "mst0", "slv0", "slv", "brg", |
| 685 | "core", "apb"; |
| 686 | status = "disabled"; |
| 687 | }; |
| 688 | |
| 689 | pcie1: pcie@2c000000 { |
| 690 | compatible = "starfive,jh7110-pcie"; |
| 691 | reg = <0x0 0x2c000000 0x0 0x1000000 |
| 692 | 0x9 0xc0000000 0x0 0x10000000>; |
| 693 | reg-names = "reg", "config"; |
| 694 | #address-cells = <3>; |
| 695 | #size-cells = <2>; |
| 696 | #interrupt-cells = <1>; |
| 697 | ranges = <0x82000000 0x0 0x38000000 0x0 0x38000000 0x0 0x08000000>, |
| 698 | <0xc3000000 0x9 0x80000000 0x9 0x80000000 0x0 0x40000000>; |
| 699 | interrupts = <57>; |
| 700 | interrupt-parent = <&plic>; |
| 701 | interrupt-map-mask = <0x0 0x0 0x0 0x7>; |
| 702 | interrupt-map = <0x0 0x0 0x0 0x1 &plic 0x1>, |
| 703 | <0x0 0x0 0x0 0x2 &plic 0x2>, |
| 704 | <0x0 0x0 0x0 0x3 &plic 0x3>, |
| 705 | <0x0 0x0 0x0 0x4 &plic 0x4>; |
| 706 | msi-parent = <&plic>; |
| 707 | device_type = "pci"; |
| 708 | starfive,stg-syscon = <&stg_syscon 0x270 0x274 0x2e0 0x368>; |
| 709 | bus-range = <0x0 0xff>; |
| 710 | clocks = <&syscrg JH7110_SYSCLK_NOC_BUS_STG_AXI>, |
| 711 | <&stgcrg JH7110_STGCLK_PCIE1_TL>, |
| 712 | <&stgcrg JH7110_STGCLK_PCIE1_AXI>, |
| 713 | <&stgcrg JH7110_STGCLK_PCIE1_APB>; |
| 714 | clock-names = "noc", "tl", "axi", "apb"; |
| 715 | resets = <&stgcrg JH7110_STGRST_PCIE1_MST0>, |
| 716 | <&stgcrg JH7110_STGRST_PCIE1_SLV0>, |
| 717 | <&stgcrg JH7110_STGRST_PCIE1_SLV>, |
| 718 | <&stgcrg JH7110_STGRST_PCIE1_BRG>, |
| 719 | <&stgcrg JH7110_STGRST_PCIE1_CORE>, |
| 720 | <&stgcrg JH7110_STGRST_PCIE1_APB>; |
| 721 | reset-names = "mst0", "slv0", "slv", "brg", |
| 722 | "core", "apb"; |
| 723 | status = "disabled"; |
| 724 | }; |
Yanhong Wang | 96c3eb72 | 2023-03-29 11:42:21 +0800 | [diff] [blame] | 725 | }; |
| 726 | }; |