blob: 057390fe707e6d575549ab38999bcc4642bd755a [file] [log] [blame]
Ryan Chen654ae292020-08-31 14:03:05 +08001// SPDX-License-Identifier: GPL-2.0
Ryan Chen15b87fe2020-08-31 14:03:03 +08002#include <dt-bindings/clock/aspeed-clock.h>
maxims@google.comc93adc02017-04-17 12:00:25 -07003#include <dt-bindings/reset/ast2500-reset.h>
maxims@google.com14e4b142017-01-18 13:44:56 -08004
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.comc93adc02017-04-17 12:00:25 -070016 rst: reset-controller {
17 u-boot,dm-pre-reloc;
18 compatible = "aspeed,ast2500-reset";
maxims@google.comc93adc02017-04-17 12:00:25 -070019 #reset-cells = <1>;
20 };
21
maxims@google.com14e4b142017-01-18 13:44:56 -080022 sdrammc: sdrammc@1e6e0000 {
23 u-boot,dm-pre-reloc;
24 compatible = "aspeed,ast2500-sdrammc";
25 reg = <0x1e6e0000 0x174
26 0x1e6e0200 0x1d4 >;
maxims@google.comc93adc02017-04-17 12:00:25 -070027 #reset-cells = <1>;
Ryan Chenc39c9a92020-08-31 14:03:04 +080028 clocks = <&scu ASPEED_CLK_MPLL>;
Chia-Wei, Wang611a28c2020-10-15 10:25:13 +080029 resets = <&rst ASPEED_RESET_SDRAM>;
maxims@google.com14e4b142017-01-18 13:44:56 -080030 };
maxims@google.com14e4b142017-01-18 13:44:56 -080031};
maxims@google.com3b959022017-04-17 12:00:32 -070032
maxims@google.comd5c16d02017-04-17 12:00:34 -070033&uart1 {
Ryan Chenc39c9a92020-08-31 14:03:04 +080034 clocks = <&scu ASPEED_CLK_GATE_UART1CLK>;
maxims@google.comd5c16d02017-04-17 12:00:34 -070035};
36
37&uart2 {
Ryan Chenc39c9a92020-08-31 14:03:04 +080038 clocks = <&scu ASPEED_CLK_GATE_UART2CLK>;
maxims@google.comd5c16d02017-04-17 12:00:34 -070039};
40
41&uart3 {
Ryan Chenc39c9a92020-08-31 14:03:04 +080042 clocks = <&scu ASPEED_CLK_GATE_UART3CLK>;
maxims@google.comd5c16d02017-04-17 12:00:34 -070043};
44
45&uart4 {
Ryan Chenc39c9a92020-08-31 14:03:04 +080046 clocks = <&scu ASPEED_CLK_GATE_UART4CLK>;
maxims@google.comd5c16d02017-04-17 12:00:34 -070047};
48
49&uart5 {
Ryan Chenc39c9a92020-08-31 14:03:04 +080050 clocks = <&scu ASPEED_CLK_GATE_UART5CLK>;
maxims@google.comd5c16d02017-04-17 12:00:34 -070051};
52
53&timer {
54 u-boot,dm-pre-reloc;
55};
56
maxims@google.com3b959022017-04-17 12:00:32 -070057&mac0 {
Ryan Chenc39c9a92020-08-31 14:03:04 +080058 clocks = <&scu ASPEED_CLK_GATE_MAC1CLK>, <&scu ASPEED_CLK_D2PLL>;
maxims@google.com3b959022017-04-17 12:00:32 -070059};
60
61&mac1 {
Ryan Chenc39c9a92020-08-31 14:03:04 +080062 clocks = <&scu ASPEED_CLK_GATE_MAC1CLK>, <&scu ASPEED_CLK_D2PLL>;
maxims@google.com3b959022017-04-17 12:00:32 -070063};