ramips: fix reboot for remaining 32 MB boards
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_zyxel_keenetic-extra-ii.dts
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "zyxel,keenetic-extra-ii", "mediatek,mt7628an-soc";
8 model = "ZyXEL Keenetic Extra II";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,57600n8";
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
28 };
29
30 wps {
31 label = "wps";
32 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
34 };
35
36 fn {
37 label = "fn";
38 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
39 linux,code = <BTN_0>;
40 };
41 };
42
43 leds {
44 compatible = "gpio-leds";
45
46 led_power: power {
47 label = "green:power";
48 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
49 default-state = "keep";
50 };
51
52 internet {
53 label = "green:internet";
54 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
55 };
56
57 wifi {
58 label = "green:wifi";
59 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
60 };
61
62 usb {
63 label = "green:usb";
64 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
65 trigger-sources = <&ohci_port1>, <&ehci_port1>;
66 linux,default-trigger = "usbport";
67 };
68 };
69
70 gpio_export {
71 compatible = "gpio-export";
72 #size-cells = <0>;
73
74 usbpower {
75 gpio-export,name = "usbpower";
76 gpio-export,output = <1>;
77 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
78 };
79 };
80 };
81
82 &spi0 {
83 status = "okay";
84
85 flash@0 {
86 compatible = "jedec,spi-nor";
87 reg = <0>;
88 spi-max-frequency = <10000000>;
89 broken-flash-reset;
90
91 partitions {
92 compatible = "fixed-partitions";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 partition@0 {
97 label = "u-boot";
98 reg = <0x0 0x30000>;
99 read-only;
100 };
101
102 partition@30000 {
103 label = "u-config";
104 reg = <0x30000 0x10000>;
105 read-only;
106 };
107
108 factory: partition@40000 {
109 label = "factory";
110 reg = <0x40000 0x10000>;
111 read-only;
112 };
113
114 partition@50000 {
115 compatible = "denx,uimage";
116 label = "firmware";
117 reg = <0x50000 0xe90000>;
118 };
119
120 partition@ee0000 {
121 label = "config_1";
122 reg = <0xee0000 0x10000>;
123 read-only;
124 };
125
126 partition@ef0000 {
127 label = "storage";
128 reg = <0xef0000 0x100000>;
129 read-only;
130 };
131
132 partition@ff0000 {
133 label = "dump";
134 reg = <0xff0000 0x10000>;
135 read-only;
136 };
137
138 partition@1000000 {
139 label = "u-state";
140 reg = <0x1000000 0x30000>;
141 read-only;
142 };
143
144 partition@1030000 {
145 label = "u-config_res";
146 reg = <0x1030000 0x10000>;
147 read-only;
148 };
149
150 partition@1040000 {
151 label = "rf-eeprom_res";
152 reg = <0x1040000 0x10000>;
153 read-only;
154 };
155
156 partition@1050000 {
157 label = "firmware_2";
158 reg = <0x1050000 0xe90000>;
159 read-only;
160 };
161
162 partition@1ee0000 {
163 label = "config_2";
164 reg = <0x1ee0000 0x10000>;
165 read-only;
166 };
167 };
168 };
169 };
170
171 &ethernet {
172 nvmem-cells = <&macaddr_factory_4>;
173 nvmem-cell-names = "mac-address";
174 };
175
176 &esw {
177 mediatek,portmap = <0x3e>;
178 };
179
180 &wmac {
181 status = "okay";
182
183 mediatek,mtd-eeprom = <&factory 0x0>;
184 };
185
186 &pcie {
187 status = "okay";
188 };
189
190 &pcie0 {
191 mt76@0,0 {
192 reg = <0x0000 0 0 0 0>;
193 mediatek,mtd-eeprom = <&factory 0x8000>;
194 ieee80211-freq-limit = <5000000 6000000>;
195 };
196 };
197
198 &state_default {
199 gpio {
200 groups = "gpio", "i2s", "refclk", "spi cs1", "uart1", "wled_an";
201 function = "gpio";
202 };
203 };
204
205 &factory {
206 compatible = "nvmem-cells";
207 #address-cells = <1>;
208 #size-cells = <1>;
209
210 macaddr_factory_4: macaddr@4 {
211 reg = <0x4 0x6>;
212 };
213 };