forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemsdp.dtsi
156 lines (135 loc) · 3.11 KB
/
emsdp.dtsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
/*
* Copyright (c) 2018, Synopsys, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "skeleton.dtsi"
//#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/gpio/gpio.h>
#define DT_APB_CLK_HZ 100000000
/ {
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "snps,arcem";
reg = <0>;
};
};
intc: arcv2-intc {
compatible = "snps,arcv2-intc";
interrupt-controller;
#interrupt-cells = <2>;
};
timer0: timer0 {
compatible = "snps,arc-timer";
interrupts = <16 1>;
interrupt-parent = <&intc>;
};
iccm0: iccm@60000000 {
compatible = "arc,iccm";
reg = <0x60000000 0x20000>;
};
dccm0: dccm@80000000 {
compatible = "arc,dccm";
reg = <0x80000000 0x20000>;
};
/* this is (Pseudo SRAM), so treat it like mmio-sram */
sram0: memory@10000000 {
compatible = "mmio-sram";
reg = <0x10000000 0x1000000>;
};
spiclk: spi-clock {
compatible = "fixed-clock";
clock-frequency = <1000000>;
#clock-cells = <0>;
};
soc {
#address-cells = <1>;
#size-cells = <1>;
compatible = "simple-bus";
ranges;
uart0: uart@f0004000 {
compatible = "ns16550";
clock-frequency = <DT_APB_CLK_HZ>;
reg = <0xf0004000 0x1000>;
interrupt-parent = <&intc>;
reg-shift = <2>;
};
gpio0: gpio@f0002000 {
compatible = "snps,designware-gpio";
reg = <0xf0002000 0xc>;
ngpios = <4>;
interrupt-parent = <&intc>;
gpio-controller;
#gpio-cells = <2>;
};
gpio1: gpio@f000200c {
compatible = "snps,designware-gpio";
reg = <0xf000200c 0xc>;
ngpios = <8>;
gpio-controller;
#gpio-cells = <2>;
};
/* wifi rs9113 */
spi0: spi@f0008000 {
compatible = "snps,designware-spi";
reg = <0xf0008000 0x1000>;
clocks = <&spiclk>;
fifo-depth = <32>;
interrupt-parent = <&intc>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
pinctrl: pinctrl@f0001000 {
compatible = "snps,emsdp-pinctrl";
reg = <0xf0001000 0x100>;
};
/* SPI-flash for user data */
spi1: spi@f1000000 {
compatible = "snps,designware-spi";
reg = <0xf1000000 0x1000>;
clocks = <&spiclk>;
fifo-depth = <32>;
interrupt-parent = <&intc>;
#address-cells = <1>;
#size-cells = <0>;
s25fl256s: s25fl256s@0 {
compatible = "spansion,s25fl256s", "jedec,spi-nor";
reg = <0>;
size = <0x10000000>;
spi-max-frequency = <100000>;
status = "okay";
jedec-id = [01 02 19];
};
};
/* DFSS-SPI0 */
spi2: spi@80010000 {
compatible = "snps,designware-spi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x80010000 0x100>;
clocks = <&spiclk>;
interrupts = <63 2>, <64 2>, <65 2>;
interrupt-names = "err_int", "rx_avail", "tx_req";
interrupt-parent = <&intc>;
aux_reg;
fifo-depth = <16>;
};
/* DFSS-SPI1 */
spi3: spi@80010100 {
compatible = "snps,designware-spi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x80010100 0x100>;
clocks = <&spiclk>;
interrupts = <67 2>, <68 2>, <69 2>;
interrupt-names = "err_int", "rx_avail", "tx_req";
interrupt-parent = <&intc>;
aux_reg;
fifo-depth = <16>;
};
};
};