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