blob: 29b08f16ac631916bbfe346191937fe395bad0ca [file] [log] [blame]
Ryan Chen5e6c9f02020-08-31 14:03:03 +08001#include <dt-bindings/clock/aspeed-clock.h>
maxims@google.comed365e32017-04-17 12:00:25 -07002#include <dt-bindings/reset/ast2500-reset.h>
maxims@google.com2d5a2ad2017-01-18 13:44:56 -08003
4#include "ast2500.dtsi"
5
6/ {
7 scu: clock-controller@1e6e2000 {
8 compatible = "aspeed,ast2500-scu";
9 reg = <0x1e6e2000 0x1000>;
10 u-boot,dm-pre-reloc;
11 #clock-cells = <1>;
12 #reset-cells = <1>;
13 };
14
maxims@google.comed365e32017-04-17 12:00:25 -070015 rst: reset-controller {
16 u-boot,dm-pre-reloc;
17 compatible = "aspeed,ast2500-reset";
18 aspeed,wdt = <&wdt1>;
19 #reset-cells = <1>;
20 };
21
maxims@google.com2d5a2ad2017-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.comed365e32017-04-17 12:00:25 -070027 #reset-cells = <1>;
Ryan Chen1e4a5c12020-08-31 14:03:04 +080028 clocks = <&scu ASPEED_CLK_MPLL>;
maxims@google.comed365e32017-04-17 12:00:25 -070029 resets = <&rst AST_RESET_SDRAM>;
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080030 };
31
32 ahb {
33 u-boot,dm-pre-reloc;
34
35 apb {
36 u-boot,dm-pre-reloc;
Eddie James6bd7aeb2019-08-15 14:29:40 -050037
38 sdhci0: sdhci@1e740100 {
39 compatible = "aspeed,ast2500-sdhci";
40 reg = <0x1e740100>;
41 #reset-cells = <1>;
Ryan Chen1e4a5c12020-08-31 14:03:04 +080042 clocks = <&scu ASPEED_CLK_SDIO>;
Eddie James6bd7aeb2019-08-15 14:29:40 -050043 resets = <&rst AST_RESET_SDIO>;
44 };
45
46 sdhci1: sdhci@1e740200 {
47 compatible = "aspeed,ast2500-sdhci";
48 reg = <0x1e740200>;
49 #reset-cells = <1>;
Ryan Chen1e4a5c12020-08-31 14:03:04 +080050 clocks = <&scu ASPEED_CLK_SDIO>;
Eddie James6bd7aeb2019-08-15 14:29:40 -050051 resets = <&rst AST_RESET_SDIO>;
52 };
maxims@google.com232b01a2017-04-17 12:00:34 -070053 };
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080054
maxims@google.com232b01a2017-04-17 12:00:34 -070055 };
56};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080057
maxims@google.com232b01a2017-04-17 12:00:34 -070058&uart1 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080059 clocks = <&scu ASPEED_CLK_GATE_UART1CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070060};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080061
maxims@google.com232b01a2017-04-17 12:00:34 -070062&uart2 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080063 clocks = <&scu ASPEED_CLK_GATE_UART2CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070064};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080065
maxims@google.com232b01a2017-04-17 12:00:34 -070066&uart3 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080067 clocks = <&scu ASPEED_CLK_GATE_UART3CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070068};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080069
maxims@google.com232b01a2017-04-17 12:00:34 -070070&uart4 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080071 clocks = <&scu ASPEED_CLK_GATE_UART4CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070072};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080073
maxims@google.com232b01a2017-04-17 12:00:34 -070074&uart5 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080075 clocks = <&scu ASPEED_CLK_GATE_UART5CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070076};
77
78&timer {
79 u-boot,dm-pre-reloc;
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080080};
maxims@google.com15016af2017-04-17 12:00:32 -070081
82&mac0 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080083 clocks = <&scu ASPEED_CLK_GATE_MAC1CLK>, <&scu ASPEED_CLK_D2PLL>;
maxims@google.com15016af2017-04-17 12:00:32 -070084};
85
86&mac1 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080087 clocks = <&scu ASPEED_CLK_GATE_MAC1CLK>, <&scu ASPEED_CLK_D2PLL>;
maxims@google.com15016af2017-04-17 12:00:32 -070088};