Revert "kernel: backport MT7530 IRQ support"
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_wevo_air-duo.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "wevo,air-duo", "ralink,mt7620a-soc";
11 model = "WeVO AIR DUO";
12
13 aliases {
14 led-boot = &led_status;
15 led-failsafe = &led_status;
16 led-running = &led_status;
17 led-upgrade = &led_status;
18 label-mac-device = &ethernet;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_status: led-0 {
25 label = "blue:status";
26 color = <LED_COLOR_ID_BLUE>;
27 function = LED_FUNCTION_STATUS;
28 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
29 };
30
31 led-1 {
32 color = <LED_COLOR_ID_BLUE>;
33 function = LED_FUNCTION_WPS;
34 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys";
40
41 wps {
42 label = "wps";
43 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_WPS_BUTTON>;
45 };
46
47 reset {
48 label = "reset";
49 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
51 };
52 };
53 };
54
55 &gpio1 {
56 status = "okay";
57 };
58
59 &spi0 {
60 status = "okay";
61
62 flash@0 {
63 compatible = "jedec,spi-nor";
64 reg = <0>;
65 spi-max-frequency = <50000000>;
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "u-boot";
74 reg = <0x0 0x30000>;
75 read-only;
76 };
77
78 partition@30000 {
79 label = "config";
80 reg = <0x30000 0x10000>;
81 read-only;
82 };
83
84 factory: partition@40000 {
85 label = "factory";
86 reg = <0x40000 0x10000>;
87 read-only;
88
89 compatible = "nvmem-cells";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 macaddr_factory_4: macaddr@4 {
94 reg = <0x4 0x6>;
95 };
96 };
97
98 partition@50000 {
99 compatible = "denx,uimage";
100 label = "firmware";
101 reg = <0x50000 0xeb0000>;
102 };
103
104 partition@f00000 {
105 label = "db";
106 reg = <0xf00000 0x100000>;
107 read-only;
108 };
109 };
110 };
111 };
112
113 &state_default {
114 gpio {
115 groups = "i2c", "uartf", "spi refclk";
116 function = "gpio";
117 };
118 };
119
120 &ethernet {
121 pinctrl-names = "default";
122 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
123 nvmem-cells = <&macaddr_factory_4>;
124 nvmem-cell-names = "mac-address";
125
126 port@5 {
127 status = "okay";
128 mediatek,fixed-link = <1000 1 1 1>;
129 phy-mode = "rgmii";
130 };
131
132 mdio-bus {
133 status = "okay";
134
135 ethernet-phy@0 {
136 reg = <0>;
137 phy-mode = "rgmii";
138 };
139
140 ethernet-phy@1 {
141 reg = <1>;
142 phy-mode = "rgmii";
143 };
144
145 ethernet-phy@2 {
146 reg = <2>;
147 phy-mode = "rgmii";
148 };
149
150 ethernet-phy@3 {
151 reg = <3>;
152 phy-mode = "rgmii";
153 };
154
155 ethernet-phy@4 {
156 reg = <4>;
157 phy-mode = "rgmii";
158 };
159
160 ethernet-phy@1f {
161 reg = <0x1f>;
162 phy-mode = "rgmii";
163 };
164 };
165 };
166
167 &gsw {
168 mediatek,ephy-base = /bits/ 8 <12>;
169 };
170
171 &ehci {
172 status = "okay";
173 };
174
175 &ohci {
176 status = "okay";
177 };
178
179 &pcie {
180 status = "okay";
181 };
182
183 &pcie0 {
184 wifi@0,0 {
185 compatible = "mediatek,mt76";
186 reg = <0x0000 0 0 0 0>;
187 mediatek,mtd-eeprom = <&factory 0x8000>;
188 ieee80211-freq-limit = <5000000 6000000>;
189
190 led {
191 led-sources = <2>;
192 led-active-low;
193 };
194 };
195 };
196
197 &wmac {
198 pinctrl-names = "default";
199 pinctrl-0 = <&wled_pins>;
200
201 ralink,mtd-eeprom = <&factory 0x0>;
202 };