blob: ee14db3ee8c96341c9c8e7cc02069594856592a6 [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>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070011 bootph-all;
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080012 #clock-cells = <1>;
13 #reset-cells = <1>;
14 };
15
maxims@google.comed365e32017-04-17 12:00:25 -070016 rst: reset-controller {
Simon Glassd3a98cb2023-02-13 08:56:33 -070017 bootph-all;
maxims@google.comed365e32017-04-17 12:00:25 -070018 compatible = "aspeed,ast2500-reset";
maxims@google.comed365e32017-04-17 12:00:25 -070019 #reset-cells = <1>;
20 };
21
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080022 sdrammc: sdrammc@1e6e0000 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070023 bootph-all;
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080024 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>;
Chia-Wei, Wangacc78362020-10-15 10:25:13 +080029 resets = <&rst ASPEED_RESET_SDRAM>;
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080030 };
maxims@google.com232b01a2017-04-17 12:00:34 -070031};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080032
maxims@google.com232b01a2017-04-17 12:00:34 -070033&uart1 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080034 clocks = <&scu ASPEED_CLK_GATE_UART1CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070035};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080036
maxims@google.com232b01a2017-04-17 12:00:34 -070037&uart2 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080038 clocks = <&scu ASPEED_CLK_GATE_UART2CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070039};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080040
maxims@google.com232b01a2017-04-17 12:00:34 -070041&uart3 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080042 clocks = <&scu ASPEED_CLK_GATE_UART3CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070043};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080044
maxims@google.com232b01a2017-04-17 12:00:34 -070045&uart4 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080046 clocks = <&scu ASPEED_CLK_GATE_UART4CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070047};
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080048
maxims@google.com232b01a2017-04-17 12:00:34 -070049&uart5 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080050 clocks = <&scu ASPEED_CLK_GATE_UART5CLK>;
maxims@google.com232b01a2017-04-17 12:00:34 -070051};
52
53&timer {
Simon Glassd3a98cb2023-02-13 08:56:33 -070054 bootph-all;
maxims@google.com2d5a2ad2017-01-18 13:44:56 -080055};
maxims@google.com15016af2017-04-17 12:00:32 -070056
57&mac0 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080058 clocks = <&scu ASPEED_CLK_GATE_MAC1CLK>, <&scu ASPEED_CLK_D2PLL>;
maxims@google.com15016af2017-04-17 12:00:32 -070059};
60
61&mac1 {
Ryan Chen1e4a5c12020-08-31 14:03:04 +080062 clocks = <&scu ASPEED_CLK_GATE_MAC1CLK>, <&scu ASPEED_CLK_D2PLL>;
maxims@google.com15016af2017-04-17 12:00:32 -070063};