Skip to content

Commit e86eb5c

Browse files
NIwkoegratian
authored andcommitted
artemis: Add ni-7AAE.dts device tree to support artemis
Add the device tree with the device code of 7AAE to support the artemis project. This device tree is adapted from the athena project (76F2), with the removal of nandrive and the addition of sd card support. Signed-off-by: wkoe <wilson.koe@ni.com> Acked-by: Gratian Crisan <gratian.crisan@ni.com>
1 parent 997fc3d commit e86eb5c

2 files changed

Lines changed: 207 additions & 1 deletion

File tree

arch/arm/boot/dts/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,8 @@ dtb-$(CONFIG_ARCH_ZYNQ) += \
10291029
ni-77D5.dtb \
10301030
ni-77D6.dtb \
10311031
ni-7885.dtb \
1032-
ni-793C.dtb
1032+
ni-793C.dtb \
1033+
ni-7AAE.dtb
10331034
dtb-$(CONFIG_MACH_ARMADA_370) += \
10341035
armada-370-db.dtb \
10351036
armada-370-dlink-dns327l.dtb \

arch/arm/boot/dts/ni-7AAE.dts

Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
/dts-v1/;
2+
/include/ "ni-zynq.dtsi"
3+
4+
/ {
5+
model = "NI roboRIO 2.0";
6+
compatible = "ni,zynq", "xlnx,zynq-7000";
7+
8+
aliases {
9+
spi0 = &spi0;
10+
spi1 = &spi1;
11+
};
12+
13+
leds {
14+
compatible = "gpio-leds";
15+
wlan1 {
16+
/* green */
17+
label = "nilrt:wifi:primary";
18+
gpios = <&gpio 55 0>;
19+
};
20+
21+
wlan2 {
22+
/* red */
23+
label = "nilrt:wifi:secondary";
24+
gpios = <&gpio 56 0>;
25+
};
26+
};
27+
28+
amba@0 {
29+
adc: adc@f8007100 {
30+
xlnx,channels {
31+
#address-cells = <1>;
32+
#size-cells = <0>;
33+
/* Channel 0 maps to VPVN */
34+
channel@0 {
35+
reg = <0>;
36+
};
37+
/* Channel 1 maps to VAUX0 */
38+
channel@1 {
39+
reg = <1>;
40+
};
41+
/* Channel 2 maps to VAUX1 */
42+
channel@2 {
43+
reg = <2>;
44+
};
45+
/* Channel 3 maps to VAUX2 */
46+
channel@3 {
47+
reg = <3>;
48+
};
49+
/* Channel 4 maps to VAUX3 */
50+
channel@4 {
51+
reg = <4>;
52+
};
53+
/* Channel 5 maps to VAUX4 */
54+
channel@5 {
55+
reg = <5>;
56+
};
57+
/* Channel 9 maps to VAUX8 */
58+
channel@9 {
59+
reg = <9>;
60+
};
61+
/* Channel 10 maps to VAUX9 */
62+
channel@10 {
63+
reg = <10>;
64+
};
65+
/* Channel 11 maps to VAUX10 */
66+
channel@11 {
67+
reg = <11>;
68+
};
69+
/* Channel 12 maps to VAUX11 */
70+
channel@12 {
71+
reg = <12>;
72+
};
73+
};
74+
};
75+
76+
smcc@e000e000 {
77+
nand@e1000000 {
78+
status = "disabled";
79+
};
80+
};
81+
82+
i2c0: i2c@e0004000 {
83+
nicpld@40 {
84+
watchdogs {
85+
boot-watchdog {
86+
interrupt-parent = <&gpio>;
87+
interrupts = <24 2 /* IRQ_TYPE_EDGE_FALLING */>;
88+
};
89+
};
90+
91+
leds {
92+
status-1 {
93+
label = "nilrt:status:yellow";
94+
max-brightness = <0xFFFF>;
95+
};
96+
};
97+
};
98+
};
99+
100+
i2c1: i2c@e0005000 {
101+
status = "okay";
102+
};
103+
104+
i2c2: i2c@81000000 {
105+
status = "okay";
106+
};
107+
108+
spi0: spi@e0006000 {
109+
status = "okay";
110+
num-cs = <7>;
111+
is-decoded-cs = <1>;
112+
speed-hz = <200000000>;
113+
114+
spidev@0 {
115+
compatible = "spidev";
116+
spi-max-frequency = <2000000>;
117+
reg = <0>;
118+
};
119+
spidev@1 {
120+
compatible = "spidev";
121+
spi-max-frequency = <2000000>;
122+
reg = <1>;
123+
};
124+
spidev@2 {
125+
compatible = "spidev";
126+
spi-max-frequency = <2000000>;
127+
reg = <2>;
128+
};
129+
spidev@3 {
130+
compatible = "spidev";
131+
spi-max-frequency = <2000000>;
132+
reg = <3>;
133+
};
134+
};
135+
136+
spi1: spi@e0007000 {
137+
status = "okay";
138+
num-cs = <3>;
139+
is-decoded-cs = <0>;
140+
speed-hz = <200000000>;
141+
142+
spidev@0 {
143+
compatible = "spidev";
144+
spi-max-frequency = <2000000>;
145+
reg = <0>;
146+
};
147+
};
148+
};
149+
};
150+
151+
&gem0 {
152+
status = "okay";
153+
phy-handle = <&phy0>;
154+
phy-mode = "rgmii-id";
155+
emio-speed-gpios = <&gpio 54 0>,
156+
<0>;
157+
#address-cells = <0x1>;
158+
#size-cells = <0x0>;
159+
160+
phy0: phy@0 {
161+
compatible = "smsc,lan8720","ethernet-phy-ieee802.3-c22";
162+
device_type = "ethernet-phy";
163+
reg = <0x0>;
164+
/* Interrupt pin is connected from PL pin to FPGA IRQ 3 */
165+
interrupts = <0 32 4>;
166+
smsc,disable-energy-detect;
167+
};
168+
};
169+
170+
&sdhci1 {
171+
status = "okay";
172+
};
173+
174+
&ni_uart0 {
175+
status = "okay";
176+
transceiver = "RS-232";
177+
};
178+
179+
&ni_uart1 {
180+
status = "okay";
181+
transceiver = "RS-232";
182+
};
183+
184+
&uart0 {
185+
status = "okay";
186+
};
187+
188+
&can0 {
189+
status = "okay";
190+
};
191+
192+
&usb0 {
193+
status = "okay";
194+
dr_mode = "host";
195+
};
196+
197+
&usb1 {
198+
status = "okay";
199+
dr_mode = "peripheral";
200+
};
201+
202+
&clkc {
203+
/* Enable fclk1 for serial. */
204+
fclk-enable = <0x2>;
205+
};

0 commit comments

Comments
 (0)