ramips: move redundant console setup to mt7621 SoC DTSI
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_edimax_rx21s.dtsi
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 aliases {
11 label-mac-device = &gmac0;
12 };
13
14 keys {
15 compatible = "gpio-keys";
16
17 reset {
18 label = "reset";
19 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
21 };
22
23 wps {
24 label = "wps";
25 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28 };
29 };
30
31 &spi0 {
32 status = "okay";
33
34 flash@0 {
35 compatible = "jedec,spi-nor";
36 reg = <0>;
37 spi-max-frequency = <40000000>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "u-boot";
46 reg = <0x0 0x30000>;
47 read-only;
48 };
49
50 partition@30000 {
51 label = "u-boot-env";
52 reg = <0x30000 0x10000>;
53 read-only;
54 };
55
56 factory: partition@40000 {
57 label = "factory";
58 reg = <0x40000 0x10000>;
59 read-only;
60 };
61
62 partition@50000 {
63 compatible = "denx,uimage";
64 label = "firmware";
65 reg = <0x50000 0xfb0000>;
66 };
67 };
68 };
69 };
70
71 &pcie {
72 status = "okay";
73 };
74
75 &pcie0 {
76 wifi0: wifi@0,0 {
77 compatible = "mediatek,mt76";
78 reg = <0x0000 0 0 0 0>;
79 mediatek,mtd-eeprom = <&factory 0x0000>;
80 ieee80211-freq-limit = <2400000 2500000>;
81 };
82 };
83
84 &pcie1 {
85 wifi1: wifi@0,0 {
86 compatible = "mediatek,mt76";
87 reg = <0x0000 0 0 0 0>;
88 mediatek,mtd-eeprom = <&factory 0x8000>;
89 ieee80211-freq-limit = <5000000 6000000>;
90 };
91 };
92
93 &gmac0 {
94 mtd-mac-address = <&factory 0x4>;
95 };
96
97 &switch0 {
98 ports {
99 port@0 {
100 status = "okay";
101 label = "wan";
102 };
103
104 port@1 {
105 status = "okay";
106 label = "lan4";
107 };
108
109 port@2 {
110 status = "okay";
111 label = "lan3";
112 };
113
114 port@3 {
115 status = "okay";
116 label = "lan2";
117 };
118
119 port@4 {
120 status = "okay";
121 label = "lan1";
122 };
123 };
124 };
125
126 &state_default {
127 gpio {
128 groups = "uart3", "uart2", "jtag", "wdt";
129 function = "gpio";
130 };
131 };
132
133 &xhci {
134 status = "disabled";
135 };