bmips: remove mac-address-increment
[openwrt/staging/jow.git] / target / linux / bmips / dts / bcm6362-huawei-hg253s-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6362.dtsi"
4
5 / {
6 model = "Huawei HG253s v2";
7 compatible = "huawei,hg253s-v2", "brcm,bcm6362";
8
9 aliases {
10 led-boot = &led_phone_green;
11 led-failsafe = &led_phone_green;
12 led-upgrade = &led_phone_green;
13 };
14
15 keys {
16 compatible = "gpio-keys-polled";
17 poll-interval = <100>;
18
19 reset {
20 label = "reset";
21 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 debounce-interval = <60>;
24 };
25
26 wlan {
27 label = "wlan";
28 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WLAN>;
30 debounce-interval = <60>;
31 };
32
33 wps {
34 label = "wps";
35 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
37 debounce-interval = <60>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 led_phone_green: led@28 {
45 label = "green:phone";
46 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
47 };
48
49 led@30 {
50 label = "green:usb";
51 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
52 };
53 };
54 };
55
56 &ehci {
57 status = "okay";
58 };
59
60 &ethernet {
61 status = "okay";
62
63 nvmem-cells = <&macaddr_cferom_6a0>;
64 nvmem-cell-names = "mac-address";
65 };
66
67 &leds {
68 status = "okay";
69
70 pinctrl-names = "default";
71 pinctrl-0 = <&pinctrl_leds>;
72
73 led@3 {
74 reg = <3>;
75 active-low;
76 label = "green:internet";
77 };
78
79 led@5 {
80 reg = <5>;
81 active-low;
82 label = "green:wifi";
83 };
84 };
85
86 &lsspi {
87 status = "okay";
88
89 switch@0 {
90 compatible = "brcm,bcm53125";
91 reg = <0>;
92 spi-max-frequency = <781000>;
93
94 dsa,member = <1 0>;
95
96 ports {
97 #address-cells = <1>;
98 #size-cells = <0>;
99
100 port@1 {
101 reg = <1>;
102 label = "lan4";
103 };
104
105 port@2 {
106 reg = <2>;
107 label = "lan3";
108 };
109
110 port@3 {
111 reg = <3>;
112 label = "lan2";
113 };
114
115 port@4 {
116 reg = <4>;
117 label = "lan1";
118 };
119
120 port@8 {
121 reg = <8>;
122
123 phy-mode = "rgmii";
124 ethernet = <&switch0port4>;
125
126 fixed-link {
127 speed = <1000>;
128 full-duplex;
129 asym-pause;
130 pause;
131 };
132 };
133 };
134 };
135 };
136
137 &mdio_ext {
138 phy24: ethernet-phy@18 {
139 compatible = "ethernet-phy-ieee802.3-c22";
140 reg = <24>;
141 };
142 };
143
144 &nflash {
145 status = "okay";
146
147 nandcs@0 {
148 compatible = "brcm,nandcs";
149 reg = <0>;
150 nand-ecc-step-size = <512>;
151 nand-ecc-strength = <15>;
152 nand-on-flash-bbt;
153 brcm,nand-oob-sector-size = <64>;
154
155 #address-cells = <1>;
156 #size-cells = <1>;
157
158 partitions {
159 compatible = "fixed-partitions";
160 #address-cells = <1>;
161 #size-cells = <1>;
162
163 cferom: partition@0 {
164 label = "cferom";
165 reg = <0x0000000 0x0020000>;
166 read-only;
167
168 nvmem-layout {
169 compatible = "fixed-layout";
170 #address-cells = <1>;
171 #size-cells = <1>;
172
173 macaddr_cferom_6a0: macaddr@6a0 {
174 reg = <0x6a0 0x6>;
175 };
176 };
177 };
178
179 partition@20000 {
180 compatible = "brcm,wfi";
181 label = "wfi";
182 reg = <0x0020000 0x7d80000>;
183 };
184
185 partition@7da0000 {
186 label = "nvram";
187 reg = <0x7da0000 0x160000>;
188 };
189 };
190 };
191 };
192
193 &ohci {
194 status = "okay";
195 };
196
197 &pinctrl {
198 pinctrl_leds: leds {
199 function = "led";
200 pins = "gpio3", "gpio5";
201 };
202 };
203
204 &switch0 {
205 dsa,member = <0 0>;
206
207 ports {
208 switch0port4: port@4 {
209 reg = <4>;
210 label = "extsw";
211
212 phy-mode = "rgmii";
213
214 fixed-link {
215 speed = <1000>;
216 full-duplex;
217 };
218 };
219
220 port@5 {
221 reg = <5>;
222 label = "wan";
223
224 phy-handle = <&phy24>;
225 phy-mode = "rgmii-txid";
226 };
227 };
228 };
229
230 &uart0 {
231 status = "okay";
232 };
233
234 &usbh {
235 status = "okay";
236 };