tools/patchelf: update to 0.18.0
[openwrt/staging/dedeckeh.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 nvmem-cells = <&macaddr_factory_e000>;
132 nvmem-cell-names = "mac-address";
133 };
134
135 &gmac1 {
136 status = "okay";
137
138 fixed-link {
139 speed = <1000>;
140 full-duplex;
141 };
142 };
143
144 &switch0 {
145 ports {
146 port@0 {
147 status = "okay";
148 label = "lan4";
149 };
150 port@1 {
151 status = "okay";
152 label = "lan3";
153 };
154 port@2 {
155 status = "okay";
156 label = "lan2";
157 };
158 port@3 {
159 status = "okay";
160 label = "lan1";
161 };
162 };
163 };
164
165 &xhci {
166 status = "disabled";
167 };
168
169 &state_default {
170 gpio {
171 groups = "i2c", "uart3", "jtag", "wdt";
172 function = "gpio";
173 };
174 };
175
176 &factory {
177 compatible = "nvmem-cells";
178 #address-cells = <1>;
179 #size-cells = <1>;
180
181 macaddr_factory_e000: macaddr@e000 {
182 reg = <0xe000 0x6>;
183 };
184 };