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 reg_5v0: regulator-5v0 {
69 compatible = "regulator-fixed";
71 regulator-name = "5v0-supply";
72 regulator-min-microvolt = <5000000>;
73 regulator-max-microvolt = <5000000>;
76 cpu_intc: cpu-interrupt-controller {
77 compatible = "snps,archs-intc";
79 #interrupt-cells = <1>;
82 idu_intc: idu-interrupt-controller {
83 compatible = "snps,archs-idu-intc";
85 #interrupt-cells = <1>;
86 interrupt-parent = <&cpu_intc>;
90 compatible = "snps,archs-pct";
91 interrupt-parent = <&cpu_intc>;
95 /* TIMER0 with interrupt for clockevent */
97 compatible = "snps,arc-timer";
99 interrupt-parent = <&cpu_intc>;
100 clocks = <&core_clk>;
103 /* 64-bit Global Free Running Counter */
105 compatible = "snps,archs-timer-gfrc";
106 clocks = <&core_clk>;
110 compatible = "simple-bus";
111 #address-cells = <1>;
113 interrupt-parent = <&idu_intc>;
115 ranges = <0x00000000 0x0 0xf0000000 0x10000000>;
117 cgu_rst: reset-controller@8a0 {
118 compatible = "snps,hsdk-reset";
120 reg = <0x8a0 0x4>, <0xff0 0x4>;
123 core_clk: core-clk@0 {
124 compatible = "snps,hsdk-core-pll-clock";
125 reg = <0x00 0x10>, <0x14b8 0x4>;
127 clocks = <&input_clk>;
130 * Set initial core pll output frequency to 1GHz.
131 * It will be applied at the core pll driver probing
134 assigned-clocks = <&core_clk>;
135 assigned-clock-rates = <1000000000>;
138 serial: serial@5000 {
139 compatible = "snps,dw-apb-uart";
140 reg = <0x5000 0x100>;
141 clock-frequency = <33330000>;
149 compatible = "fixed-clock";
150 clock-frequency = <400000000>;
154 mmcclk_ciu: mmcclk-ciu {
155 compatible = "fixed-clock";
157 * DW sdio controller has external ciu clock divider
158 * controlled via register in SDIO IP. Due to its
159 * unexpected default value (it should divide by 1
160 * but it divides by 8) SDIO IP uses wrong clock and
161 * works unstable (see STAR 9001204800)
162 * We switched to the minimum possible value of the
163 * divisor (div-by-2) in HSDK platform code.
164 * So add temporary fix and change clock frequency
165 * to 50000000 Hz until we fix dw sdio driver itself.
167 clock-frequency = <50000000>;
171 mmcclk_biu: mmcclk-biu {
172 compatible = "fixed-clock";
173 clock-frequency = <400000000>;
177 gpu_core_clk: gpu-core-clk {
178 compatible = "fixed-clock";
179 clock-frequency = <400000000>;
183 gpu_dma_clk: gpu-dma-clk {
184 compatible = "fixed-clock";
185 clock-frequency = <400000000>;
189 gpu_cfg_clk: gpu-cfg-clk {
190 compatible = "fixed-clock";
191 clock-frequency = <200000000>;
195 dmac_core_clk: dmac-core-clk {
196 compatible = "fixed-clock";
197 clock-frequency = <400000000>;
201 dmac_cfg_clk: dmac-gpu-cfg-clk {
202 compatible = "fixed-clock";
203 clock-frequency = <200000000>;
207 gmac: ethernet@8000 {
208 compatible = "snps,dwmac";
209 reg = <0x8000 0x2000>;
211 interrupt-names = "macirq";
212 phy-mode = "rgmii-id";
214 snps,multicast-filter-bins = <256>;
216 clock-names = "stmmaceth";
217 phy-handle = <&phy0>;
218 resets = <&cgu_rst HSDK_ETH_RESET>;
219 reset-names = "stmmaceth";
220 mac-address = [00 00 00 00 00 00]; /* Filled in by U-Boot */
223 tx-fifo-depth = <4096>;
224 rx-fifo-depth = <4096>;
227 #address-cells = <1>;
229 compatible = "snps,dwmac-mdio";
230 phy0: ethernet-phy@0 { /* Micrel KSZ9031 */
237 compatible = "snps,hsdk-v1.0-ohci", "generic-ohci";
238 reg = <0x60000 0x100>;
240 resets = <&cgu_rst HSDK_USB_RESET>;
245 compatible = "snps,hsdk-v1.0-ehci", "generic-ehci";
246 reg = <0x40000 0x100>;
248 resets = <&cgu_rst HSDK_USB_RESET>;
253 compatible = "altr,socfpga-dw-mshc";
254 reg = <0xa000 0x400>;
257 card-detect-delay = <200>;
258 clocks = <&mmcclk_biu>, <&mmcclk_ciu>;
259 clock-names = "biu", "ciu";
266 compatible = "snps,dw-apb-ssi";
267 reg = <0x20000 0x100>;
268 #address-cells = <1>;
273 clocks = <&input_clk>;
274 cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>,
275 <&creg_gpio 1 GPIO_ACTIVE_LOW>;
278 compatible = "sst26wf016b", "jedec,spi-nor";
280 #address-cells = <1>;
282 spi-max-frequency = <4000000>;
286 compatible = "ti,adc108s102";
288 vref-supply = <®_5v0>;
289 spi-max-frequency = <1000000>;
293 creg_gpio: gpio@14b0 {
294 compatible = "snps,creg-gpio-hsdk";
302 compatible = "snps,dw-apb-gpio";
304 #address-cells = <1>;
307 gpio_port_a: gpio-controller@0 {
308 compatible = "snps,dw-apb-gpio-port";
311 snps,nr-gpios = <24>;
317 compatible = "vivante,gc";
318 reg = <0x90000 0x4000>;
319 clocks = <&gpu_dma_clk>,
323 clock-names = "bus", "reg", "core", "shader";
328 compatible = "snps,axi-dma-1.01a";
329 reg = <0x80000 0x400>;
331 clocks = <&dmac_core_clk>, <&dmac_cfg_clk>;
332 clock-names = "core-clk", "cfgr-clk";
335 snps,dma-masters = <2>;
336 snps,data-width = <3>;
337 snps,block-size = <4096 4096 4096 4096>;
338 snps,priority = <0 1 2 3>;
339 snps,axi-max-burst-len = <16>;
344 #address-cells = <2>;
346 device_type = "memory";
347 reg = <0x0 0x80000000 0x0 0x40000000>; /* 1 GB lowmem */
348 /* 0x1 0x00000000 0x0 0x40000000>; 1 GB highmem */