Skip to content

Commit a4b64e1

Browse files
author
deooi
committed
dts: Add ni-bluefinlc device tree
Device tree for Bluefin LC devices are for Low-cost Ethernet cDAQ-9183 and cDAQ-9187. The changes here is to update the model name, NIDEVCODE and removal of dsa switch port 2 (sw1) since Bluefin LC devices only have a single ethernet port. Otherwise, the rest of the device tree remains the same as Bluefin. Signed-off-by: deooi <deborah.ooi@emerson.com>
1 parent 3da1661 commit a4b64e1

1 file changed

Lines changed: 138 additions & 0 deletions

File tree

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
/dts-v1/;
3+
#include <dt-bindings/interrupt-controller/irq.h>
4+
/include/ "ni-zynq.dtsi"
5+
6+
/* NIDEVCODE 7B37 */
7+
/* NIDEVCODE 7B38 */
8+
9+
/ {
10+
model = "NI Bluefin LC";
11+
compatible = "ni,zynq", "xlnx,zynq-7000";
12+
13+
leds {
14+
compatible = "gpio-leds";
15+
16+
/* LED_STATUSy on GPIO46 */
17+
status {
18+
label = "nilrt:status:yellow";
19+
gpios = <&gpio0 46 0>;
20+
default-state = "on";
21+
};
22+
23+
/* LED_ACTIVEg on GPIO47 */
24+
active {
25+
label = "nilrt:active:green";
26+
gpios = <&gpio0 47 0>;
27+
default-state = "off";
28+
};
29+
};
30+
31+
gpio_keys {
32+
compatible = "gpio-keys";
33+
#address-cells = <1>;
34+
#size-cells = <0>;
35+
36+
/* Reset switch is on GPIO48 */
37+
reset_sw@0 {
38+
label = "reset_sw";
39+
gpios = <&gpio0 48 1 /* GPIO_ACTIVE_LOW */>;
40+
linux,code = <408>; /* KEY_RESTART */
41+
wakeup-source;
42+
};
43+
};
44+
45+
gpio_restart {
46+
compatible = "gpio-restart";
47+
48+
/* ~PS_FORCE_RESET is on GPIO44 */
49+
gpios = <&gpio0 44 1 /* GPIO_ACTIVE_LOW */>;
50+
priority = <200>;
51+
};
52+
};
53+
54+
&i2c0 {
55+
/* Override ni-zynq.dtsi; we do not have a CPLD at 0x40. */
56+
nicpld@40 {
57+
status = "disabled";
58+
};
59+
60+
tmp451@4c {
61+
compatible = "ti,tmp451";
62+
reg = <0x4c>;
63+
vcc-supply = <&regulator_vccpint>;
64+
};
65+
};
66+
67+
&gem0 {
68+
status = "okay";
69+
#address-cells = <1>;
70+
#size-cells = <0>;
71+
72+
fixed-link {
73+
speed = <1000>;
74+
full-duplex;
75+
reg = <0>;
76+
};
77+
78+
mdio0: mdio {
79+
status = "okay";
80+
};
81+
};
82+
83+
&mdio0 {
84+
#address-cells = <1>;
85+
#size-cells = <0>;
86+
87+
switch: switch@0 {
88+
compatible = "marvell,mv88e6085";
89+
reg = <0>;
90+
status = "okay";
91+
interrupt-parent = <&intc>;
92+
interrupts = <45 IRQ_TYPE_LEVEL_LOW>;
93+
interrupt-controller;
94+
#interrupt-cells = <2>;
95+
96+
ports {
97+
#address-cells = <1>;
98+
#size-cells = <0>;
99+
100+
port@0 {
101+
reg = <0>;
102+
label = "cpu";
103+
phy-mode = "rgmii-id";
104+
ethernet = <&gem0>;
105+
fixed-link {
106+
speed = <1000>;
107+
full-duplex;
108+
};
109+
};
110+
111+
port@1 {
112+
reg = <1>;
113+
label = "sw0";
114+
phy-handle = <&swphy1>;
115+
};
116+
};
117+
118+
mdio {
119+
swphy1: ethernet-phy@11 {
120+
reg = <0x11>;
121+
};
122+
};
123+
};
124+
};
125+
126+
&uart1 {
127+
status = "okay";
128+
};
129+
130+
&usb0 {
131+
status = "okay";
132+
dr_mode = "host";
133+
};
134+
135+
&watchdog0 {
136+
status = "okay";
137+
reset-on-timeout;
138+
};

0 commit comments

Comments
 (0)