bmips: add experimental PCI/PCIe support
[openwrt/openwrt.git] / target / linux / bmips / dts / bcm6328-comtrend-ar-5387un.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6328.dtsi"
4
5 / {
6 model = "Comtrend AR-5387un";
7 compatible = "comtrend,ar-5387un", "brcm,bcm6328";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_green;
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 23 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 debounce-interval = <60>;
25 };
26 };
27 };
28
29 &ehci {
30 status = "okay";
31 };
32
33 &ethernet {
34 status = "okay";
35
36 mtd-mac-address = <&cfe 0x6a0>;
37 };
38
39 &hsspi {
40 status = "okay";
41
42 flash@0 {
43 compatible = "jedec,spi-nor";
44 spi-max-frequency = <16666667>;
45 spi-tx-bus-width = <2>;
46 spi-rx-bus-width = <2>;
47 reg = <0>;
48
49 #address-cells = <1>;
50 #size-cells = <1>;
51
52 partitions {
53 compatible = "fixed-partitions";
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 cfe: partition@0 {
58 reg = <0x000000 0x010000>;
59 label = "cfe";
60 read-only;
61 };
62
63 partition@10000 {
64 compatible = "brcm,bcm963xx-imagetag";
65 reg = <0x010000 0xfe0000>;
66 label = "firmware";
67 };
68
69 partition@ff0000 {
70 reg = <0xff0000 0x010000>;
71 label = "nvram";
72 };
73 };
74 };
75 };
76
77 &leds {
78 status = "okay";
79
80 pinctrl-names = "default";
81 pinctrl-0 = <&pinctrl_leds>;
82
83 led@1 {
84 reg = <1>;
85 label = "red:internet";
86 };
87
88 led@4 {
89 reg = <4>;
90 label = "red:power";
91 };
92
93 led@7 {
94 reg = <7>;
95 label = "green:internet";
96 };
97
98 led_power_green: led@8 {
99 reg = <8>;
100 label = "green:power";
101 };
102
103 led@11 {
104 reg = <11>;
105 active-low;
106 label = "green:dsl";
107 };
108 };
109
110 &ohci {
111 status = "okay";
112 };
113
114 &pcie {
115 status = "okay";
116 };
117
118 &pinctrl {
119 pinctrl_leds: leds {
120 function = "led";
121 pins = "gpio1", "gpio4", "gpio7",
122 "gpio8", "gpio11";
123 };
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 };