.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright Altera Corporation (C) 2014. All rights reserved. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms and conditions of the GNU General Public License, |
---|
6 | | - * version 2, as published by the Free Software Foundation. |
---|
7 | | - * |
---|
8 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
---|
9 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
10 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
11 | | - * more details. |
---|
12 | | - * |
---|
13 | | - * You should have received a copy of the GNU General Public License along with |
---|
14 | | - * this program. If not, see <http://www.gnu.org/licenses/>. |
---|
15 | 4 | */ |
---|
16 | 5 | |
---|
17 | 6 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
---|
.. | .. |
---|
79 | 68 | #dma-requests = <32>; |
---|
80 | 69 | clocks = <&l4_main_clk>; |
---|
81 | 70 | clock-names = "apb_pclk"; |
---|
| 71 | + resets = <&rst DMA_RESET>, <&rst DMA_OCP_RESET>; |
---|
| 72 | + reset-names = "dma", "dma-ocp"; |
---|
82 | 73 | }; |
---|
83 | 74 | }; |
---|
84 | 75 | |
---|
.. | .. |
---|
377 | 368 | clk-gate = <0xC8 11>; |
---|
378 | 369 | }; |
---|
379 | 370 | |
---|
380 | | - nand_clk: nand_clk { |
---|
| 371 | + nand_x_clk: nand_x_clk { |
---|
381 | 372 | #clock-cells = <0>; |
---|
382 | 373 | compatible = "altr,socfpga-a10-gate-clk"; |
---|
383 | 374 | clocks = <&l4_mp_clk>; |
---|
| 375 | + clk-gate = <0xC8 10>; |
---|
| 376 | + }; |
---|
| 377 | + |
---|
| 378 | + nand_ecc_clk: nand_ecc_clk { |
---|
| 379 | + #clock-cells = <0>; |
---|
| 380 | + compatible = "altr,socfpga-a10-gate-clk"; |
---|
| 381 | + clocks = <&nand_x_clk>; |
---|
| 382 | + clk-gate = <0xC8 10>; |
---|
| 383 | + }; |
---|
| 384 | + |
---|
| 385 | + nand_clk: nand_clk { |
---|
| 386 | + #clock-cells = <0>; |
---|
| 387 | + compatible = "altr,socfpga-a10-gate-clk"; |
---|
| 388 | + clocks = <&nand_x_clk>; |
---|
| 389 | + fixed-divider = <4>; |
---|
384 | 390 | clk-gate = <0xC8 10>; |
---|
385 | 391 | }; |
---|
386 | 392 | |
---|
.. | .. |
---|
414 | 420 | }; |
---|
415 | 421 | |
---|
416 | 422 | gmac0: ethernet@ff800000 { |
---|
417 | | - compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac"; |
---|
| 423 | + compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac"; |
---|
418 | 424 | altr,sysmgr-syscon = <&sysmgr 0x44 0>; |
---|
419 | 425 | reg = <0xff800000 0x2000>; |
---|
420 | 426 | interrupts = <0 92 IRQ_TYPE_LEVEL_HIGH>; |
---|
.. | .. |
---|
425 | 431 | snps,perfect-filter-entries = <128>; |
---|
426 | 432 | tx-fifo-depth = <4096>; |
---|
427 | 433 | rx-fifo-depth = <16384>; |
---|
428 | | - clocks = <&l4_mp_clk>; |
---|
429 | | - clock-names = "stmmaceth"; |
---|
430 | | - resets = <&rst EMAC0_RESET>; |
---|
431 | | - reset-names = "stmmaceth"; |
---|
| 434 | + clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>; |
---|
| 435 | + clock-names = "stmmaceth", "ptp_ref"; |
---|
| 436 | + resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>; |
---|
| 437 | + reset-names = "stmmaceth", "stmmaceth-ocp"; |
---|
432 | 438 | snps,axi-config = <&socfpga_axi_setup>; |
---|
433 | 439 | status = "disabled"; |
---|
434 | 440 | }; |
---|
435 | 441 | |
---|
436 | 442 | gmac1: ethernet@ff802000 { |
---|
437 | | - compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac"; |
---|
438 | | - altr,sysmgr-syscon = <&sysmgr 0x48 0>; |
---|
| 443 | + compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac"; |
---|
| 444 | + altr,sysmgr-syscon = <&sysmgr 0x48 8>; |
---|
439 | 445 | reg = <0xff802000 0x2000>; |
---|
440 | 446 | interrupts = <0 93 IRQ_TYPE_LEVEL_HIGH>; |
---|
441 | 447 | interrupt-names = "macirq"; |
---|
.. | .. |
---|
445 | 451 | snps,perfect-filter-entries = <128>; |
---|
446 | 452 | tx-fifo-depth = <4096>; |
---|
447 | 453 | rx-fifo-depth = <16384>; |
---|
448 | | - clocks = <&l4_mp_clk>; |
---|
449 | | - clock-names = "stmmaceth"; |
---|
450 | | - resets = <&rst EMAC1_RESET>; |
---|
451 | | - reset-names = "stmmaceth"; |
---|
| 454 | + clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>; |
---|
| 455 | + clock-names = "stmmaceth", "ptp_ref"; |
---|
| 456 | + resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>; |
---|
| 457 | + reset-names = "stmmaceth", "stmmaceth-ocp"; |
---|
452 | 458 | snps,axi-config = <&socfpga_axi_setup>; |
---|
453 | 459 | status = "disabled"; |
---|
454 | 460 | }; |
---|
455 | 461 | |
---|
456 | 462 | gmac2: ethernet@ff804000 { |
---|
457 | | - compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac"; |
---|
458 | | - altr,sysmgr-syscon = <&sysmgr 0x4C 0>; |
---|
| 463 | + compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac"; |
---|
| 464 | + altr,sysmgr-syscon = <&sysmgr 0x4C 16>; |
---|
459 | 465 | reg = <0xff804000 0x2000>; |
---|
460 | 466 | interrupts = <0 94 IRQ_TYPE_LEVEL_HIGH>; |
---|
461 | 467 | interrupt-names = "macirq"; |
---|
.. | .. |
---|
465 | 471 | snps,perfect-filter-entries = <128>; |
---|
466 | 472 | tx-fifo-depth = <4096>; |
---|
467 | 473 | rx-fifo-depth = <16384>; |
---|
468 | | - clocks = <&l4_mp_clk>; |
---|
469 | | - clock-names = "stmmaceth"; |
---|
| 474 | + clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>; |
---|
| 475 | + clock-names = "stmmaceth", "ptp_ref"; |
---|
| 476 | + resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>; |
---|
| 477 | + reset-names = "stmmaceth", "stmmaceth-ocp"; |
---|
470 | 478 | snps,axi-config = <&socfpga_axi_setup>; |
---|
471 | 479 | status = "disabled"; |
---|
472 | 480 | }; |
---|
.. | .. |
---|
476 | 484 | #size-cells = <0>; |
---|
477 | 485 | compatible = "snps,dw-apb-gpio"; |
---|
478 | 486 | reg = <0xffc02900 0x100>; |
---|
| 487 | + resets = <&rst GPIO0_RESET>; |
---|
479 | 488 | status = "disabled"; |
---|
480 | 489 | |
---|
481 | 490 | porta: gpio-controller@0 { |
---|
.. | .. |
---|
495 | 504 | #size-cells = <0>; |
---|
496 | 505 | compatible = "snps,dw-apb-gpio"; |
---|
497 | 506 | reg = <0xffc02a00 0x100>; |
---|
| 507 | + resets = <&rst GPIO1_RESET>; |
---|
498 | 508 | status = "disabled"; |
---|
499 | 509 | |
---|
500 | 510 | portb: gpio-controller@0 { |
---|
.. | .. |
---|
514 | 524 | #size-cells = <0>; |
---|
515 | 525 | compatible = "snps,dw-apb-gpio"; |
---|
516 | 526 | reg = <0xffc02b00 0x100>; |
---|
| 527 | + resets = <&rst GPIO2_RESET>; |
---|
517 | 528 | status = "disabled"; |
---|
518 | 529 | |
---|
519 | 530 | portc: gpio-controller@0 { |
---|
.. | .. |
---|
544 | 555 | reg = <0xffc02200 0x100>; |
---|
545 | 556 | interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>; |
---|
546 | 557 | clocks = <&l4_sp_clk>; |
---|
| 558 | + resets = <&rst I2C0_RESET>; |
---|
547 | 559 | status = "disabled"; |
---|
548 | 560 | }; |
---|
549 | 561 | |
---|
.. | .. |
---|
554 | 566 | reg = <0xffc02300 0x100>; |
---|
555 | 567 | interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>; |
---|
556 | 568 | clocks = <&l4_sp_clk>; |
---|
| 569 | + resets = <&rst I2C1_RESET>; |
---|
557 | 570 | status = "disabled"; |
---|
558 | 571 | }; |
---|
559 | 572 | |
---|
.. | .. |
---|
564 | 577 | reg = <0xffc02400 0x100>; |
---|
565 | 578 | interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>; |
---|
566 | 579 | clocks = <&l4_sp_clk>; |
---|
| 580 | + resets = <&rst I2C2_RESET>; |
---|
567 | 581 | status = "disabled"; |
---|
568 | 582 | }; |
---|
569 | 583 | |
---|
.. | .. |
---|
574 | 588 | reg = <0xffc02500 0x100>; |
---|
575 | 589 | interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>; |
---|
576 | 590 | clocks = <&l4_sp_clk>; |
---|
| 591 | + resets = <&rst I2C3_RESET>; |
---|
577 | 592 | status = "disabled"; |
---|
578 | 593 | }; |
---|
579 | 594 | |
---|
.. | .. |
---|
584 | 599 | reg = <0xffc02600 0x100>; |
---|
585 | 600 | interrupts = <0 109 IRQ_TYPE_LEVEL_HIGH>; |
---|
586 | 601 | clocks = <&l4_sp_clk>; |
---|
| 602 | + resets = <&rst I2C4_RESET>; |
---|
587 | 603 | status = "disabled"; |
---|
588 | 604 | }; |
---|
589 | 605 | |
---|
.. | .. |
---|
596 | 612 | num-cs = <4>; |
---|
597 | 613 | /*32bit_access;*/ |
---|
598 | 614 | clocks = <&spi_m_clk>; |
---|
| 615 | + resets = <&rst SPIM0_RESET>; |
---|
| 616 | + reset-names = "spi"; |
---|
599 | 617 | status = "disabled"; |
---|
600 | 618 | }; |
---|
601 | 619 | |
---|
.. | .. |
---|
610 | 628 | tx-dma-channel = <&pdma 16>; |
---|
611 | 629 | rx-dma-channel = <&pdma 17>; |
---|
612 | 630 | clocks = <&spi_m_clk>; |
---|
| 631 | + resets = <&rst SPIM1_RESET>; |
---|
| 632 | + reset-names = "spi"; |
---|
613 | 633 | status = "disabled"; |
---|
614 | 634 | }; |
---|
615 | 635 | |
---|
.. | .. |
---|
638 | 658 | fifo-depth = <0x400>; |
---|
639 | 659 | clocks = <&l4_mp_clk>, <&sdmmc_clk>; |
---|
640 | 660 | clock-names = "biu", "ciu"; |
---|
| 661 | + resets = <&rst SDMMC_RESET>; |
---|
641 | 662 | status = "disabled"; |
---|
642 | 663 | }; |
---|
643 | 664 | |
---|
644 | 665 | nand: nand@ffb90000 { |
---|
645 | 666 | #address-cells = <1>; |
---|
646 | | - #size-cells = <1>; |
---|
| 667 | + #size-cells = <0>; |
---|
647 | 668 | compatible = "altr,socfpga-denali-nand"; |
---|
648 | 669 | reg = <0xffb90000 0x72000>, |
---|
649 | 670 | <0xffb80000 0x10000>; |
---|
650 | 671 | reg-names = "nand_data", "denali_reg"; |
---|
651 | 672 | interrupts = <0 99 4>; |
---|
652 | | - dma-mask = <0xffffffff>; |
---|
653 | | - clocks = <&nand_clk>; |
---|
| 673 | + clocks = <&nand_clk>, <&nand_x_clk>, <&nand_ecc_clk>; |
---|
| 674 | + clock-names = "nand", "nand_x", "ecc"; |
---|
| 675 | + resets = <&rst NAND_RESET>; |
---|
654 | 676 | status = "disabled"; |
---|
655 | 677 | }; |
---|
656 | 678 | |
---|
.. | .. |
---|
735 | 757 | cdns,fifo-width = <4>; |
---|
736 | 758 | cdns,trigger-address = <0x00000000>; |
---|
737 | 759 | clocks = <&qspi_clk>; |
---|
| 760 | + resets = <&rst QSPI_RESET>, <&rst QSPI_OCP_RESET>; |
---|
| 761 | + reset-names = "qspi", "qspi-ocp"; |
---|
738 | 762 | status = "disabled"; |
---|
739 | 763 | }; |
---|
740 | 764 | |
---|
.. | .. |
---|
760 | 784 | timer@ffffc600 { |
---|
761 | 785 | compatible = "arm,cortex-a9-twd-timer"; |
---|
762 | 786 | reg = <0xffffc600 0x100>; |
---|
763 | | - interrupts = <1 13 0xf04>; |
---|
| 787 | + interrupts = <1 13 0xf01>; |
---|
764 | 788 | clocks = <&mpu_periph_clk>; |
---|
765 | 789 | }; |
---|
766 | 790 | |
---|
.. | .. |
---|
770 | 794 | reg = <0xffc02700 0x100>; |
---|
771 | 795 | clocks = <&l4_sp_clk>; |
---|
772 | 796 | clock-names = "timer"; |
---|
| 797 | + resets = <&rst SPTIMER0_RESET>; |
---|
| 798 | + reset-names = "timer"; |
---|
773 | 799 | }; |
---|
774 | 800 | |
---|
775 | 801 | timer1: timer1@ffc02800 { |
---|
.. | .. |
---|
778 | 804 | reg = <0xffc02800 0x100>; |
---|
779 | 805 | clocks = <&l4_sp_clk>; |
---|
780 | 806 | clock-names = "timer"; |
---|
| 807 | + resets = <&rst SPTIMER1_RESET>; |
---|
| 808 | + reset-names = "timer"; |
---|
781 | 809 | }; |
---|
782 | 810 | |
---|
783 | 811 | timer2: timer2@ffd00000 { |
---|
.. | .. |
---|
786 | 814 | reg = <0xffd00000 0x100>; |
---|
787 | 815 | clocks = <&l4_sys_free_clk>; |
---|
788 | 816 | clock-names = "timer"; |
---|
| 817 | + resets = <&rst L4SYSTIMER0_RESET>; |
---|
| 818 | + reset-names = "timer"; |
---|
789 | 819 | }; |
---|
790 | 820 | |
---|
791 | 821 | timer3: timer3@ffd00100 { |
---|
.. | .. |
---|
794 | 824 | reg = <0xffd00100 0x100>; |
---|
795 | 825 | clocks = <&l4_sys_free_clk>; |
---|
796 | 826 | clock-names = "timer"; |
---|
| 827 | + resets = <&rst L4SYSTIMER1_RESET>; |
---|
| 828 | + reset-names = "timer"; |
---|
797 | 829 | }; |
---|
798 | 830 | |
---|
799 | 831 | uart0: serial0@ffc02000 { |
---|
.. | .. |
---|
803 | 835 | reg-shift = <2>; |
---|
804 | 836 | reg-io-width = <4>; |
---|
805 | 837 | clocks = <&l4_sp_clk>; |
---|
| 838 | + resets = <&rst UART0_RESET>; |
---|
806 | 839 | status = "disabled"; |
---|
807 | 840 | }; |
---|
808 | 841 | |
---|
.. | .. |
---|
813 | 846 | reg-shift = <2>; |
---|
814 | 847 | reg-io-width = <4>; |
---|
815 | 848 | clocks = <&l4_sp_clk>; |
---|
| 849 | + resets = <&rst UART1_RESET>; |
---|
816 | 850 | status = "disabled"; |
---|
817 | 851 | }; |
---|
818 | 852 | |
---|
.. | .. |
---|
853 | 887 | reg = <0xffd00200 0x100>; |
---|
854 | 888 | interrupts = <0 119 IRQ_TYPE_LEVEL_HIGH>; |
---|
855 | 889 | clocks = <&l4_sys_free_clk>; |
---|
| 890 | + resets = <&rst L4WD0_RESET>; |
---|
856 | 891 | status = "disabled"; |
---|
857 | 892 | }; |
---|
858 | 893 | |
---|
.. | .. |
---|
861 | 896 | reg = <0xffd00300 0x100>; |
---|
862 | 897 | interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>; |
---|
863 | 898 | clocks = <&l4_sys_free_clk>; |
---|
| 899 | + resets = <&rst L4WD1_RESET>; |
---|
864 | 900 | status = "disabled"; |
---|
865 | 901 | }; |
---|
866 | 902 | }; |
---|