bmips: add support for Arcadyan AR7516
[openwrt/staging/hauke.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>;
40 nvmem-cell-names = "mac-address";
41 mac-address-increment = <1>;
42
43 brcm,sprom = "brcm/bcm43227-sprom.bin";
44 };
45 };
46
47 &ehci {
48 status = "okay";
49 };
50
51 &ethernet {
52 status = "okay";
53
54 nvmem-cells = <&macaddr_cfe_6a0>;
55 nvmem-cell-names = "mac-address";
56 };
57
58 &hsspi {
59 status = "okay";
60
61 flash@0 {
62 compatible = "jedec,spi-nor";
63 spi-max-frequency = <16666667>;
64 spi-tx-bus-width = <2>;
65 spi-rx-bus-width = <2>;
66 reg = <0>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 cfe: partition@0 {
74 label = "cfe";
75 reg = <0x000000 0x010000>;
76 read-only;
77 };
78
79 partition@10000 {
80 compatible = "brcm,bcm963xx-imagetag";
81 label = "firmware";
82 reg = <0x010000 0x7e0000>;
83 };
84
85 partition@7f0000 {
86 label = "nvram";
87 reg = <0x7f0000 0x010000>;
88 };
89 };
90 };
91 };
92
93 &leds {
94 status = "okay";
95
96 pinctrl-names = "default";
97 pinctrl-0 = <&pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
98 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led
99 &pinctrl_leds>;
100
101 led_upgrade_green: led@1 {
102 reg = <1>;
103 label = "green:upgrade";
104 };
105
106 led@6 {
107 reg = <6>;
108 active-low;
109 label = "green:wan";
110 };
111
112 led@7 {
113 reg = <7>;
114 active-low;
115 label = "green:wifi";
116 };
117 };
118
119 &ohci {
120 status = "okay";
121 };
122
123 &pcie {
124 status = "okay";
125 };
126
127 &pinctrl {
128 pinctrl_leds: leds {
129 function = "led";
130 pins = "gpio1", "gpio6", "gpio7";
131 };
132 };
133
134 &switch0 {
135 ports {
136 port@0 {
137 reg = <0>;
138 label = "lan1";
139
140 phy-handle = <&phy1>;
141 phy-mode = "mii";
142 };
143
144 port@1 {
145 reg = <1>;
146 label = "lan2";
147
148 phy-handle = <&phy2>;
149 phy-mode = "mii";
150 };
151
152 port@2 {
153 reg = <2>;
154 label = "lan3";
155
156 phy-handle = <&phy3>;
157 phy-mode = "mii";
158 };
159
160 port@3 {
161 reg = <3>;
162 label = "wan";
163
164 phy-handle = <&phy4>;
165 phy-mode = "mii";
166 };
167 };
168 };
169
170 &uart0 {
171 status = "okay";
172 };
173
174 &usbh {
175 status = "okay";
176 };
177
178 &cfe {
179 compatible = "nvmem-cells";
180 #address-cells = <1>;
181 #size-cells = <1>;
182
183 macaddr_cfe_6a0: macaddr@6a0 {
184 reg = <0x6a0 0x6>;
185 };
186 };