ramips: use DT trigger for 2G WiFi on ASUS RT-AC51U
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_netgear_sercomm_bzv.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "mediatek,mt7621-soc";
10
11 aliases {
12 label-mac-device = &gmac0;
13 };
14
15 chosen {
16 bootargs = "console=ttyS0,57600";
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 wps {
23 label = "wps";
24 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_WPS_BUTTON>;
26 };
27
28 rfkill {
29 label = "rfkill";
30 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RFKILL>;
32 };
33
34 reset {
35 label = "reset";
36 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39 };
40 };
41
42 &pcie {
43 status = "okay";
44 };
45
46 &pcie0 {
47 wifi@0,0 {
48 compatible = "mediatek,mt76";
49 reg = <0x0 0 0 0 0>;
50 mediatek,mtd-eeprom = <&factory 0x0>;
51 ieee80211-freq-limit = <2400000 2500000>;
52 };
53 };
54
55 &pcie1 {
56 wifi@0,0 {
57 compatible = "mediatek,mt76";
58 reg = <0x0 0 0 0 0>;
59 mediatek,mtd-eeprom = <&factory 0x8000>;
60 ieee80211-freq-limit = <5000000 6000000>;
61 };
62 };
63
64 &gmac0 {
65 mtd-mac-address = <&factory 0x4>;
66 };
67
68 &switch0 {
69 ports {
70 port@0 {
71 status = "okay";
72 label = "lan4";
73 };
74
75 port@1 {
76 status = "okay";
77 label = "lan3";
78 };
79
80 port@2 {
81 status = "okay";
82 label = "lan2";
83 };
84
85 port@3 {
86 status = "okay";
87 label = "lan1";
88 };
89
90 port@4 {
91 status = "okay";
92 label = "wan";
93 mtd-mac-address = <&factory 0x4>;
94 mtd-mac-address-increment = <2>;
95 };
96 };
97 };
98
99 &i2c {
100 status = "okay";
101
102 gpio_expander: i2c0gpio-expander@20{
103 #gpio-cells = <2>;
104 #interrupt-cells = <2>;
105 compatible = "semtech,sx1503q";
106 reg = <0x20>;
107
108 gpio-controller;
109 };
110 };
111
112 &nand {
113 status = "okay";
114
115 partitions {
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
118 #size-cells = <1>;
119
120 partition@0 {
121 label = "u-boot";
122 reg = <0x0 0x100000>;
123 read-only;
124 };
125
126 partition@100000 {
127 label = "SC PART_MAP";
128 reg = <0x100000 0x100000>;
129 read-only;
130 };
131
132 partition@200000 {
133 label = "kernel";
134 reg = <0x200000 0x400000>;
135 };
136
137 partition@600000 {
138 label = "ubi";
139 reg = <0x600000 0x2800000>;
140 };
141
142 partition@2e00000 {
143 label = "reserved0";
144 reg = <0x2e00000 0x1800000>;
145 read-only;
146 };
147
148 factory: partition@4600000 {
149 label = "factory";
150 reg = <0x4600000 0x200000>;
151 read-only;
152 };
153
154 partition@4800000 {
155 label = "reserved1";
156 reg = <0x4800000 0x3800000>;
157 read-only;
158 };
159 };
160 };