kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_d-team_pbr-m1.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 = "d-team,pbr-m1", "mediatek,mt7621-soc";
10         model = "PBR-M1";
11
12         aliases {
13                 led-boot = &led_sys;
14                 led-failsafe = &led_sys;
15                 led-running = &led_sys;
16                 led-upgrade = &led_sys;
17         };
18
19         chosen {
20                 bootargs = "console=ttyS0,115200";
21         };
22
23         palmbus: palmbus@1E000000 {
24                 i2c: i2c@900 {
25                         status = "okay";
26
27                         pcf8563: rtc@51 {
28                                 status = "okay";
29                                 compatible = "nxp,pcf8563";
30                                 reg = <0x51>;
31                         };
32                 };
33         };
34
35         leds {
36                 compatible = "gpio-leds";
37
38                 power {
39                         label = "pbr-m1:blue:power";
40                         gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
41                         default-state = "on";
42                 };
43
44                 led_sys: sys {
45                         label = "pbr-m1:blue:sys";
46                         gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
47                 };
48
49                 internet {
50                         label = "pbr-m1:blue:internet";
51                         gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
52                 };
53
54                 wlan2g {
55                         label = "pbr-m1:blue:wlan2g";
56                         gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
57                 };
58
59                 wlan5g {
60                         label = "pbr-m1:blue:wlan5g";
61                         gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
62                 };
63         };
64
65         keys {
66                 compatible = "gpio-keys";
67
68                 reset {
69                         label = "reset";
70                         gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
71                         linux,code = <KEY_RESTART>;
72                 };
73         };
74
75         gpio_export {
76                 compatible = "gpio-export";
77                 #size-cells = <0>;
78
79                 power_usb2 {
80                         gpio-export,name = "power_usb2";
81                         gpio-export,output = <1>;
82                         gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
83                 };
84
85                 power_usb3 {
86                         gpio-export,name = "power_usb3";
87                         gpio-export,output = <1>;
88                         gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
89                 };
90
91                 power_sata {
92                         gpio-export,name = "power_sata";
93                         gpio-export,output = <1>;
94                         gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
95                 };
96         };
97
98         beeper: beeper {
99                 compatible = "gpio-beeper";
100                 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
101         };
102 };
103
104 &sdhci {
105         status = "okay";
106 };
107
108 &spi0 {
109         status = "okay";
110
111         m25p80@0 {
112                 compatible = "jedec,spi-nor";
113                 reg = <0>;
114                 spi-max-frequency = <10000000>;
115                 broken-flash-reset;
116
117                 partitions {
118                         compatible = "fixed-partitions";
119                         #address-cells = <1>;
120                         #size-cells = <1>;
121
122                         partition@0 {
123                                 label = "u-boot";
124                                 reg = <0x0 0x30000>;
125                                 read-only;
126                         };
127
128                         partition@30000 {
129                                 label = "u-boot-env";
130                                 reg = <0x30000 0x10000>;
131                                 read-only;
132                         };
133
134                         factory: partition@40000 {
135                                 label = "factory";
136                                 reg = <0x40000 0x10000>;
137                                 read-only;
138                         };
139
140                         partition@50000 {
141                                 compatible = "denx,uimage";
142                                 label = "firmware";
143                                 reg = <0x50000 0xfb0000>;
144                         };
145                 };
146         };
147 };
148
149 &pcie {
150         status = "okay";
151 };
152
153 &pcie0 {
154         mt76@0,0 {
155                 reg = <0x0000 0 0 0 0>;
156                 mediatek,mtd-eeprom = <&factory 0x8000>;
157                 ieee80211-freq-limit = <5000000 6000000>;
158         };
159 };
160
161 &pcie1 {
162         mt76@0,0 {
163                 reg = <0x0000 0 0 0 0>;
164                 mediatek,mtd-eeprom = <&factory 0x0000>;
165         };
166 };
167
168 &gmac0 {
169         mtd-mac-address = <&factory 0xe000>;
170 };
171
172 &switch0 {
173         ports {
174                 port@0 {
175                         status = "okay";
176                         label = "lan1";
177                 };
178
179                 port@1 {
180                         status = "okay";
181                         label = "lan2";
182                 };
183
184                 port@2 {
185                         status = "okay";
186                         label = "lan3";
187                 };
188
189                 port@3 {
190                         status = "okay";
191                         label = "lan4";
192                 };
193
194                 port@4 {
195                         status = "okay";
196                         label = "wan";
197                         mtd-mac-address = <&factory 0xe006>;
198                 };
199         };
200 };
201
202 &state_default {
203         gpio {
204                 groups = "wdt", "rgmii2", "jtag";
205                 function = "gpio";
206         };
207 };