29d8dfd56e0960f16bca21952ab2c63eda3ad9da
[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,bcm43222-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-fixups = <97 0xfeb3>,
71 <98 0x1618>,
72 <99 0xfab0>,
73 <113 0xfed1>,
74 <114 0x1609>,
75 <115 0xfad9>;
76 };
77 };
78
79 &ehci {
80 status = "okay";
81 };
82
83 &ethernet {
84 status = "okay";
85
86 nvmem-cells = <&macaddr_cfe_6a0>;
87 nvmem-cell-names = "mac-address";
88 };
89
90 &ohci {
91 status = "okay";
92 };
93
94 &pci {
95 status = "okay";
96 };
97
98 &pflash {
99 status = "okay";
100
101 partitions {
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 cfe: partition@0 {
107 label = "CFE";
108 reg = <0x0000000 0x0020000>;
109 read-only;
110 };
111
112 partition@20000 {
113 compatible = "brcm,bcm963xx-imagetag";
114 label = "firmware";
115 reg = <0x0020000 0x1fc0000>;
116 };
117
118 partition@1fe0000 {
119 label = "nvram";
120 reg = <0x1fe0000 0x020000>;
121 };
122 };
123 };
124
125 &pinctrl {
126 pinctrl-names = "default";
127 pinctrl-0 = <&pinctrl_ephy0_led &pinctrl_ephy1_led
128 &pinctrl_ephy2_led &pinctrl_ephy3_led>;
129 };
130
131 &switch0 {
132 ports {
133 port@0 {
134 reg = <0>;
135 label = "lan1";
136
137 phy-handle = <&phy1>;
138 };
139
140 port@1 {
141 reg = <1>;
142 label = "lan2";
143
144 phy-handle = <&phy2>;
145 };
146
147 port@2 {
148 reg = <2>;
149 label = "lan3";
150
151 phy-handle = <&phy3>;
152 };
153
154 port@3 {
155 reg = <3>;
156 label = "lan4";
157
158 phy-handle = <&phy4>;
159 };
160 };
161 };
162
163 &uart0 {
164 status = "okay";
165 };
166
167 &usbh {
168 status = "okay";
169 };
170
171 &cfe {
172 compatible = "nvmem-cells";
173 #address-cells = <1>;
174 #size-cells = <1>;
175
176 macaddr_cfe_6a0: macaddr@6a0 {
177 reg = <0x6a0 0x6>;
178 };
179 };