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