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