bmips: add experimental ethernet support
[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
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
58 &ehci {
59 status = "okay";
60 };
61
62 &ethernet {
63 status = "okay";
64
65 mtd-mac-address = <&cfe 0x6a0>;
66 };
67
68 &ohci {
69 status = "okay";
70 };
71
72 &pflash {
73 status = "okay";
74
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 cfe: partition@0 {
81 label = "CFE";
82 reg = <0x0000000 0x0020000>;
83 read-only;
84 };
85
86 partition@20000 {
87 compatible = "brcm,bcm963xx-imagetag";
88 label = "firmware";
89 reg = <0x0020000 0x1fc0000>;
90 };
91
92 partition@1fe0000 {
93 label = "nvram";
94 reg = <0x1fe0000 0x020000>;
95 };
96 };
97 };
98
99 &pinctrl {
100 pinctrl-names = "default";
101 pinctrl-0 = <&pinctrl_pci &pinctrl_ephy0_led &pinctrl_ephy1_led
102 &pinctrl_ephy2_led &pinctrl_ephy3_led>;
103 };
104
105 &switch0 {
106 ports {
107 port@0 {
108 reg = <0>;
109 label = "lan1";
110
111 phy-handle = <&phy1>;
112 };
113
114 port@1 {
115 reg = <1>;
116 label = "lan2";
117
118 phy-handle = <&phy2>;
119 };
120
121 port@2 {
122 reg = <2>;
123 label = "lan3";
124
125 phy-handle = <&phy3>;
126 };
127
128 port@3 {
129 reg = <3>;
130 label = "lan4";
131
132 phy-handle = <&phy4>;
133 };
134 };
135 };
136
137 &uart0 {
138 status = "okay";
139 };
140
141 &usbh {
142 status = "okay";
143 };