9217fd30989f6f8cc195511325668da05e170d13
[openwrt/openwrt.git] / target / linux / bcm63xx / dts / bcm6362-huawei-hg253s-v2.dts
1 #include "bcm6362.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5
6 / {
7 model = "Huawei HG253s v2";
8 compatible = "huawei,hg253s-v2", "brcm,bcm6362";
9
10 aliases {
11 led-boot = &led_phone_green;
12 led-failsafe = &led_phone_green;
13 led-upgrade = &led_phone_green;
14 };
15
16 chosen {
17 bootargs = "rootfstype=squashfs,ubifs noinitrd console=ttyS0,115200";
18 stdout-path = "serial0:115200n8";
19 };
20
21 keys {
22 compatible = "gpio-keys-polled";
23 #address-cells = <1>;
24 #size-cells = <0>;
25 poll-interval = <20>;
26
27 reset {
28 label = "reset";
29 gpios = <&pinctrl 24 1>;
30 linux,code = <KEY_RESTART>;
31 debounce-interval = <60>;
32 };
33
34 wlan {
35 label = "wlan";
36 gpios = <&pinctrl 25 1>;
37 linux,code = <KEY_WLAN>;
38 debounce-interval = <60>;
39 };
40
41 wps {
42 label = "wps";
43 gpios = <&pinctrl 26 1>;
44 linux,code = <KEY_WPS_BUTTON>;
45 debounce-interval = <60>;
46 };
47 };
48
49 leds {
50 compatible = "gpio-leds";
51
52 led_phone_green: led@28 {
53 label = "green:phone";
54 gpios = <&pinctrl 28 1>;
55 };
56
57 led@30 {
58 function = LED_FUNCTION_USB;
59 color = <LED_COLOR_ID_GREEN>;
60 gpios = <&pinctrl 30 1>;
61 };
62 };
63 };
64
65 &leds {
66 status = "okay";
67
68 pinctrl-names = "default";
69 pinctrl-0 = <&pinctrl_leds>;
70
71 led@3 {
72 reg = <3>;
73 active-low;
74 label = "green:internet";
75 };
76
77 led@5 {
78 reg = <5>;
79 active-low;
80 label = "green:wifi";
81 };
82 };
83
84 &lsspi {
85 switch@0 {
86 compatible = "brcm,bcm53125";
87 reg = <0>;
88 spi-max-frequency = <781000>;
89
90 lede,alias = "eth0";
91
92 ports {
93 #address-cells = <1>;
94 #size-cells = <0>;
95
96 lan@1 {
97 reg = <1>;
98 label = "lan4";
99 };
100
101 lan@2 {
102 reg = <2>;
103 label = "lan3";
104 };
105
106 lan@3 {
107 reg = <3>;
108 label = "lan2";
109 };
110
111 lan@4 {
112 reg = <4>;
113 label = "lan1";
114 };
115
116 cpu@8 {
117 reg = <8>;
118 label = "cpu";
119
120 fixed-link {
121 speed = <1000>;
122 full-duplex;
123 asym-pause;
124 pause;
125 };
126 };
127 };
128 };
129 };
130
131 &nflash {
132 status = "okay";
133
134 nandcs@0 {
135 compatible = "brcm,nandcs";
136 #size-cells = <1>;
137 #address-cells = <1>;
138 reg = <0>;
139 nand-ecc-step-size = <512>;
140 nand-ecc-strength = <15>;
141 nand-on-flash-bbt;
142 brcm,nand-oob-sector-size = <64>;
143
144 partitions {
145 compatible = "fixed-partitions";
146 #address-cells = <1>;
147 #size-cells = <1>;
148
149 partition@0 {
150 label = "cferom";
151 reg = <0x0000000 0x0020000>;
152 read-only;
153 };
154
155 partition@20000 {
156 compatible = "brcm,wfi";
157 label = "wfi";
158 reg = <0x0020000 0x7d80000>;
159 };
160
161 partition@7da0000 {
162 label = "nvram";
163 reg = <0x7da0000 0x160000>;
164 };
165 };
166 };
167 };
168
169 &pinctrl {
170 pinctrl_leds: leds {
171 function = "led";
172 pins = "gpio3", "gpio5";
173 };
174 };
175
176 &uart0 {
177 status = "okay";
178 };