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/gpio/gpio.h>
12 #include <dt-bindings/reset/snps,hsdk-reset.h>
16 compatible = "snps,hsdk";
22 bootargs = "earlycon=uart8250,mmio32,0xf0005000,115200n8 console=ttyS0,115200n8 debug print-fatal-signals=1";
35 compatible = "snps,archs38";
42 compatible = "snps,archs38";
49 compatible = "snps,archs38";
56 compatible = "snps,archs38";
62 input_clk: input-clk {
64 compatible = "fixed-clock";
65 clock-frequency = <33333333>;
68 cpu_intc: cpu-interrupt-controller {
69 compatible = "snps,archs-intc";
71 #interrupt-cells = <1>;
74 idu_intc: idu-interrupt-controller {
75 compatible = "snps,archs-idu-intc";
77 #interrupt-cells = <1>;
78 interrupt-parent = <&cpu_intc>;
82 compatible = "snps,archs-pct";
85 /* TIMER0 with interrupt for clockevent */
87 compatible = "snps,arc-timer";
89 interrupt-parent = <&cpu_intc>;
93 /* 64-bit Global Free Running Counter */
95 compatible = "snps,archs-timer-gfrc";
100 compatible = "simple-bus";
101 #address-cells = <1>;
103 interrupt-parent = <&idu_intc>;
105 ranges = <0x00000000 0x0 0xf0000000 0x10000000>;
107 cgu_rst: reset-controller@8a0 {
108 compatible = "snps,hsdk-reset";
110 reg = <0x8a0 0x4>, <0xff0 0x4>;
113 core_clk: core-clk@0 {
114 compatible = "snps,hsdk-core-pll-clock";
115 reg = <0x00 0x10>, <0x14b8 0x4>;
117 clocks = <&input_clk>;
120 * Set initial core pll output frequency to 1GHz.
121 * It will be applied at the core pll driver probing
124 assigned-clocks = <&core_clk>;
125 assigned-clock-rates = <1000000000>;
128 serial: serial@5000 {
129 compatible = "snps,dw-apb-uart";
130 reg = <0x5000 0x100>;
131 clock-frequency = <33330000>;
139 compatible = "fixed-clock";
140 clock-frequency = <400000000>;
144 mmcclk_ciu: mmcclk-ciu {
145 compatible = "fixed-clock";
147 * DW sdio controller has external ciu clock divider
148 * controlled via register in SDIO IP. Due to its
149 * unexpected default value (it should divide by 1
150 * but it divides by 8) SDIO IP uses wrong clock and
151 * works unstable (see STAR 9001204800)
152 * We switched to the minimum possible value of the
153 * divisor (div-by-2) in HSDK platform code.
154 * So add temporary fix and change clock frequency
155 * to 50000000 Hz until we fix dw sdio driver itself.
157 clock-frequency = <50000000>;
161 mmcclk_biu: mmcclk-biu {
162 compatible = "fixed-clock";
163 clock-frequency = <400000000>;
167 gpu_core_clk: gpu-core-clk {
168 compatible = "fixed-clock";
169 clock-frequency = <400000000>;
173 gpu_dma_clk: gpu-dma-clk {
174 compatible = "fixed-clock";
175 clock-frequency = <400000000>;
179 gpu_cfg_clk: gpu-cfg-clk {
180 compatible = "fixed-clock";
181 clock-frequency = <200000000>;
185 dmac_core_clk: dmac-core-clk {
186 compatible = "fixed-clock";
187 clock-frequency = <400000000>;
191 dmac_cfg_clk: dmac-gpu-cfg-clk {
192 compatible = "fixed-clock";
193 clock-frequency = <200000000>;
197 gmac: ethernet@8000 {
198 #interrupt-cells = <1>;
199 compatible = "snps,dwmac";
200 reg = <0x8000 0x2000>;
202 interrupt-names = "macirq";
205 snps,multicast-filter-bins = <256>;
207 clock-names = "stmmaceth";
208 phy-handle = <&phy0>;
209 resets = <&cgu_rst HSDK_ETH_RESET>;
210 reset-names = "stmmaceth";
211 mac-address = [00 00 00 00 00 00]; /* Filled in by U-Boot */
214 tx-fifo-depth = <4096>;
215 rx-fifo-depth = <4096>;
218 #address-cells = <1>;
220 compatible = "snps,dwmac-mdio";
221 phy0: ethernet-phy@0 {
228 compatible = "snps,hsdk-v1.0-ohci", "generic-ohci";
229 reg = <0x60000 0x100>;
231 resets = <&cgu_rst HSDK_USB_RESET>;
236 compatible = "snps,hsdk-v1.0-ehci", "generic-ehci";
237 reg = <0x40000 0x100>;
239 resets = <&cgu_rst HSDK_USB_RESET>;
244 compatible = "altr,socfpga-dw-mshc";
245 reg = <0xa000 0x400>;
248 card-detect-delay = <200>;
249 clocks = <&mmcclk_biu>, <&mmcclk_ciu>;
250 clock-names = "biu", "ciu";
257 compatible = "snps,dw-apb-ssi";
258 reg = <0x20000 0x100>;
259 #address-cells = <1>;
264 clocks = <&input_clk>;
265 cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>,
266 <&creg_gpio 1 GPIO_ACTIVE_LOW>;
269 compatible = "sst26wf016b", "jedec,spi-nor";
271 #address-cells = <1>;
273 spi-max-frequency = <4000000>;
277 creg_gpio: gpio@14b0 {
278 compatible = "snps,creg-gpio-hsdk";
286 compatible = "snps,dw-apb-gpio";
288 #address-cells = <1>;
291 gpio_port_a: gpio-controller@0 {
292 compatible = "snps,dw-apb-gpio-port";
295 snps,nr-gpios = <24>;
301 compatible = "vivante,gc";
302 reg = <0x90000 0x4000>;
303 clocks = <&gpu_dma_clk>,
307 clock-names = "bus", "reg", "core", "shader";
312 compatible = "snps,axi-dma-1.01a";
313 reg = <0x80000 0x400>;
315 clocks = <&dmac_core_clk>, <&dmac_cfg_clk>;
316 clock-names = "core-clk", "cfgr-clk";
319 snps,dma-masters = <2>;
320 snps,data-width = <3>;
321 snps,block-size = <4096 4096 4096 4096>;
322 snps,priority = <0 1 2 3>;
323 snps,axi-max-burst-len = <16>;
328 #address-cells = <2>;
330 device_type = "memory";
331 reg = <0x0 0x80000000 0x0 0x40000000>; /* 1 GB lowmem */
332 /* 0x1 0x00000000 0x0 0x40000000>; 1 GB highmem */