Ryan Chen | 906ab4d | 2020-08-31 14:03:05 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Ryan Chen | 5e6c9f0 | 2020-08-31 14:03:03 +0800 | [diff] [blame] | 2 | #include <dt-bindings/clock/aspeed-clock.h> |
maxims@google.com | ed365e3 | 2017-04-17 12:00:25 -0700 | [diff] [blame] | 3 | #include <dt-bindings/reset/ast2500-reset.h> |
maxims@google.com | 2d5a2ad | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 4 | |
| 5 | #include "ast2500.dtsi" |
| 6 | |
| 7 | / { |
| 8 | scu: clock-controller@1e6e2000 { |
| 9 | compatible = "aspeed,ast2500-scu"; |
| 10 | reg = <0x1e6e2000 0x1000>; |
| 11 | u-boot,dm-pre-reloc; |
| 12 | #clock-cells = <1>; |
| 13 | #reset-cells = <1>; |
| 14 | }; |
| 15 | |
maxims@google.com | ed365e3 | 2017-04-17 12:00:25 -0700 | [diff] [blame] | 16 | rst: reset-controller { |
| 17 | u-boot,dm-pre-reloc; |
| 18 | compatible = "aspeed,ast2500-reset"; |
| 19 | aspeed,wdt = <&wdt1>; |
| 20 | #reset-cells = <1>; |
| 21 | }; |
| 22 | |
maxims@google.com | 2d5a2ad | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 23 | sdrammc: sdrammc@1e6e0000 { |
| 24 | u-boot,dm-pre-reloc; |
| 25 | compatible = "aspeed,ast2500-sdrammc"; |
| 26 | reg = <0x1e6e0000 0x174 |
| 27 | 0x1e6e0200 0x1d4 >; |
maxims@google.com | ed365e3 | 2017-04-17 12:00:25 -0700 | [diff] [blame] | 28 | #reset-cells = <1>; |
Ryan Chen | 1e4a5c1 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 29 | clocks = <&scu ASPEED_CLK_MPLL>; |
maxims@google.com | ed365e3 | 2017-04-17 12:00:25 -0700 | [diff] [blame] | 30 | resets = <&rst AST_RESET_SDRAM>; |
maxims@google.com | 2d5a2ad | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | ahb { |
| 34 | u-boot,dm-pre-reloc; |
| 35 | |
| 36 | apb { |
| 37 | u-boot,dm-pre-reloc; |
Eddie James | 6bd7aeb | 2019-08-15 14:29:40 -0500 | [diff] [blame] | 38 | |
| 39 | sdhci0: sdhci@1e740100 { |
| 40 | compatible = "aspeed,ast2500-sdhci"; |
| 41 | reg = <0x1e740100>; |
| 42 | #reset-cells = <1>; |
Ryan Chen | 1e4a5c1 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 43 | clocks = <&scu ASPEED_CLK_SDIO>; |
Eddie James | 6bd7aeb | 2019-08-15 14:29:40 -0500 | [diff] [blame] | 44 | resets = <&rst AST_RESET_SDIO>; |
| 45 | }; |
| 46 | |
| 47 | sdhci1: sdhci@1e740200 { |
| 48 | compatible = "aspeed,ast2500-sdhci"; |
| 49 | reg = <0x1e740200>; |
| 50 | #reset-cells = <1>; |
Ryan Chen | 1e4a5c1 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 51 | clocks = <&scu ASPEED_CLK_SDIO>; |
Eddie James | 6bd7aeb | 2019-08-15 14:29:40 -0500 | [diff] [blame] | 52 | resets = <&rst AST_RESET_SDIO>; |
| 53 | }; |
maxims@google.com | 232b01a | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 54 | }; |
maxims@google.com | 2d5a2ad | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 55 | |
maxims@google.com | 232b01a | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 56 | }; |
| 57 | }; |
maxims@google.com | 2d5a2ad | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 58 | |
maxims@google.com | 232b01a | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 59 | &uart1 { |
Ryan Chen | 1e4a5c1 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 60 | clocks = <&scu ASPEED_CLK_GATE_UART1CLK>; |
maxims@google.com | 232b01a | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 61 | }; |
maxims@google.com | 2d5a2ad | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 62 | |
maxims@google.com | 232b01a | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 63 | &uart2 { |
Ryan Chen | 1e4a5c1 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 64 | clocks = <&scu ASPEED_CLK_GATE_UART2CLK>; |
maxims@google.com | 232b01a | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 65 | }; |
maxims@google.com | 2d5a2ad | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 66 | |
maxims@google.com | 232b01a | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 67 | &uart3 { |
Ryan Chen | 1e4a5c1 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 68 | clocks = <&scu ASPEED_CLK_GATE_UART3CLK>; |
maxims@google.com | 232b01a | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 69 | }; |
maxims@google.com | 2d5a2ad | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 70 | |
maxims@google.com | 232b01a | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 71 | &uart4 { |
Ryan Chen | 1e4a5c1 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 72 | clocks = <&scu ASPEED_CLK_GATE_UART4CLK>; |
maxims@google.com | 232b01a | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 73 | }; |
maxims@google.com | 2d5a2ad | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 74 | |
maxims@google.com | 232b01a | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 75 | &uart5 { |
Ryan Chen | 1e4a5c1 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 76 | clocks = <&scu ASPEED_CLK_GATE_UART5CLK>; |
maxims@google.com | 232b01a | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 77 | }; |
| 78 | |
| 79 | &timer { |
| 80 | u-boot,dm-pre-reloc; |
maxims@google.com | 2d5a2ad | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 81 | }; |
maxims@google.com | 15016af | 2017-04-17 12:00:32 -0700 | [diff] [blame] | 82 | |
| 83 | &mac0 { |
Ryan Chen | 1e4a5c1 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 84 | clocks = <&scu ASPEED_CLK_GATE_MAC1CLK>, <&scu ASPEED_CLK_D2PLL>; |
maxims@google.com | 15016af | 2017-04-17 12:00:32 -0700 | [diff] [blame] | 85 | }; |
| 86 | |
| 87 | &mac1 { |
Ryan Chen | 1e4a5c1 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 88 | clocks = <&scu ASPEED_CLK_GATE_MAC1CLK>, <&scu ASPEED_CLK_D2PLL>; |
maxims@google.com | 15016af | 2017-04-17 12:00:32 -0700 | [diff] [blame] | 89 | }; |