bmips: add support for NuCom R5010UNv2
[openwrt/openwrt.git] / target / linux / bmips / dts / bcm6328-nucom-r5010unv2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6328.dtsi"
4
5 / {
6 model = "NuCom R5010UNv2";
7 compatible = "nucom,r5010unv2", "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
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 wps {
28 label = "wps";
29 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
31 debounce-interval = <60>;
32 };
33 };
34
35 bcm43217-sprom {
36 compatible = "brcm,bcma-sprom";
37
38 pci-bus = <1>;
39 pci-dev = <0>;
40
41 nvmem-cells = <&macaddr_cfe_6a0>;
42 nvmem-cell-names = "mac-address";
43 mac-address-increment = <1>;
44
45 brcm,sprom = "brcm/bcm43217-sprom.bin";
46 };
47 };
48
49 &ehci {
50 status = "okay";
51 };
52
53 &ethernet {
54 status = "okay";
55
56 nvmem-cells = <&macaddr_cfe_6a0>;
57 nvmem-cell-names = "mac-address";
58 };
59
60 &hsspi {
61 status = "okay";
62
63 flash@0 {
64 compatible = "jedec,spi-nor";
65 spi-max-frequency = <16666667>;
66 spi-tx-bus-width = <2>;
67 spi-rx-bus-width = <2>;
68 reg = <0>;
69
70 partitions {
71 compatible = "fixed-partitions";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 cfe: partition@0 {
76 label = "cfe";
77 reg = <0x000000 0x010000>;
78 read-only;
79 };
80
81 partition@10000 {
82 compatible = "brcm,bcm963xx-imagetag";
83 label = "firmware";
84 reg = <0x010000 0xfe0000>;
85 };
86
87 partition@ff0000 {
88 label = "nvram";
89 reg = <0xff0000 0x010000>;
90 };
91 };
92 };
93 };
94
95 &leds {
96 status = "okay";
97
98 pinctrl-names = "default";
99 pinctrl-0 = <&pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
100 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led
101 &pinctrl_leds>;
102
103 led@1 {
104 reg = <1>;
105 active-low;
106 label = "green:internet";
107 };
108
109 led@2 {
110 reg = <2>;
111 active-low;
112 label = "red:internet";
113 };
114
115 led@3 {
116 reg = <3>;
117 active-low;
118 label = "green:dsl";
119 };
120
121 led_power_green: led@4 {
122 reg = <4>;
123 active-low;
124 label = "green:power";
125 };
126
127 led_power_red: led@5 {
128 reg = <5>;
129 active-low;
130 label = "red:power";
131 panic-indicator;
132 };
133
134 led@10 {
135 reg = <10>;
136 active-low;
137 label = "green:wps";
138 };
139
140 led@11 {
141 reg = <11>;
142 active-low;
143 label = "green:usb";
144 };
145 };
146
147 &ohci {
148 status = "okay";
149 };
150
151 &pcie {
152 status = "okay";
153 };
154
155 &pinctrl {
156 pinctrl_leds: leds {
157 function = "led";
158 pins = "gpio1", "gpio2", "gpio3",
159 "gpio4", "gpio5", "gpio10",
160 "gpio11";
161 };
162 };
163
164 &switch0 {
165 ports {
166 port@0 {
167 reg = <0>;
168 label = "lan1";
169
170 phy-handle = <&phy1>;
171 phy-mode = "mii";
172 };
173
174 port@1 {
175 reg = <1>;
176 label = "lan2";
177
178 phy-handle = <&phy2>;
179 phy-mode = "mii";
180 };
181
182 port@2 {
183 reg = <2>;
184 label = "lan3";
185
186 phy-handle = <&phy3>;
187 phy-mode = "mii";
188 };
189
190 port@3 {
191 reg = <3>;
192 label = "lan4";
193
194 phy-handle = <&phy4>;
195 phy-mode = "mii";
196 };
197 };
198 };
199
200 &uart0 {
201 status = "okay";
202 };
203
204 &usbh {
205 status = "okay";
206 };
207
208 &cfe {
209 compatible = "nvmem-cells";
210 #address-cells = <1>;
211 #size-cells = <1>;
212
213 macaddr_cfe_6a0: macaddr@6a0 {
214 reg = <0x6a0 0x6>;
215 };
216 };