bmips: dts: move leds dt-bindings include to SoCs
[openwrt/openwrt.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 function = LED_FUNCTION_USB;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
53 };
54 };
55 };
56
57 &ehci {
58 status = "okay";
59 };
60
61 &ethernet {
62 status = "okay";
63
64 nvmem-cells = <&macaddr_cferom_6a0>;
65 nvmem-cell-names = "mac-address";
66 };
67
68 &leds {
69 status = "okay";
70
71 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_leds>;
73
74 led@3 {
75 reg = <3>;
76 active-low;
77 label = "green:internet";
78 };
79
80 led@5 {
81 reg = <5>;
82 active-low;
83 label = "green:wifi";
84 };
85 };
86
87 &lsspi {
88 status = "okay";
89
90 switch@0 {
91 compatible = "brcm,bcm53125";
92 reg = <0>;
93 spi-max-frequency = <781000>;
94
95 dsa,member = <1 0>;
96
97 ports {
98 #address-cells = <1>;
99 #size-cells = <0>;
100
101 port@1 {
102 reg = <1>;
103 label = "lan4";
104 };
105
106 port@2 {
107 reg = <2>;
108 label = "lan3";
109 };
110
111 port@3 {
112 reg = <3>;
113 label = "lan2";
114 };
115
116 port@4 {
117 reg = <4>;
118 label = "lan1";
119 };
120
121 port@8 {
122 reg = <8>;
123
124 phy-mode = "rgmii";
125 ethernet = <&switch0port4>;
126
127 fixed-link {
128 speed = <1000>;
129 full-duplex;
130 asym-pause;
131 pause;
132 };
133 };
134 };
135 };
136 };
137
138 &mdio_ext {
139 phy24: ethernet-phy@18 {
140 compatible = "ethernet-phy-ieee802.3-c22";
141 reg = <24>;
142 };
143 };
144
145 &nflash {
146 status = "okay";
147
148 nandcs@0 {
149 compatible = "brcm,nandcs";
150 reg = <0>;
151 nand-ecc-step-size = <512>;
152 nand-ecc-strength = <15>;
153 nand-on-flash-bbt;
154 brcm,nand-oob-sector-size = <64>;
155
156 #address-cells = <1>;
157 #size-cells = <1>;
158
159 partitions {
160 compatible = "fixed-partitions";
161 #address-cells = <1>;
162 #size-cells = <1>;
163
164 partition@0 {
165 label = "cferom";
166 reg = <0x0000000 0x0020000>;
167 read-only;
168
169 nvmem-layout {
170 compatible = "fixed-layout";
171 #address-cells = <1>;
172 #size-cells = <1>;
173
174 macaddr_cferom_6a0: macaddr@6a0 {
175 reg = <0x6a0 0x6>;
176 };
177 };
178 };
179
180 partition@20000 {
181 compatible = "brcm,wfi";
182 label = "wfi";
183 reg = <0x0020000 0x7d80000>;
184 };
185
186 partition@7da0000 {
187 label = "nvram";
188 reg = <0x7da0000 0x160000>;
189 };
190 };
191 };
192 };
193
194 &ohci {
195 status = "okay";
196 };
197
198 &pinctrl {
199 pinctrl_leds: leds {
200 function = "led";
201 pins = "gpio3", "gpio5";
202 };
203 };
204
205 &switch0 {
206 dsa,member = <0 0>;
207
208 ports {
209 switch0port4: port@4 {
210 reg = <4>;
211 label = "extsw";
212
213 phy-mode = "rgmii";
214
215 fixed-link {
216 speed = <1000>;
217 full-duplex;
218 };
219 };
220
221 port@5 {
222 reg = <5>;
223 label = "wan";
224
225 phy-handle = <&phy24>;
226 phy-mode = "rgmii-txid";
227 };
228 };
229 };
230
231 &uart0 {
232 status = "okay";
233 };
234
235 &usbh {
236 status = "okay";
237 };