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