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";
93 /* TIMER0 with interrupt for clockevent */
95 compatible = "snps,arc-timer";
97 interrupt-parent = <&cpu_intc>;
101 /* 64-bit Global Free Running Counter */
103 compatible = "snps,archs-timer-gfrc";
104 clocks = <&core_clk>;
108 compatible = "simple-bus";
109 #address-cells = <1>;
111 interrupt-parent = <&idu_intc>;
113 ranges = <0x00000000 0x0 0xf0000000 0x10000000>;
115 cgu_rst: reset-controller@8a0 {
116 compatible = "snps,hsdk-reset";
118 reg = <0x8a0 0x4>, <0xff0 0x4>;
121 core_clk: core-clk@0 {
122 compatible = "snps,hsdk-core-pll-clock";
123 reg = <0x00 0x10>, <0x14b8 0x4>;
125 clocks = <&input_clk>;
128 * Set initial core pll output frequency to 1GHz.
129 * It will be applied at the core pll driver probing
132 assigned-clocks = <&core_clk>;
133 assigned-clock-rates = <1000000000>;
136 serial: serial@5000 {
137 compatible = "snps,dw-apb-uart";
138 reg = <0x5000 0x100>;
139 clock-frequency = <33330000>;
147 compatible = "fixed-clock";
148 clock-frequency = <400000000>;
152 mmcclk_ciu: mmcclk-ciu {
153 compatible = "fixed-clock";
155 * DW sdio controller has external ciu clock divider
156 * controlled via register in SDIO IP. Due to its
157 * unexpected default value (it should divide by 1
158 * but it divides by 8) SDIO IP uses wrong clock and
159 * works unstable (see STAR 9001204800)
160 * We switched to the minimum possible value of the
161 * divisor (div-by-2) in HSDK platform code.
162 * So add temporary fix and change clock frequency
163 * to 50000000 Hz until we fix dw sdio driver itself.
165 clock-frequency = <50000000>;
169 mmcclk_biu: mmcclk-biu {
170 compatible = "fixed-clock";
171 clock-frequency = <400000000>;
175 gpu_core_clk: gpu-core-clk {
176 compatible = "fixed-clock";
177 clock-frequency = <400000000>;
181 gpu_dma_clk: gpu-dma-clk {
182 compatible = "fixed-clock";
183 clock-frequency = <400000000>;
187 gpu_cfg_clk: gpu-cfg-clk {
188 compatible = "fixed-clock";
189 clock-frequency = <200000000>;
193 dmac_core_clk: dmac-core-clk {
194 compatible = "fixed-clock";
195 clock-frequency = <400000000>;
199 dmac_cfg_clk: dmac-gpu-cfg-clk {
200 compatible = "fixed-clock";
201 clock-frequency = <200000000>;
205 gmac: ethernet@8000 {
206 #interrupt-cells = <1>;
207 compatible = "snps,dwmac";
208 reg = <0x8000 0x2000>;
210 interrupt-names = "macirq";
213 snps,multicast-filter-bins = <256>;
215 clock-names = "stmmaceth";
216 phy-handle = <&phy0>;
217 resets = <&cgu_rst HSDK_ETH_RESET>;
218 reset-names = "stmmaceth";
219 mac-address = [00 00 00 00 00 00]; /* Filled in by U-Boot */
222 tx-fifo-depth = <4096>;
223 rx-fifo-depth = <4096>;
226 #address-cells = <1>;
228 compatible = "snps,dwmac-mdio";
229 phy0: ethernet-phy@0 {
236 compatible = "snps,hsdk-v1.0-ohci", "generic-ohci";
237 reg = <0x60000 0x100>;
239 resets = <&cgu_rst HSDK_USB_RESET>;
244 compatible = "snps,hsdk-v1.0-ehci", "generic-ehci";
245 reg = <0x40000 0x100>;
247 resets = <&cgu_rst HSDK_USB_RESET>;
252 compatible = "altr,socfpga-dw-mshc";
253 reg = <0xa000 0x400>;
256 card-detect-delay = <200>;
257 clocks = <&mmcclk_biu>, <&mmcclk_ciu>;
258 clock-names = "biu", "ciu";
265 compatible = "snps,dw-apb-ssi";
266 reg = <0x20000 0x100>;
267 #address-cells = <1>;
272 clocks = <&input_clk>;
273 cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>,
274 <&creg_gpio 1 GPIO_ACTIVE_LOW>;
277 compatible = "sst26wf016b", "jedec,spi-nor";
279 #address-cells = <1>;
281 spi-max-frequency = <4000000>;
285 compatible = "ti,adc108s102";
287 vref-supply = <®_5v0>;
288 spi-max-frequency = <1000000>;
292 creg_gpio: gpio@14b0 {
293 compatible = "snps,creg-gpio-hsdk";
301 compatible = "snps,dw-apb-gpio";
303 #address-cells = <1>;
306 gpio_port_a: gpio-controller@0 {
307 compatible = "snps,dw-apb-gpio-port";
310 snps,nr-gpios = <24>;
316 compatible = "vivante,gc";
317 reg = <0x90000 0x4000>;
318 clocks = <&gpu_dma_clk>,
322 clock-names = "bus", "reg", "core", "shader";
327 compatible = "snps,axi-dma-1.01a";
328 reg = <0x80000 0x400>;
330 clocks = <&dmac_core_clk>, <&dmac_cfg_clk>;
331 clock-names = "core-clk", "cfgr-clk";
334 snps,dma-masters = <2>;
335 snps,data-width = <3>;
336 snps,block-size = <4096 4096 4096 4096>;
337 snps,priority = <0 1 2 3>;
338 snps,axi-max-burst-len = <16>;
343 #address-cells = <2>;
345 device_type = "memory";
346 reg = <0x0 0x80000000 0x0 0x40000000>; /* 1 GB lowmem */
347 /* 0x1 0x00000000 0x0 0x40000000>; 1 GB highmem */