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