Ryan Chen | 654ae29 | 2020-08-31 14:03:05 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Ryan Chen | 15b87fe | 2020-08-31 14:03:03 +0800 | [diff] [blame] | 2 | #include <dt-bindings/clock/aspeed-clock.h> |
maxims@google.com | c93adc0 | 2017-04-17 12:00:25 -0700 | [diff] [blame] | 3 | #include <dt-bindings/reset/ast2500-reset.h> |
maxims@google.com | 14e4b14 | 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>; | ||||
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 11 | bootph-all; |
maxims@google.com | 14e4b14 | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 12 | #clock-cells = <1>; |
13 | #reset-cells = <1>; | ||||
14 | }; | ||||
15 | |||||
maxims@google.com | c93adc0 | 2017-04-17 12:00:25 -0700 | [diff] [blame] | 16 | rst: reset-controller { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 17 | bootph-all; |
maxims@google.com | c93adc0 | 2017-04-17 12:00:25 -0700 | [diff] [blame] | 18 | compatible = "aspeed,ast2500-reset"; |
maxims@google.com | c93adc0 | 2017-04-17 12:00:25 -0700 | [diff] [blame] | 19 | #reset-cells = <1>; |
20 | }; | ||||
21 | |||||
maxims@google.com | 14e4b14 | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 22 | sdrammc: sdrammc@1e6e0000 { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 23 | bootph-all; |
maxims@google.com | 14e4b14 | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 24 | compatible = "aspeed,ast2500-sdrammc"; |
25 | reg = <0x1e6e0000 0x174 | ||||
26 | 0x1e6e0200 0x1d4 >; | ||||
maxims@google.com | c93adc0 | 2017-04-17 12:00:25 -0700 | [diff] [blame] | 27 | #reset-cells = <1>; |
Ryan Chen | c39c9a9 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 28 | clocks = <&scu ASPEED_CLK_MPLL>; |
Chia-Wei, Wang | 611a28c | 2020-10-15 10:25:13 +0800 | [diff] [blame] | 29 | resets = <&rst ASPEED_RESET_SDRAM>; |
maxims@google.com | 14e4b14 | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 30 | }; |
maxims@google.com | 14e4b14 | 2017-01-18 13:44:56 -0800 | [diff] [blame] | 31 | }; |
maxims@google.com | 3b95902 | 2017-04-17 12:00:32 -0700 | [diff] [blame] | 32 | |
maxims@google.com | d5c16d0 | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 33 | &uart1 { |
Ryan Chen | c39c9a9 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 34 | clocks = <&scu ASPEED_CLK_GATE_UART1CLK>; |
maxims@google.com | d5c16d0 | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 35 | }; |
36 | |||||
37 | &uart2 { | ||||
Ryan Chen | c39c9a9 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 38 | clocks = <&scu ASPEED_CLK_GATE_UART2CLK>; |
maxims@google.com | d5c16d0 | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 39 | }; |
40 | |||||
41 | &uart3 { | ||||
Ryan Chen | c39c9a9 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 42 | clocks = <&scu ASPEED_CLK_GATE_UART3CLK>; |
maxims@google.com | d5c16d0 | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 43 | }; |
44 | |||||
45 | &uart4 { | ||||
Ryan Chen | c39c9a9 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 46 | clocks = <&scu ASPEED_CLK_GATE_UART4CLK>; |
maxims@google.com | d5c16d0 | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 47 | }; |
48 | |||||
49 | &uart5 { | ||||
Ryan Chen | c39c9a9 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 50 | clocks = <&scu ASPEED_CLK_GATE_UART5CLK>; |
maxims@google.com | d5c16d0 | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 51 | }; |
52 | |||||
53 | &timer { | ||||
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 54 | bootph-all; |
maxims@google.com | d5c16d0 | 2017-04-17 12:00:34 -0700 | [diff] [blame] | 55 | }; |
56 | |||||
maxims@google.com | 3b95902 | 2017-04-17 12:00:32 -0700 | [diff] [blame] | 57 | &mac0 { |
Ryan Chen | c39c9a9 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 58 | clocks = <&scu ASPEED_CLK_GATE_MAC1CLK>, <&scu ASPEED_CLK_D2PLL>; |
maxims@google.com | 3b95902 | 2017-04-17 12:00:32 -0700 | [diff] [blame] | 59 | }; |
60 | |||||
61 | &mac1 { | ||||
Ryan Chen | c39c9a9 | 2020-08-31 14:03:04 +0800 | [diff] [blame] | 62 | clocks = <&scu ASPEED_CLK_GATE_MAC1CLK>, <&scu ASPEED_CLK_D2PLL>; |
maxims@google.com | 3b95902 | 2017-04-17 12:00:32 -0700 | [diff] [blame] | 63 | }; |