kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_gehua_ghl-r-001.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 = "gehua,ghl-r-001", "mediatek,mt7621-soc";
11         model = "GeHua GHL-R-001";
12
13         chosen {
14                 bootargs = "console=ttyS0,57600";
15         };
16
17         leds {
18                 compatible = "gpio-leds";
19
20                 internet {
21                         label = "ghl-r-001:blue:internet";
22                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
23                 };
24
25                 usb {
26                         label = "ghl-r-001:blue:usb";
27                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
28                         trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
29                         linux,default-trigger = "usbport";
30                 };
31         };
32
33         keys {
34                 compatible = "gpio-keys";
35
36                 reset {
37                         label = "reset";
38                         gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
39                         linux,code = <KEY_RESTART>;
40                 };
41         };
42 };
43
44 &uartlite3 {
45         status = "okay";
46 };
47
48 &spi0 {
49         status = "okay";
50
51         flash@0 {
52                 compatible = "jedec,spi-nor";
53                 reg = <0>;
54                 spi-max-frequency = <25000000>;
55                 broken-flash-reset;
56                 m25p,fast-read;
57
58                 partitions {
59                         compatible = "fixed-partitions";
60                         #address-cells = <1>;
61                         #size-cells = <1>;
62
63                         partition@0 {
64                                 label = "u-boot";
65                                 reg = <0x0 0x30000>;
66                                 read-only;
67                         };
68
69                         partition@30000 {
70                                 label = "u-boot-env";
71                                 reg = <0x30000 0x10000>;
72                                 read-only;
73                         };
74
75                         factory: partition@40000 {
76                                 label = "factory";
77                                 reg = <0x40000 0x10000>;
78                                 read-only;
79                         };
80
81                         partition@50000 {
82                                 compatible = "denx,uimage";
83                                 label = "firmware";
84                                 reg = <0x50000 0x1fb0000>;
85                         };
86                 };
87         };
88 };
89
90 &pcie {
91         status = "okay";
92 };
93
94 &pcie0 {
95         wifi@0,0 {
96                 reg = <0x0000 0 0 0 0>;
97                 mediatek,mtd-eeprom = <&factory 0x0000>;
98         };
99 };
100
101 &pcie1 {
102         wifi@0,0 {
103                 reg = <0x0000 0 0 0 0>;
104                 mediatek,mtd-eeprom = <&factory 0x8000>;
105                 ieee80211-freq-limit = <5000000 6000000>;
106
107                 led {
108                         led-sources = <2>;
109                         led-active-low;
110                 };
111         };
112 };
113
114 &gmac0 {
115         mtd-mac-address = <&factory 0xe000>;
116 };
117
118 &switch0 {
119         ports {
120                 port@0 {
121                         status = "okay";
122                         label = "lan1";
123                 };
124
125                 port@1 {
126                         status = "okay";
127                         label = "lan2";
128                 };
129
130                 port@2 {
131                         status = "okay";
132                         label = "lan3";
133                 };
134
135                 port@4 {
136                         status = "okay";
137                         label = "wan";
138                         mtd-mac-address = <&factory 0xe000>;
139                         mtd-mac-address-increment = <1>;
140                 };
141         };
142 };
143
144 &state_default {
145         gpio {
146                 groups = "jtag", "wdt";
147                 function = "gpio";
148         };
149 };