bmips: add experimental ethernet support
[openwrt/staging/jow.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 &pinctrl {
115 pinctrl_leds: leds {
116 function = "led";
117 pins = "gpio1", "gpio4", "gpio7",
118 "gpio8", "gpio11";
119 };
120 };
121
122 &switch0 {
123 ports {
124 port@0 {
125 reg = <0>;
126 label = "lan1";
127
128 phy-handle = <&phy1>;
129 };
130
131 port@1 {
132 reg = <1>;
133 label = "lan2";
134
135 phy-handle = <&phy2>;
136 };
137
138 port@2 {
139 reg = <2>;
140 label = "lan3";
141
142 phy-handle = <&phy3>;
143 };
144
145 port@3 {
146 reg = <3>;
147 label = "lan4";
148
149 phy-handle = <&phy4>;
150 };
151 };
152 };
153
154 &uart0 {
155 status = "okay";
156 };
157
158 &usbh {
159 status = "okay";
160 };