5df2f3c6ab69f918045514fe658c27bdb81fc6ea
[openwrt/staging/stintel.git] / target / linux / ramips / dts / mt7621_zyxel_wap6805.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "zyxel,wap6805", "mediatek,mt7621-soc";
10 model = "ZyXEL WAP6805";
11
12 aliases {
13 led-boot = &led_status_green;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_green;
16 led-upgrade = &led_status_green;
17 label-mac-device = &gmac0;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_status_red: status_red {
24 label = "red:status";
25 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
26 };
27
28 status_blink {
29 label = "blink:status";
30 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
31 };
32
33 led_status_green: status_green {
34 label = "green:status";
35 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
36 };
37 };
38
39 keys {
40 compatible = "gpio-keys";
41
42 wps {
43 label = "wps";
44 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_WPS_BUTTON>;
46 };
47
48 reset {
49 label = "reset";
50 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
52 };
53 };
54 };
55
56 &nand {
57 status = "okay";
58
59 partitions {
60 compatible = "fixed-partitions";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 partition@0 {
65 label = "Bootloader";
66 reg = <0x0 0x100000>;
67 read-only;
68 };
69
70 partition@100000 {
71 label = "MRD";
72 reg = <0x100000 0x100000>;
73 read-only;
74 };
75
76 factory: partition@200000 {
77 compatible = "nvmem-cells";
78 label = "Factory";
79 reg = <0x200000 0x100000>;
80 #address-cells = <1>;
81 #size-cells = <1>;
82 read-only;
83
84 eeprom_factory_0: eeprom@0 {
85 reg = <0x0 0x400>;
86 };
87
88 macaddr_factory_e000: macaddr@e000 {
89 reg = <0xe000 0x6>;
90 };
91 };
92
93 partition@300000 {
94 label = "Config";
95 reg = <0x300000 0x100000>;
96 };
97
98 partition@400000 {
99 label = "Kernel";
100 reg = <0x400000 0x2000000>;
101 };
102
103 partition@800000 {
104 label = "ubi";
105 reg = <0x800000 0x1c00000>;
106 };
107
108 partition@2400000 {
109 label = "Kernel2";
110 reg = <0x2400000 0x2000000>;
111 };
112
113 partition@4400000 {
114 label = "Private";
115 reg = <0x4400000 0x100000>;
116 };
117
118 partition@4500000 {
119 label = "Log";
120 reg = <0x4500000 0x1000000>;
121 };
122
123 partition@5500000 {
124 label = "App";
125 reg = <0x5500000 0x2b00000>;
126 };
127 };
128 };
129
130 &pcie {
131 status = "okay";
132 };
133
134 &pcie0 {
135 mt76@0,0 {
136 reg = <0x0000 0 0 0 0>;
137 nvmem-cells = <&eeprom_factory_0>;
138 nvmem-cell-names = "eeprom";
139 };
140 };
141
142 &gmac0 {
143 nvmem-cells = <&macaddr_factory_e000>;
144 nvmem-cell-names = "mac-address";
145 };
146
147 &gmac1 {
148 status = "okay";
149
150 fixed-link {
151 speed = <1000>;
152 full-duplex;
153 };
154 };
155
156 &switch0 {
157 ports {
158 port@0 {
159 status = "okay";
160 label = "lan4";
161 };
162 port@1 {
163 status = "okay";
164 label = "lan3";
165 };
166 port@2 {
167 status = "okay";
168 label = "lan2";
169 };
170 port@3 {
171 status = "okay";
172 label = "lan1";
173 };
174 };
175 };
176
177 &xhci {
178 status = "disabled";
179 };
180
181 &state_default {
182 gpio {
183 groups = "i2c", "uart3", "jtag", "wdt";
184 function = "gpio";
185 };
186 };