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