ramips: use DT trigger for 2G WiFi on ASUS RT-AC51U
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_mqmaker_witi.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 = "mqmaker,witi", "mediatek,mt7621-soc";
10 model = "MQmaker WiTi";
11
12 chosen {
13 bootargs = "console=ttyS0,57600";
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24 };
25 };
26
27 &i2c {
28 status = "okay";
29
30 rtc@51 {
31 status = "okay";
32 compatible = "nxp,pcf8563";
33 reg = <0x51>;
34 };
35 };
36
37 &sdhci {
38 status = "okay";
39 };
40
41 &spi0 {
42 status = "okay";
43
44 flash@0 {
45 compatible = "jedec,spi-nor";
46 reg = <0>;
47 spi-max-frequency = <10000000>;
48
49 partitions {
50 compatible = "fixed-partitions";
51 #address-cells = <1>;
52 #size-cells = <1>;
53
54 partition@0 {
55 label = "u-boot";
56 reg = <0x0 0x30000>;
57 read-only;
58 };
59
60 partition@30000 {
61 label = "u-boot-env";
62 reg = <0x30000 0x10000>;
63 read-only;
64 };
65
66 factory: partition@40000 {
67 label = "factory";
68 reg = <0x40000 0x10000>;
69 };
70
71 partition@50000 {
72 compatible = "denx,uimage";
73 label = "firmware";
74 reg = <0x50000 0xfb0000>;
75 };
76 };
77 };
78 };
79
80 &pcie {
81 status = "okay";
82 };
83
84 &pcie0 {
85 mt76@0,0 {
86 reg = <0x0000 0 0 0 0>;
87 mediatek,mtd-eeprom = <&factory 0x8000>;
88 ieee80211-freq-limit = <5000000 6000000>;
89 mtd-mac-address = <&factory 0xe000>;
90 };
91 };
92
93 &pcie1 {
94 mt76@0,0 {
95 reg = <0x0000 0 0 0 0>;
96 mediatek,mtd-eeprom = <&factory 0x0000>;
97 ieee80211-freq-limit = <2400000 2500000>;
98 mtd-mac-address = <&factory 0xe000>;
99 };
100 };
101
102 &gmac0 {
103 mtd-mac-address = <&factory 0xe000>;
104 };
105
106 &switch0 {
107 ports {
108 port@0 {
109 status = "okay";
110 label = "lan1";
111 };
112
113 port@1 {
114 status = "okay";
115 label = "lan2";
116 };
117
118 port@2 {
119 status = "okay";
120 label = "lan3";
121 };
122
123 port@3 {
124 status = "okay";
125 label = "lan4";
126 };
127
128 port@4 {
129 status = "okay";
130 label = "wan";
131 mtd-mac-address = <&factory 0xe000>;
132 mtd-mac-address-increment = <1>;
133 };
134 };
135 };
136
137 &state_default {
138 gpio {
139 groups = "wdt";
140 function = "gpio";
141 };
142 };