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