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