6466cb3aca020cec92ff818d5d6cfcb0e334a5ff
[openwrt/staging/chunkeey.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
16 keys {
17 compatible = "gpio-keys-polled";
18 poll-interval = <20>;
19
20 reset {
21 label = "reset";
22 gpios = <&pinctrl 34 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 debounce-interval = <60>;
25 };
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 led@2 {
32 label = "green:dsl";
33 gpios = <&pinctrl 2 GPIO_ACTIVE_LOW>;
34 };
35
36 led@5 {
37 label = "green:internet";
38 gpios = <&pinctrl 5 GPIO_ACTIVE_HIGH>;
39 };
40
41 led_power_green: led@22 {
42 label = "green:power";
43 gpios = <&pinctrl 22 GPIO_ACTIVE_HIGH>;
44 };
45
46 led_power_red: led@24 {
47 label = "red:power";
48 gpios = <&pinctrl 24 GPIO_ACTIVE_HIGH>;
49 };
50
51 led@31 {
52 label = "red:internet";
53 gpios = <&pinctrl 31 GPIO_ACTIVE_HIGH>;
54 };
55 };
56
57 bcm43222-sprom {
58 compatible = "brcm,bcm43222-sprom";
59
60 pci-bus = <0>;
61 pci-dev = <1>;
62
63 mtd-mac-address = <&cfe 0x6a0>;
64 mtd-mac-address-increment = <1>;
65
66 brcm,sprom-fixups = <97 0xfeb3>,
67 <98 0x1618>,
68 <99 0xfab0>,
69 <113 0xfed1>,
70 <114 0x1609>,
71 <115 0xfad9>;
72 };
73 };
74
75 &ehci {
76 status = "okay";
77 };
78
79 &ethernet {
80 status = "okay";
81
82 mtd-mac-address = <&cfe 0x6a0>;
83 };
84
85 &ohci {
86 status = "okay";
87 };
88
89 &pci {
90 status = "okay";
91 };
92
93 &pflash {
94 status = "okay";
95
96 partitions {
97 compatible = "fixed-partitions";
98 #address-cells = <1>;
99 #size-cells = <1>;
100
101 cfe: partition@0 {
102 label = "CFE";
103 reg = <0x0000000 0x0020000>;
104 read-only;
105 };
106
107 partition@20000 {
108 compatible = "brcm,bcm963xx-imagetag";
109 label = "firmware";
110 reg = <0x0020000 0x1fc0000>;
111 };
112
113 partition@1fe0000 {
114 label = "nvram";
115 reg = <0x1fe0000 0x020000>;
116 };
117 };
118 };
119
120 &pinctrl {
121 pinctrl-names = "default";
122 pinctrl-0 = <&pinctrl_ephy0_led &pinctrl_ephy1_led
123 &pinctrl_ephy2_led &pinctrl_ephy3_led>;
124 };
125
126 &switch0 {
127 ports {
128 port@0 {
129 reg = <0>;
130 label = "lan1";
131
132 phy-handle = <&phy1>;
133 };
134
135 port@1 {
136 reg = <1>;
137 label = "lan2";
138
139 phy-handle = <&phy2>;
140 };
141
142 port@2 {
143 reg = <2>;
144 label = "lan3";
145
146 phy-handle = <&phy3>;
147 };
148
149 port@3 {
150 reg = <3>;
151 label = "lan4";
152
153 phy-handle = <&phy4>;
154 };
155 };
156 };
157
158 &uart0 {
159 status = "okay";
160 };
161
162 &usbh {
163 status = "okay";
164 };