755312974d665ec8b38eb94f9af05c38ce1220c7
[openwrt/openwrt.git] / target / linux / bmips / dts / bcm6328-arcadyan-ar7516.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "bcm6328.dtsi"
6
7 / {
8 model = "Arcadyan AR7516";
9 compatible = "arcadyan,ar7516", "brcm,bcm6328";
10
11 aliases {
12 led-failsafe = &led_upgrade_green;
13 led-upgrade = &led_upgrade_green;
14 };
15
16 keys {
17 compatible = "gpio-keys-polled";
18 poll-interval = <100>;
19
20 reset {
21 label = "reset";
22 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 debounce-interval = <60>;
25 };
26
27 wps {
28 label = "wps";
29 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
31 debounce-interval = <60>;
32 };
33 };
34
35 bcm43227-sprom {
36 compatible = "brcm,bcma-sprom";
37
38 pci-bus = <1>;
39 pci-dev = <0>;
40
41 nvmem-cells = <&macaddr_cfe_6a0 1>;
42 nvmem-cell-names = "mac-address";
43
44 brcm,sprom = "brcm/bcm43227-sprom.bin";
45 };
46 };
47
48 &ehci {
49 status = "okay";
50 };
51
52 &ethernet {
53 status = "okay";
54
55 nvmem-cells = <&macaddr_cfe_6a0 0>;
56 nvmem-cell-names = "mac-address";
57 };
58
59 &hsspi {
60 status = "okay";
61
62 flash@0 {
63 compatible = "jedec,spi-nor";
64 spi-max-frequency = <16666667>;
65 spi-tx-bus-width = <2>;
66 spi-rx-bus-width = <2>;
67 reg = <0>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "cfe";
76 reg = <0x000000 0x010000>;
77 read-only;
78
79 nvmem-layout {
80 compatible = "fixed-layout";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 macaddr_cfe_6a0: macaddr@6a0 {
85 compatible = "mac-base";
86 reg = <0x6a0 0x6>;
87 #nvmem-cell-cells = <1>;
88 };
89 };
90 };
91
92 partition@10000 {
93 compatible = "brcm,bcm963xx-imagetag";
94 label = "firmware";
95 reg = <0x010000 0x7e0000>;
96 };
97
98 partition@7f0000 {
99 label = "nvram";
100 reg = <0x7f0000 0x010000>;
101 };
102 };
103 };
104 };
105
106 &leds {
107 status = "okay";
108
109 pinctrl-names = "default";
110 pinctrl-0 = <&pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
111 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led
112 &pinctrl_leds>;
113
114 led_upgrade_green: led@1 {
115 reg = <1>;
116 label = "green:upgrade";
117 };
118
119 led@6 {
120 reg = <6>;
121 active-low;
122 function = LED_FUNCTION_WAN;
123 color = <LED_COLOR_ID_GREEN>;
124 };
125
126 led@7 {
127 reg = <7>;
128 active-low;
129 label = "green:wifi";
130 };
131 };
132
133 &ohci {
134 status = "okay";
135 };
136
137 &pcie {
138 status = "okay";
139 };
140
141 &pinctrl {
142 pinctrl_leds: leds {
143 function = "led";
144 pins = "gpio1", "gpio6", "gpio7";
145 };
146 };
147
148 &switch0 {
149 ports {
150 port@0 {
151 reg = <0>;
152 label = "lan1";
153
154 phy-handle = <&phy1>;
155 phy-mode = "mii";
156 };
157
158 port@1 {
159 reg = <1>;
160 label = "lan2";
161
162 phy-handle = <&phy2>;
163 phy-mode = "mii";
164 };
165
166 port@2 {
167 reg = <2>;
168 label = "lan3";
169
170 phy-handle = <&phy3>;
171 phy-mode = "mii";
172 };
173
174 port@3 {
175 reg = <3>;
176 label = "wan";
177
178 phy-handle = <&phy4>;
179 phy-mode = "mii";
180 };
181 };
182 };
183
184 &uart0 {
185 status = "okay";
186 };
187
188 &usbh {
189 status = "okay";
190 };