|
4 | 4 | * Copyright (c) 2026 Guodong Xu <guodong@riscstar.com> |
5 | 5 | */ |
6 | 6 |
|
| 7 | +#include <dt-bindings/clock/spacemit,k3-clocks.h> |
7 | 8 | #include <dt-bindings/interrupt-controller/irq.h> |
8 | 9 |
|
9 | 10 | /dts-v1/; |
|
398 | 399 | }; |
399 | 400 | }; |
400 | 401 |
|
| 402 | + clocks { |
| 403 | + vctcxo_1m: clock-1m { |
| 404 | + compatible = "fixed-clock"; |
| 405 | + clock-frequency = <1000000>; |
| 406 | + clock-output-names = "vctcxo_1m"; |
| 407 | + #clock-cells = <0>; |
| 408 | + }; |
| 409 | + |
| 410 | + vctcxo_24m: clock-24m { |
| 411 | + compatible = "fixed-clock"; |
| 412 | + clock-frequency = <24000000>; |
| 413 | + clock-output-names = "vctcxo_24m"; |
| 414 | + #clock-cells = <0>; |
| 415 | + }; |
| 416 | + |
| 417 | + vctcxo_3m: clock-3m { |
| 418 | + compatible = "fixed-clock"; |
| 419 | + clock-frequency = <3000000>; |
| 420 | + clock-output-names = "vctcxo_3m"; |
| 421 | + #clock-cells = <0>; |
| 422 | + }; |
| 423 | + |
| 424 | + osc_32k: clock-32k { |
| 425 | + compatible = "fixed-clock"; |
| 426 | + clock-frequency = <32000>; |
| 427 | + clock-output-names = "osc_32k"; |
| 428 | + #clock-cells = <0>; |
| 429 | + }; |
| 430 | + }; |
| 431 | + |
401 | 432 | soc: soc { |
402 | 433 | compatible = "simple-bus"; |
403 | 434 | interrupt-parent = <&saplic>; |
|
406 | 437 | dma-noncoherent; |
407 | 438 | ranges; |
408 | 439 |
|
| 440 | + syscon_apbc: system-controller@d4015000 { |
| 441 | + compatible = "spacemit,k3-syscon-apbc"; |
| 442 | + reg = <0x0 0xd4015000 0x0 0x1000>; |
| 443 | + clocks = <&osc_32k>, <&vctcxo_1m>, <&vctcxo_3m>, <&vctcxo_24m>; |
| 444 | + clock-names = "osc", "vctcxo_1m", "vctcxo_3m", "vctcxo_24m"; |
| 445 | + #clock-cells = <1>; |
| 446 | + #reset-cells = <1>; |
| 447 | + }; |
| 448 | + |
409 | 449 | uart0: serial@d4017000 { |
410 | 450 | compatible = "spacemit,k3-uart", "intel,xscale-uart"; |
411 | 451 | reg = <0x0 0xd4017000 0x0 0x100>; |
|
506 | 546 | status = "disabled"; |
507 | 547 | }; |
508 | 548 |
|
| 549 | + syscon_mpmu: system-controller@d4050000 { |
| 550 | + compatible = "spacemit,k3-syscon-mpmu"; |
| 551 | + reg = <0x0 0xd4050000 0x0 0x10000>; |
| 552 | + clocks = <&osc_32k>, <&vctcxo_1m>, <&vctcxo_3m>, <&vctcxo_24m>; |
| 553 | + clock-names = "osc", "vctcxo_1m", "vctcxo_3m", "vctcxo_24m"; |
| 554 | + #clock-cells = <1>; |
| 555 | + #power-domain-cells = <1>; |
| 556 | + #reset-cells = <1>; |
| 557 | + }; |
| 558 | + |
| 559 | + pll: clock-controller@d4090000 { |
| 560 | + compatible = "spacemit,k3-pll"; |
| 561 | + reg = <0x0 0xd4090000 0x0 0x10000>; |
| 562 | + clocks = <&vctcxo_24m>; |
| 563 | + spacemit,mpmu = <&syscon_mpmu>; |
| 564 | + #clock-cells = <1>; |
| 565 | + }; |
| 566 | + |
| 567 | + syscon_apmu: system-controller@d4282800 { |
| 568 | + compatible = "spacemit,k3-syscon-apmu"; |
| 569 | + reg = <0x0 0xd4282800 0x0 0x400>; |
| 570 | + clocks = <&osc_32k>, <&vctcxo_1m>, <&vctcxo_3m>, <&vctcxo_24m>; |
| 571 | + clock-names = "osc", "vctcxo_1m", "vctcxo_3m", "vctcxo_24m"; |
| 572 | + #clock-cells = <1>; |
| 573 | + #power-domain-cells = <1>; |
| 574 | + #reset-cells = <1>; |
| 575 | + }; |
| 576 | + |
| 577 | + syscon_dciu: system-controller@d8440000 { |
| 578 | + compatible = "spacemit,k3-syscon-dciu"; |
| 579 | + reg = <0x0 0xd8440000 0x0 0xc000>; |
| 580 | + #clock-cells = <1>; |
| 581 | + #reset-cells = <1>; |
| 582 | + }; |
| 583 | + |
509 | 584 | simsic: interrupt-controller@e0400000 { |
510 | 585 | compatible = "spacemit,k3-imsics", "riscv,imsics"; |
511 | 586 | reg = <0x0 0xe0400000 0x0 0x200000>; |
|
0 commit comments