bmips: add support for Comtrend VR-3025un
[openwrt/staging/jow.git] / target / linux / bmips / dts / bcm6368-comtrend-vr-3025un.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6368.dtsi"
4
5 / {
6 model = "Comtrend VR-3025un";
7 compatible = "comtrend,vr-3025un", "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 = <100>;
19
20 reset {
21 label = "reset";
22 gpios = <&gpio 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 = <&gpio 2 GPIO_ACTIVE_LOW>;
34 };
35
36 led@5 {
37 label = "green:internet";
38 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
39 };
40
41 led_power_green: led@22 {
42 label = "green:power";
43 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
44 };
45
46 led_power_red: led@24 {
47 label = "red:power";
48 gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
49 panic-indicator;
50 };
51
52 led@31 {
53 label = "red:internet";
54 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
55 };
56 };
57
58 bcm43222-sprom {
59 compatible = "brcm,ssb-sprom";
60
61 pci-bus = <0>;
62 pci-dev = <1>;
63
64 nvmem-cells = <&macaddr_cfe_6a0>;
65 nvmem-cell-names = "mac-address";
66 mac-address-increment = <1>;
67
68 brcm,sprom = "brcm/bcm43222-sprom.bin";
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 nvmem-cells = <&macaddr_cfe_6a0>;
86 nvmem-cell-names = "mac-address";
87 };
88
89 &ohci {
90 status = "okay";
91 };
92
93 &pci {
94 status = "okay";
95 };
96
97 &pflash {
98 status = "okay";
99
100 partitions {
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 cfe: partition@0 {
106 label = "CFE";
107 reg = <0x000000 0x010000>;
108 read-only;
109 };
110
111 partition@20000 {
112 compatible = "brcm,bcm963xx-imagetag";
113 label = "firmware";
114 reg = <0x010000 0x7e0000>;
115 };
116
117 partition@1fe0000 {
118 label = "nvram";
119 reg = <0x7f0000 0x010000>;
120 };
121 };
122 };
123
124 &pinctrl {
125 pinctrl-names = "default";
126 pinctrl-0 = <&pinctrl_ephy0_led &pinctrl_ephy1_led
127 &pinctrl_ephy2_led &pinctrl_ephy3_led>;
128 };
129
130 &switch0 {
131 ports {
132 port@0 {
133 reg = <0>;
134 label = "lan1";
135
136 phy-handle = <&phy1>;
137 phy-mode = "mii";
138 };
139
140 port@1 {
141 reg = <1>;
142 label = "lan2";
143
144 phy-handle = <&phy2>;
145 phy-mode = "mii";
146 };
147
148 port@2 {
149 reg = <2>;
150 label = "lan3";
151
152 phy-handle = <&phy3>;
153 phy-mode = "mii";
154 };
155
156 port@3 {
157 reg = <3>;
158 label = "iptv";
159
160 phy-handle = <&phy4>;
161 phy-mode = "mii";
162 };
163 };
164 };
165
166 &uart0 {
167 status = "okay";
168 };
169
170 &usbh {
171 status = "okay";
172 };
173
174 &cfe {
175 compatible = "nvmem-cells";
176 #address-cells = <1>;
177 #size-cells = <1>;
178
179 macaddr_cfe_6a0: macaddr@6a0 {
180 reg = <0x6a0 0x6>;
181 };
182 };