bmips: add support for Comtrend AR-5381u
[openwrt/staging/jow.git] / target / linux / bmips / dts / bcm6328-comtrend-ar-5381u.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6328.dtsi"
4
5 / {
6 model = "Comtrend AR-5381u";
7 compatible = "comtrend,ar-5381u", "brcm,bcm6328";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_alarm_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>;
35 nvmem-cell-names = "mac-address";
36 mac-address-increment = <1>;
37
38 brcm,sprom = "brcm/bcm43225-sprom.bin";
39 brcm,sprom-fixups = <97 0xfee5>,
40 <98 0x157c>,
41 <99 0xfae7>,
42 <113 0xfefa>,
43 <114 0x15d6>,
44 <115 0xfaf8>;
45 };
46 };
47
48 &ehci {
49 status = "okay";
50 };
51
52 &ethernet {
53 status = "okay";
54
55 nvmem-cells = <&macaddr_cfe_6a0>;
56 nvmem-cell-names = "mac-address";
57 };
58
59 &hsspi {
60 status = "okay";
61
62 flash@0 {
63 compatible = "jedec,spi-nor";
64 spi-max-frequency = <16666667>;
65 spi-tx-bus-width = <2>;
66 spi-rx-bus-width = <2>;
67 reg = <0>;
68
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partitions {
73 compatible = "fixed-partitions";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 cfe: partition@0 {
78 reg = <0x000000 0x010000>;
79 label = "cfe";
80 read-only;
81 };
82
83 partition@10000 {
84 compatible = "brcm,bcm963xx-imagetag";
85 reg = <0x010000 0xfe0000>;
86 label = "firmware";
87 };
88
89 partition@ff0000 {
90 reg = <0xff0000 0x010000>;
91 label = "nvram";
92 };
93 };
94 };
95 };
96
97 &leds {
98 status = "okay";
99
100 pinctrl-names = "default";
101 pinctrl-0 = <&pinctrl_leds>;
102
103 led_alarm_red: led@2 {
104 reg = <2>;
105 active-low;
106 label = "red:alarm";
107 panic-indicator;
108 };
109
110 led@3 {
111 reg = <3>;
112 active-low;
113 label = "green:internet";
114 };
115
116 led_power_green: led@4 {
117 reg = <4>;
118 active-low;
119 label = "green:power";
120 };
121 };
122
123 &ohci {
124 status = "okay";
125 };
126
127 &pcie {
128 status = "okay";
129 };
130
131 &pinctrl {
132 pinctrl_leds: leds {
133 function = "led";
134 pins = "gpio2", "gpio3", "gpio4";
135 };
136 };
137
138 &switch0 {
139 ports {
140 port@0 {
141 reg = <0>;
142 label = "lan1";
143
144 phy-handle = <&phy1>;
145 phy-mode = "mii";
146 };
147
148 port@1 {
149 reg = <1>;
150 label = "lan2";
151
152 phy-handle = <&phy2>;
153 phy-mode = "mii";
154 };
155
156 port@2 {
157 reg = <2>;
158 label = "lan3";
159
160 phy-handle = <&phy3>;
161 phy-mode = "mii";
162 };
163
164 port@3 {
165 reg = <3>;
166 label = "lan4";
167
168 phy-handle = <&phy4>;
169 phy-mode = "mii";
170 };
171 };
172 };
173
174 &uart0 {
175 status = "okay";
176 };
177
178 &usbh {
179 status = "okay";
180 };
181
182 &cfe {
183 compatible = "nvmem-cells";
184 #address-cells = <1>;
185 #size-cells = <1>;
186
187 macaddr_cfe_6a0: macaddr@6a0 {
188 reg = <0x6a0 0x6>;
189 };
190 };