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