kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_iptime_a6ns-m.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 = "iptime,a6ns-m", "mediatek,mt7621-soc";
11         model = "ipTIME A6ns-M";
12
13         aliases {
14                 led-boot = &led_cpu;
15                 led-failsafe = &led_cpu;
16                 led-running = &led_cpu;
17                 led-upgrade = &led_cpu;
18                 label-mac-device = &gmac0;
19         };
20
21         chosen {
22                 bootargs = "console=ttyS0,57600";
23         };
24
25         leds {
26                 compatible = "gpio-leds";
27
28                 usb {
29                         label = "a6ns-m:blue:usb";
30                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
31                         trigger-sources = <&xhci_ehci_port1>;
32                         linux,default-trigger = "usbport";
33                 };
34
35                 wlan5g {
36                         label = "a6ns-m:blue:wlan5g";
37                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
38                         linux,default-trigger = "phy0radio";
39                 };
40
41                 wlan2g {
42                         label = "a6ns-m:blue:wlan2g";
43                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
44                         linux,default-trigger = "phy1radio";
45                 };
46
47                 led_cpu: cpu {
48                         label = "a6ns-m:blue:cpu";
49                         gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
50                 };
51         };
52
53         keys {
54                 compatible = "gpio-keys";
55
56                 wps {
57                         label = "wps";
58                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
59                         linux,code = <KEY_WPS_BUTTON>;
60                 };
61
62                 reset {
63                         label = "reset";
64                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
65                         linux,code = <KEY_RESTART>;
66                 };
67         };
68 };
69
70 &spi0 {
71         status = "okay";
72
73         flash@0 {
74                 compatible = "jedec,spi-nor";
75                 reg = <0>;
76                 spi-max-frequency = <80000000>;
77                 m25p,fast-read;
78
79                 partitions {
80                         compatible = "fixed-partitions";
81                         #address-cells = <1>;
82                         #size-cells = <1>;
83
84                         uboot: partition@0 {
85                                 label = "u-boot";
86                                 reg = <0x0 0x20000>;
87                                 read-only;
88                         };
89
90                         partition@20000 {
91                                 label = "config";
92                                 reg = <0x20000 0x10000>;
93                                 read-only;
94                         };
95
96                         factory: partition@30000 {
97                                 label = "factory";
98                                 reg = <0x30000 0x10000>;
99                                 read-only;
100                         };
101
102                         partition@40000 {
103                                 compatible = "denx,uimage";
104                                 label = "firmware";
105                                 reg = <0x40000 0xfc0000>;
106                         };
107                 };
108         };
109 };
110
111 &state_default {
112         gpio {
113                 groups = "i2c", "uart3", "jtag", "wdt";
114                 function = "gpio";
115         };
116 };
117
118 &gmac0 {
119         mtd-mac-address = <&uboot 0x1fc20>;
120 };
121
122 &switch0 {
123         ports {
124                 port@0 {
125                         status = "okay";
126                         label = "wan";
127                         mtd-mac-address = <&uboot 0x1fc40>;
128                 };
129
130                 port@1 {
131                         status = "okay";
132                         label = "lan1";
133                 };
134
135                 port@2 {
136                         status = "okay";
137                         label = "lan2";
138                 };
139
140                 port@3 {
141                         status = "okay";
142                         label = "lan3";
143                 };
144
145                 port@4 {
146                         status = "okay";
147                         label = "lan4";
148                 };
149         };
150 };
151
152 &pcie {
153         status = "okay";
154 };
155
156 &pcie0 {
157         wifi@0,0 {
158                 compatible = "mediatek,mt76";
159                 reg = <0x0000 0 0 0 0>;
160                 mediatek,mtd-eeprom = <&factory 0x0>;
161                 ieee80211-freq-limit = <5000000 6000000>;
162         };
163 };
164
165 &pcie1 {
166         wifi@0,0 {
167                 compatible = "mediatek,mt76";
168                 reg = <0x0000 0 0 0 0>;
169                 mediatek,mtd-eeprom = <&factory 0x8000>;
170                 ieee80211-freq-limit = <2400000 2500000>;
171         };
172 };