blob: 51a5244766c8da2b1a07165a22f59c17ed05f1df [file] [log] [blame]
Ryan Chen906ab4d2020-08-31 14:03:05 +08001// SPDX-License-Identifier: GPL-2.0
Ryan Chen5e6c9f02020-08-31 14:03:03 +08002#include <dt-bindings/clock/aspeed-clock.h>
maxims@google.comed365e32017-04-17 12:00:25 -07003#include <dt-bindings/reset/ast2500-reset.h>
maxims@google.com2d5a2ad2017-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.comed365e32017-04-17 12:00:25 -070016 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.com2d5a2ad2017-01-18 13:44:56 -080023 sdrammc: sdrammc@1e6e0000 {
24 u-boot,dm-pre-reloc;
25 compatible = "aspeed,ast2500-sdrammc";
26 reg = <0x1e6e0000 0x174
27 0x1e6e0200 0x1d4 >;
maxims@google.comed365e32017-04-17 12:00:25 -070028 #reset-cells = <1>;
Ryan Chen1e4a5c12020-08-31 14:03:04 +080029 clocks = <&scu ASPEED_CLK_MPLL>;
maxims@google.comed365e32017-04-17 12:00:25 -070030 resets = <&rst AST_RESET_SDRAM>;
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080031 };
32
33 ahb {
34 u-boot,dm-pre-reloc;
35
36 apb {
37 u-boot,dm-pre-reloc;
Eddie James6bd7aeb2019-08-15 14:29:40 -050038
39 sdhci0: sdhci@1e740100 {
40 compatible = "aspeed,ast2500-sdhci";
41 reg = <0x1e740100>;
42 #reset-cells = <1>;
Ryan Chen1e4a5c12020-08-31 14:03:04 +080043 clocks = <&scu ASPEED_CLK_SDIO>;
Eddie James6bd7aeb2019-08-15 14:29:40 -050044 resets = <&rst AST_RESET_SDIO>;
45 };
46
47 sdhci1: sdhci@1e740200 {
48 compatible = "aspeed,ast2500-sdhci";
49 reg = <0x1e740200>;
50 #reset-cells = <1>;
Ryan Chen1e4a5c12020-08-31 14:03:04 +080051 clocks = <&scu ASPEED_CLK_SDIO>;
Eddie James6bd7aeb2019-08-15 14:29:40 -050052 resets = <&rst AST_RESET_SDIO>;
53 };
maxims@google.com232b01a2017-04-17 12:00:34 -070054 };
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080055
maxims@google.com232b01a2017-04-17 12:00:34 -070056 };
57};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080058
maxims@google.com232b01a2017-04-17 12:00:34 -070059&uart1 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080060 clocks = <&scu ASPEED_CLK_GATE_UART1CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070061};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080062
maxims@google.com232b01a2017-04-17 12:00:34 -070063&uart2 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080064 clocks = <&scu ASPEED_CLK_GATE_UART2CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070065};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080066
maxims@google.com232b01a2017-04-17 12:00:34 -070067&uart3 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080068 clocks = <&scu ASPEED_CLK_GATE_UART3CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070069};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080070
maxims@google.com232b01a2017-04-17 12:00:34 -070071&uart4 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080072 clocks = <&scu ASPEED_CLK_GATE_UART4CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070073};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080074
maxims@google.com232b01a2017-04-17 12:00:34 -070075&uart5 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080076 clocks = <&scu ASPEED_CLK_GATE_UART5CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070077};
78
79&timer {
80 u-boot,dm-pre-reloc;
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080081};
maxims@google.com15016af2017-04-17 12:00:32 -070082
83&mac0 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080084 clocks = <&scu ASPEED_CLK_GATE_MAC1CLK>, <&scu ASPEED_CLK_D2PLL>;
maxims@google.com15016af2017-04-17 12:00:32 -070085};
86
87&mac1 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080088 clocks = <&scu ASPEED_CLK_GATE_MAC1CLK>, <&scu ASPEED_CLK_D2PLL>;
maxims@google.com15016af2017-04-17 12:00:32 -070089};