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