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