2 * Copyright (C) 2017 Synopsys, Inc. (www.synopsys.com)
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
10 * Device Tree for ARC HS Development Kit
14 #include <dt-bindings/net/ti-dp83867.h>
15 #include <dt-bindings/reset/snps,hsdk-reset.h>
19 compatible = "snps,hsdk";
25 bootargs = "earlycon=uart8250,mmio32,0xf0005000,115200n8 console=ttyS0,115200n8 debug print-fatal-signals=1";
34 compatible = "snps,archs38";
41 compatible = "snps,archs38";
48 compatible = "snps,archs38";
55 compatible = "snps,archs38";
61 input_clk: input-clk {
63 compatible = "fixed-clock";
64 clock-frequency = <33333333>;
67 cpu_intc: cpu-interrupt-controller {
68 compatible = "snps,archs-intc";
70 #interrupt-cells = <1>;
73 idu_intc: idu-interrupt-controller {
74 compatible = "snps,archs-idu-intc";
76 #interrupt-cells = <1>;
77 interrupt-parent = <&cpu_intc>;
81 compatible = "snps,archs-pct";
84 /* TIMER0 with interrupt for clockevent */
86 compatible = "snps,arc-timer";
88 interrupt-parent = <&cpu_intc>;
92 /* 64-bit Global Free Running Counter */
94 compatible = "snps,archs-timer-gfrc";
99 compatible = "simple-bus";
100 #address-cells = <1>;
102 interrupt-parent = <&idu_intc>;
104 ranges = <0x00000000 0xf0000000 0x10000000>;
106 cgu_rst: reset-controller@8a0 {
107 compatible = "snps,hsdk-reset";
109 reg = <0x8A0 0x4>, <0xFF0 0x4>;
112 core_clk: core-clk@0 {
113 compatible = "snps,hsdk-core-pll-clock";
114 reg = <0x00 0x10>, <0x14B8 0x4>;
116 clocks = <&input_clk>;
119 serial: serial@5000 {
120 compatible = "snps,dw-apb-uart";
121 reg = <0x5000 0x100>;
122 clock-frequency = <33330000>;
130 compatible = "fixed-clock";
131 clock-frequency = <400000000>;
135 mmcclk_ciu: mmcclk-ciu {
136 compatible = "fixed-clock";
138 * DW sdio controller has external ciu clock divider
139 * controlled via register in SDIO IP. Due to its
140 * unexpected default value (it should devide by 1
141 * but it devides by 8) SDIO IP uses wrong clock and
142 * works unstable (see STAR 9001204800)
143 * So add temporary fix and change clock frequency
144 * from 100000000 to 12500000 Hz until we fix dw sdio
147 clock-frequency = <12500000>;
151 mmcclk_biu: mmcclk-biu {
152 compatible = "fixed-clock";
153 clock-frequency = <400000000>;
158 #interrupt-cells = <1>;
159 compatible = "snps,dwmac";
160 reg = <0x8000 0x2000>;
162 interrupt-names = "macirq";
166 clock-names = "stmmaceth";
167 phy-handle = <&phy0>;
168 resets = <&cgu_rst HSDK_ETH_RESET>;
169 reset-names = "stmmaceth";
172 #address-cells = <1>;
174 compatible = "snps,dwmac-mdio";
175 phy0: ethernet-phy@0 {
177 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
178 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
179 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
185 compatible = "snps,hsdk-v1.0-ohci", "generic-ohci";
186 reg = <0x60000 0x100>;
191 compatible = "snps,hsdk-v1.0-ehci", "generic-ehci";
192 reg = <0x40000 0x100>;
197 compatible = "altr,socfpga-dw-mshc";
198 reg = <0xa000 0x400>;
201 card-detect-delay = <200>;
202 clocks = <&mmcclk_biu>, <&mmcclk_ciu>;
203 clock-names = "biu", "ciu";
210 #address-cells = <1>;
212 device_type = "memory";
213 reg = <0x80000000 0x40000000>; /* 1 GiB */