e0bac82ff89976ff1d05261c764ea0dffd36f1b7
[openwrt/openwrt.git] / target / linux / bmips / dts / bcm6368-comtrend-vr-3025u.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "bcm6368.dtsi"
6
7 / {
8 model = "Comtrend VR-3025u";
9 compatible = "comtrend,vr-3025u", "brcm,bcm6368";
10
11 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_red;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
16 };
17
18 keys {
19 compatible = "gpio-keys-polled";
20 poll-interval = <100>;
21
22 reset {
23 label = "reset";
24 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
26 debounce-interval = <60>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 led@2 {
34 label = "green:dsl";
35 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
36 };
37
38 led@5 {
39 label = "green:internet";
40 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
41 };
42
43 led_power_green: led@22 {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
47 };
48
49 led_power_red: led@24 {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_RED>;
52 gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
53 panic-indicator;
54 };
55
56 led@31 {
57 label = "red:internet";
58 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
59 };
60 };
61
62 bcm43222-sprom {
63 compatible = "brcm,ssb-sprom";
64
65 pci-bus = <0>;
66 pci-dev = <1>;
67
68 nvmem-cells = <&macaddr_cfe_6a0 1>;
69 nvmem-cell-names = "mac-address";
70
71 brcm,sprom = "brcm/bcm43222-sprom.bin";
72 brcm,sprom-fixups = <97 0xfeb3>,
73 <98 0x1618>,
74 <99 0xfab0>,
75 <113 0xfed1>,
76 <114 0x1609>,
77 <115 0xfad9>;
78 };
79 };
80
81 &ehci {
82 status = "okay";
83 };
84
85 &ethernet {
86 status = "okay";
87
88 nvmem-cells = <&macaddr_cfe_6a0 0>;
89 nvmem-cell-names = "mac-address";
90 };
91
92 &ohci {
93 status = "okay";
94 };
95
96 &pci {
97 status = "okay";
98 };
99
100 &pflash {
101 status = "okay";
102
103 partitions {
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
106 #size-cells = <1>;
107
108 partition@0 {
109 label = "CFE";
110 reg = <0x0000000 0x0020000>;
111 read-only;
112
113 nvmem-layout {
114 compatible = "fixed-layout";
115 #address-cells = <1>;
116 #size-cells = <1>;
117
118 macaddr_cfe_6a0: macaddr@6a0 {
119 compatible = "mac-base";
120 reg = <0x6a0 0x6>;
121 #nvmem-cell-cells = <1>;
122 };
123 };
124 };
125
126 partition@20000 {
127 compatible = "brcm,bcm963xx-imagetag";
128 label = "firmware";
129 reg = <0x0020000 0x1fc0000>;
130 };
131
132 partition@1fe0000 {
133 label = "nvram";
134 reg = <0x1fe0000 0x020000>;
135 };
136 };
137 };
138
139 &pinctrl {
140 pinctrl-names = "default";
141 pinctrl-0 = <&pinctrl_ephy0_led &pinctrl_ephy1_led
142 &pinctrl_ephy2_led &pinctrl_ephy3_led>;
143 };
144
145 &switch0 {
146 ports {
147 port@0 {
148 reg = <0>;
149 label = "lan1";
150
151 phy-handle = <&phy1>;
152 phy-mode = "mii";
153 };
154
155 port@1 {
156 reg = <1>;
157 label = "lan2";
158
159 phy-handle = <&phy2>;
160 phy-mode = "mii";
161 };
162
163 port@2 {
164 reg = <2>;
165 label = "lan3";
166
167 phy-handle = <&phy3>;
168 phy-mode = "mii";
169 };
170
171 port@3 {
172 reg = <3>;
173 label = "lan4";
174
175 phy-handle = <&phy4>;
176 phy-mode = "mii";
177 };
178 };
179 };
180
181 &uart0 {
182 status = "okay";
183 };
184
185 &usbh {
186 status = "okay";
187 };