ramips: move redundant console setup to mt7621 SoC DTSI
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_afoundry_ew1200.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 = "afoundry,ew1200", "mediatek,mt7621-soc";
10 model = "EW1200";
11
12 aliases {
13 led-boot = &led_run;
14 led-failsafe = &led_run;
15 led-running = &led_run;
16 led-upgrade = &led_run;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 reset {
23 label = "reset";
24 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 led_run: run {
33 label = "ew1200:green:run";
34 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
35 };
36
37 usb {
38 label = "ew1200:green:usb";
39 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
40 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
41 linux,default-trigger = "usbport";
42 };
43 };
44 };
45
46 &sdhci {
47 status = "okay";
48 };
49
50 &spi0 {
51 status = "okay";
52
53 flash@0 {
54 compatible = "jedec,spi-nor";
55 reg = <0>;
56 spi-max-frequency = <10000000>;
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 0xfb0000>;
85 };
86 };
87 };
88 };
89
90 &pcie {
91 status = "okay";
92 };
93
94 &pcie0 {
95 mt76@0,0 {
96 reg = <0x0000 0 0 0 0>;
97 mediatek,mtd-eeprom = <&factory 0x8000>;
98 ieee80211-freq-limit = <5000000 6000000>;
99 };
100 };
101
102 &pcie1 {
103 mt76@0,0 {
104 reg = <0x0000 0 0 0 0>;
105 mediatek,mtd-eeprom = <&factory 0x0000>;
106 ieee80211-freq-limit = <2400000 2500000>;
107 };
108 };
109
110 &gmac0 {
111 mtd-mac-address = <&factory 0xe000>;
112 };
113
114 &switch0 {
115 ports {
116 port@0 {
117 status = "okay";
118 label = "lan1";
119 };
120
121 port@1 {
122 status = "okay";
123 label = "lan2";
124 };
125
126 port@2 {
127 status = "okay";
128 label = "lan3";
129 };
130
131 port@3 {
132 status = "okay";
133 label = "lan4";
134 };
135
136 port@4 {
137 status = "okay";
138 label = "wan";
139 mtd-mac-address = <&factory 0xe000>;
140 mtd-mac-address-increment = <1>;
141 };
142 };
143 };
144
145 &state_default {
146 gpio {
147 groups = "i2c", "uart3", "wdt";
148 function = "gpio";
149 };
150 };