0596dc71d677d79a094b8498c4059d0544acc45f
[openwrt/staging/wigyori.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 label = "Factory";
78 reg = <0x200000 0x100000>;
79 read-only;
80 };
81
82 partition@300000 {
83 label = "Config";
84 reg = <0x300000 0x100000>;
85 };
86
87 partition@400000 {
88 label = "Kernel";
89 reg = <0x400000 0x2000000>;
90 };
91
92 partition@800000 {
93 label = "ubi";
94 reg = <0x800000 0x1c00000>;
95 };
96
97 partition@2400000 {
98 label = "Kernel2";
99 reg = <0x2400000 0x2000000>;
100 };
101
102 partition@4400000 {
103 label = "Private";
104 reg = <0x4400000 0x100000>;
105 };
106
107 partition@4500000 {
108 label = "Log";
109 reg = <0x4500000 0x1000000>;
110 };
111
112 partition@5500000 {
113 label = "App";
114 reg = <0x5500000 0x2b00000>;
115 };
116 };
117 };
118
119 &pcie {
120 status = "okay";
121 };
122
123 &pcie0 {
124 mt76@0,0 {
125 reg = <0x0000 0 0 0 0>;
126 mediatek,mtd-eeprom = <&factory 0x0>;
127 };
128 };
129
130 &gmac0 {
131 mtd-mac-address = <&factory 0xe000>;
132 };
133
134 &gmac1 {
135 status = "okay";
136
137 fixed-link {
138 speed = <1000>;
139 full-duplex;
140 };
141 };
142
143 &switch0 {
144 ports {
145 port@0 {
146 status = "okay";
147 label = "lan4";
148 };
149 port@1 {
150 status = "okay";
151 label = "lan3";
152 };
153 port@2 {
154 status = "okay";
155 label = "lan2";
156 };
157 port@3 {
158 status = "okay";
159 label = "lan1";
160 };
161 };
162 };
163
164 &xhci {
165 status = "disabled";
166 };
167
168 &state_default {
169 gpio {
170 groups = "i2c", "uart3", "jtag", "wdt";
171 function = "gpio";
172 };
173 };