kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_hiwifi_hc5962.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "hiwifi,hc5962", "mediatek,mt7621-soc";
10         model = "HiWiFi HC5962";
11
12         aliases {
13                 led-boot = &led_system;
14                 led-failsafe = &led_system;
15                 led-running = &led_status;
16                 led-upgrade = &led_status;
17         };
18
19         chosen {
20                 bootargs = "console=ttyS0,115200";
21         };
22
23         leds {
24                 compatible = "gpio-leds";
25
26                 led_status: status {
27                         label = "hc5962:white:status";
28                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
29                 };
30
31                 led_system: system {
32                         label = "hc5962:red:system";
33                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
34                         panic-indicator;
35                 };
36         };
37
38         keys {
39                 compatible = "gpio-keys";
40
41                 reset {
42                         label = "reset";
43                         gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
44                         linux,code = <KEY_RESTART>;
45                 };
46         };
47 };
48
49 &nand {
50         status = "okay";
51
52         partitions {
53                 compatible = "fixed-partitions";
54                 #address-cells = <1>;
55                 #size-cells = <1>;
56
57                 partition@0 {
58                         label = "u-boot";
59                         reg = <0x0 0x80000>;
60                         read-only;
61                 };
62
63                 partition@80000 {
64                         label = "debug";
65                         reg = <0x80000 0x80000>;
66                         read-only;
67                 };
68
69                 factory: partition@100000 {
70                         label = "factory";
71                         reg = <0x100000 0x40000>;
72                         read-only;
73                 };
74
75                 partition@140000 {
76                         label = "kernel";
77                         reg = <0x140000 0x200000>;
78                 };
79
80                 partition@340000 {
81                         label = "ubi";
82                         reg = <0x340000 0x1E00000>;
83                 };
84
85                 partition@2140000 {
86                         label = "hw_panic";
87                         reg = <0x2140000 0x80000>;
88                         read-only;
89                 };
90
91                 partition@21c0000 {
92                         label = "bdinfo";
93                         reg = <0x21c0000 0x80000>;
94                         read-only;
95                 };
96
97                 partition@2240000 {
98                         label = "backup";
99                         reg = <0x2240000 0x80000>;
100                         read-only;
101                 };
102
103                 partition@22c0000 {
104                         label = "overly";
105                         reg = <0x22c0000 0x1000000>;
106                 };
107
108                 partition@32c0000 {
109                         label = "firmware_backup";
110                         reg = <0x32c0000 0x2000000>;
111                 };
112
113                 partition@52c0000 {
114                         label = "oem";
115                         reg = <0x52c0000 0x200000>;
116                 };
117
118                 partition@54c0000 {
119                         label = "opt";
120                         reg = <0x54c0000 0x2ac0000>;
121                 };
122         };
123 };
124
125 &pcie {
126         status = "okay";
127 };
128
129 &pcie0 {
130         mt76@0,0 {
131                 reg = <0x0000 0 0 0 0>;
132                 mediatek,mtd-eeprom = <&factory 0x0000>;
133                 ieee80211-freq-limit = <2400000 2500000>;
134         };
135 };
136
137 &pcie1 {
138         mt76@0,0 {
139                 reg = <0x0000 0 0 0 0>;
140                 mediatek,mtd-eeprom = <&factory 0x8000>;
141                 ieee80211-freq-limit = <5000000 6000000>;
142         };
143 };
144
145 &switch0 {
146         ports {
147                 port@1 {
148                         status = "okay";
149                         label = "lan1";
150                 };
151
152                 port@2 {
153                         status = "okay";
154                         label = "lan2";
155                 };
156
157                 port@3 {
158                         status = "okay";
159                         label = "lan3";
160                 };
161
162                 port@4 {
163                         status = "okay";
164                         label = "wan";
165                 };
166         };
167 };
168
169 &state_default {
170         gpio {
171                 groups = "uart3", "jtag";
172                 function = "gpio";
173         };
174 };