dnsmasq: full: disable ipset support by default
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_wavlink_wl-wn535k1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "wavlink,wl-wn535k1", "ralink,mt7620a-soc";
10 model = "Wavlink WL-WN535K1";
11
12 aliases {
13 label-mac-device = &wifi0;
14 led-boot = &led_status_blue;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_blue;
17 led-upgrade = &led_status_red;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
27 };
28
29 touchlink {
30 label = "touchlink";
31 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 led_status_blue: status_blue {
40 label = "blue:status";
41 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
42 };
43
44 led_status_red: status_red {
45 label = "red:status";
46 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
47 };
48
49 lan1 {
50 label = "green:lan1";
51 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
52 };
53
54 lan2 {
55 label = "green:lan2";
56 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
57 };
58
59 wan {
60 label = "green:wan";
61 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
62 };
63 };
64 };
65
66 &gpio2 {
67 status = "okay";
68 };
69
70 &spi0 {
71 status = "okay";
72
73 flash@0 {
74 compatible = "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <50000000>;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 label = "u-boot";
85 reg = <0x0 0x30000>;
86 read-only;
87 };
88
89 partition@30000 {
90 label = "config";
91 reg = <0x30000 0x10000>;
92 read-only;
93 };
94
95 factory: partition@40000 {
96 label = "factory";
97 reg = <0x40000 0x10000>;
98 read-only;
99
100 compatible = "nvmem-cells";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 macaddr_factory_28: macaddr@28 {
105 reg = <0x28 0x6>;
106 };
107 };
108
109 partition@50000 {
110 compatible = "denx,uimage";
111 label = "firmware";
112 reg = <0x50000 0x730000>;
113 };
114
115 partition@780000 {
116 label = "vendor";
117 reg = <0x780000 0x80000>;
118 read-only;
119 };
120 };
121 };
122 };
123
124 &pcie {
125 status = "okay";
126 };
127
128 &pcie0 {
129 wifi0: wifi@0,0 {
130 reg = <0x0000 0 0 0 0>;
131 mediatek,mtd-eeprom = <&factory 0x8000>;
132 ieee80211-freq-limit = <5000000 6000000>;
133 };
134 };
135
136 &ethernet {
137 pinctrl-names = "default";
138 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
139
140 nvmem-cells = <&macaddr_factory_28>;
141 nvmem-cell-names = "mac-address";
142
143 mediatek,portmap = "llllw";
144
145 port@4 {
146 status = "okay";
147 phy-handle = <&phy4>;
148 phy-mode = "rgmii";
149 };
150
151 port@5 {
152 status = "okay";
153 phy-handle = <&phy5>;
154 phy-mode = "rgmii";
155 };
156
157 mdio-bus {
158 status = "okay";
159
160 phy4: ethernet-phy@4 {
161 reg = <4>;
162 phy-mode = "rgmii";
163 };
164
165 phy5: ethernet-phy@5 {
166 reg = <5>;
167 phy-mode = "rgmii";
168 };
169 };
170 };
171
172 &gsw {
173 mediatek,port4-gmac;
174 };
175
176 &wmac {
177 ralink,mtd-eeprom = <&factory 0x0>;
178 };
179
180 &state_default {
181 gpio {
182 groups = "ephy", "i2c", "uartf";
183 function = "gpio";
184 };
185 };