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