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