bmips: add experimental PCI/PCIe support
[openwrt/staging/ldir.git] / target / linux / bmips / dts / bcm6318-comtrend-ar-5315u.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6318.dtsi"
4
5 / {
6 model = "Comtrend AR-5315u";
7 compatible = "comtrend,ar-5315u", "brcm,bcm6318";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_green;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_green;
14 };
15
16 keys {
17 compatible = "gpio-keys-polled";
18 poll-interval = <20>;
19
20 wps {
21 label = "wps";
22 gpios = <&pinctrl 3 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
24 debounce-interval = <60>;
25 };
26
27 reset {
28 label = "reset";
29 gpios = <&pinctrl 33 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 debounce-interval = <60>;
32 };
33 };
34 };
35
36 &ehci {
37 status = "okay";
38 };
39
40 &ethernet {
41 status = "okay";
42
43 mtd-mac-address = <&cfe 0x6a0>;
44 };
45
46 &hsspi {
47 status = "okay";
48
49 flash@0 {
50 compatible = "jedec,spi-nor";
51 spi-max-frequency = <62500000>;
52 spi-tx-bus-width = <2>;
53 spi-rx-bus-width = <2>;
54 reg = <0>;
55
56 #address-cells = <1>;
57 #size-cells = <1>;
58
59 partitions {
60 compatible = "fixed-partitions";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 cfe: partition@0 {
65 reg = <0x000000 0x010000>;
66 label = "cfe";
67 read-only;
68 };
69
70 partition@10000 {
71 compatible = "brcm,bcm963xx-imagetag";
72 reg = <0x010000 0xfe0000>;
73 label = "firmware";
74 };
75
76 partition@ff0000 {
77 reg = <0xff0000 0x010000>;
78 label = "nvram";
79 };
80 };
81 };
82 };
83
84 &leds {
85 status = "okay";
86
87 pinctrl-names = "default";
88 pinctrl-0 = <&pinctrl_leds
89 &pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
90 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
91
92 led@0 {
93 reg = <0>;
94 active-low;
95 label = "green:wps";
96 };
97
98 led_power_green: led@1 {
99 reg = <1>;
100 active-low;
101 label = "green:power";
102 };
103
104 led@2 {
105 reg = <2>;
106 active-low;
107 label = "green:usb";
108 };
109
110 led@4 {
111 reg = <4>;
112 brcm,hardware-controlled;
113 brcm,link-signal-sources = <4>;
114 /* EPHY0 Act */
115 };
116
117 led@5 {
118 reg = <5>;
119 brcm,hardware-controlled;
120 brcm,link-signal-sources = <5>;
121 /* EPHY1 Act */
122 };
123
124 led@6 {
125 reg = <6>;
126 brcm,hardware-controlled;
127 brcm,link-signal-sources = <6>;
128 /* EPHY2 Act */
129 };
130
131 led@7 {
132 reg = <7>;
133 brcm,hardware-controlled;
134 brcm,link-signal-sources = <7>;
135 /* EPHY3 Act */
136 };
137
138 led@8 {
139 reg = <8>;
140 active-low;
141 label = "green:internet";
142 };
143
144 led@9 {
145 reg = <9>;
146 active-low;
147 label = "red:internet";
148 };
149
150 led@10 {
151 reg = <10>;
152 active-low;
153 label = "green:dsl";
154 };
155
156 led@11 {
157 reg = <11>;
158 active-low;
159 label = "red:power";
160 };
161 };
162
163 &ohci {
164 status = "okay";
165 };
166
167 &pcie {
168 status = "okay";
169 };
170
171 &pinctrl {
172 pinctrl_leds: leds {
173 function = "led";
174 pins = "gpio0", "gpio1",
175 "gpio2", "gpio8",
176 "gpio9", "gpio10",
177 "gpio11";
178 };
179 };
180
181 &switch0 {
182 ports {
183 port@0 {
184 reg = <0>;
185 label = "lan4";
186
187 phy-handle = <&phy1>;
188 };
189
190 port@1 {
191 reg = <1>;
192 label = "lan3";
193
194 phy-handle = <&phy2>;
195 };
196
197 port@2 {
198 reg = <2>;
199 label = "lan2";
200
201 phy-handle = <&phy3>;
202 };
203
204 port@3 {
205 reg = <3>;
206 label = "lan1";
207
208 phy-handle = <&phy4>;
209 };
210 };
211 };
212
213 &uart0 {
214 status = "okay";
215 };
216
217 &usbh {
218 status = "okay";
219 };