1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2017 Synopsys, Inc. (www.synopsys.com)
7 * Device Tree for ARC HS Development Kit
11 #include <dt-bindings/reset/snps,hsdk-reset.h>
15 compatible = "snps,hsdk";
21 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 0x0 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 * Set initial core pll output frequency to 1GHz.
120 * It will be applied at the core pll driver probing
123 assigned-clocks = <&core_clk>;
124 assigned-clock-rates = <1000000000>;
127 serial: serial@5000 {
128 compatible = "snps,dw-apb-uart";
129 reg = <0x5000 0x100>;
130 clock-frequency = <33330000>;
138 compatible = "fixed-clock";
139 clock-frequency = <400000000>;
143 mmcclk_ciu: mmcclk-ciu {
144 compatible = "fixed-clock";
146 * DW sdio controller has external ciu clock divider
147 * controlled via register in SDIO IP. Due to its
148 * unexpected default value (it should divide by 1
149 * but it divides by 8) SDIO IP uses wrong clock and
150 * works unstable (see STAR 9001204800)
151 * We switched to the minimum possible value of the
152 * divisor (div-by-2) in HSDK platform code.
153 * So add temporary fix and change clock frequency
154 * to 50000000 Hz until we fix dw sdio driver itself.
156 clock-frequency = <50000000>;
160 mmcclk_biu: mmcclk-biu {
161 compatible = "fixed-clock";
162 clock-frequency = <400000000>;
166 gpu_core_clk: gpu-core-clk {
167 compatible = "fixed-clock";
168 clock-frequency = <400000000>;
172 gpu_dma_clk: gpu-dma-clk {
173 compatible = "fixed-clock";
174 clock-frequency = <400000000>;
178 gpu_cfg_clk: gpu-cfg-clk {
179 compatible = "fixed-clock";
180 clock-frequency = <200000000>;
184 dmac_core_clk: dmac-core-clk {
185 compatible = "fixed-clock";
186 clock-frequency = <400000000>;
190 dmac_cfg_clk: dmac-gpu-cfg-clk {
191 compatible = "fixed-clock";
192 clock-frequency = <200000000>;
196 gmac: ethernet@8000 {
197 #interrupt-cells = <1>;
198 compatible = "snps,dwmac";
199 reg = <0x8000 0x2000>;
201 interrupt-names = "macirq";
204 snps,multicast-filter-bins = <256>;
206 clock-names = "stmmaceth";
207 phy-handle = <&phy0>;
208 resets = <&cgu_rst HSDK_ETH_RESET>;
209 reset-names = "stmmaceth";
210 mac-address = [00 00 00 00 00 00]; /* Filled in by U-Boot */
213 tx-fifo-depth = <4096>;
214 rx-fifo-depth = <4096>;
217 #address-cells = <1>;
219 compatible = "snps,dwmac-mdio";
220 phy0: ethernet-phy@0 {
227 compatible = "snps,hsdk-v1.0-ohci", "generic-ohci";
228 reg = <0x60000 0x100>;
230 resets = <&cgu_rst HSDK_USB_RESET>;
235 compatible = "snps,hsdk-v1.0-ehci", "generic-ehci";
236 reg = <0x40000 0x100>;
238 resets = <&cgu_rst HSDK_USB_RESET>;
243 compatible = "altr,socfpga-dw-mshc";
244 reg = <0xa000 0x400>;
247 card-detect-delay = <200>;
248 clocks = <&mmcclk_biu>, <&mmcclk_ciu>;
249 clock-names = "biu", "ciu";
255 creg_gpio: gpio@14b0 {
256 compatible = "snps,creg-gpio-hsdk";
264 compatible = "snps,dw-apb-gpio";
266 #address-cells = <1>;
269 gpio_port_a: gpio-controller@0 {
270 compatible = "snps,dw-apb-gpio-port";
273 snps,nr-gpios = <24>;
279 compatible = "vivante,gc";
280 reg = <0x90000 0x4000>;
281 clocks = <&gpu_dma_clk>,
285 clock-names = "bus", "reg", "core", "shader";
290 compatible = "snps,axi-dma-1.01a";
291 reg = <0x80000 0x400>;
293 clocks = <&dmac_core_clk>, <&dmac_cfg_clk>;
294 clock-names = "core-clk", "cfgr-clk";
297 snps,dma-masters = <2>;
298 snps,data-width = <3>;
299 snps,block-size = <4096 4096 4096 4096>;
300 snps,priority = <0 1 2 3>;
301 snps,axi-max-burst-len = <16>;
306 #address-cells = <2>;
308 device_type = "memory";
309 reg = <0x0 0x80000000 0x0 0x40000000>; /* 1 GB lowmem */
310 /* 0x1 0x00000000 0x0 0x40000000>; 1 GB highmem */