ramips: move redundant console setup to mt7621 SoC DTSI
[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 leds {
22 compatible = "gpio-leds";
23
24 led_status_red: status_red {
25 label = "wap6805:red:status";
26 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
27 };
28
29 status_blink {
30 label = "wap6805:blink:status";
31 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
32 };
33
34 led_status_green: status_green {
35 label = "wap6805:green:status";
36 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
37 };
38 };
39
40 keys {
41 compatible = "gpio-keys";
42
43 wps {
44 label = "wps";
45 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_WPS_BUTTON>;
47 };
48
49 reset {
50 label = "reset";
51 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
53 };
54 };
55 };
56
57 &nand {
58 status = "okay";
59
60 partitions {
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 partition@0 {
66 label = "Bootloader";
67 reg = <0x0 0x100000>;
68 read-only;
69 };
70
71 partition@100000 {
72 label = "MRD";
73 reg = <0x100000 0x100000>;
74 read-only;
75 };
76
77 factory: partition@200000 {
78 label = "Factory";
79 reg = <0x200000 0x100000>;
80 read-only;
81 };
82
83 partition@300000 {
84 label = "Config";
85 reg = <0x300000 0x100000>;
86 };
87
88 partition@400000 {
89 label = "Kernel";
90 reg = <0x400000 0x2000000>;
91 };
92
93 partition@800000 {
94 label = "ubi";
95 reg = <0x800000 0x1c00000>;
96 };
97
98 partition@2400000 {
99 label = "Kernel2";
100 reg = <0x2400000 0x2000000>;
101 };
102
103 partition@4400000 {
104 label = "Private";
105 reg = <0x4400000 0x100000>;
106 };
107
108 partition@4500000 {
109 label = "Log";
110 reg = <0x4500000 0x1000000>;
111 };
112
113 partition@5500000 {
114 label = "App";
115 reg = <0x5500000 0x2b00000>;
116 };
117 };
118 };
119
120 &pcie {
121 status = "okay";
122 };
123
124 &pcie0 {
125 mt76@0,0 {
126 reg = <0x0000 0 0 0 0>;
127 mediatek,mtd-eeprom = <&factory 0x0>;
128 };
129 };
130
131 &gmac0 {
132 mtd-mac-address = <&factory 0xe000>;
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 };