dnsmasq: full: disable ipset support by default
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_sitecom_wlr-4100-v1-002.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
8 / {
9 compatible = "sitecom,wlr-4100-v1-002", "ralink,mt7620a-soc";
10 model = "Sitecom WLR-4100 v1 002";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15
16 aliases {
17 led-boot = &led_power;
18 led-failsafe = &led_power;
19 led-running = &led_power;
20 led-upgrade = &led_power;
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 led_power: power {
27 label = "amber:power";
28 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
29 default-state = "on";
30 };
31
32 wifi {
33 label = "blue:wifi";
34 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy1tpt";
36 };
37
38 wps {
39 label = "white:wps";
40 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
41 };
42 };
43
44 keys {
45 compatible = "gpio-keys";
46
47 wps {
48 label = "wps";
49 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
51 };
52
53 reset {
54 label = "reset";
55 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
57 };
58 };
59
60 gpio_export {
61 compatible = "gpio-export";
62 #size-cells = <0>;
63
64 usb-power {
65 gpio-export,name = "usb-power";
66 gpio-export,output = <1>;
67 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
68 };
69 };
70 };
71
72 &gpio1 {
73 status = "okay";
74 };
75
76 &gpio3 {
77 status = "okay";
78 };
79
80 &spi0 {
81 status = "okay";
82
83 flash@0 {
84 compatible = "jedec,spi-nor";
85 reg = <0>;
86 spi-max-frequency = <20000000>;
87
88 partitions {
89 compatible = "fixed-partitions";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 partition@0 {
94 label = "uboot";
95 reg = <0x0 0x30000>;
96 read-only;
97 };
98
99 partition@30000 {
100 label = "u-boot-env";
101 reg = <0x30000 0x10000>;
102 read-only;
103 };
104
105 factory: partition@40000 {
106 label = "factory";
107 reg = <0x40000 0x10000>;
108 read-only;
109 };
110
111 partition@50000 {
112 compatible = "denx,uimage";
113 label = "firmware";
114 reg = <0x50000 0x790000>;
115 };
116
117 partition@7e0000 {
118 label = "backup";
119 reg = <0x7e0000 0x10000>;
120 read-only;
121 };
122
123 partition@7f0000 {
124 label = "storage";
125 reg = <0x7f0000 0x10000>;
126 read-only;
127 };
128 };
129 };
130 };
131
132 &ethernet {
133 pinctrl-names = "default";
134 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
135
136 nvmem-cells = <&macaddr_factory_4>;
137 nvmem-cell-names = "mac-address";
138
139 port@5 {
140 status = "okay";
141
142 phy-mode = "rgmii";
143 mediatek,fixed-link = <1000 1 1 1>;
144 };
145
146 mdio-bus {
147 status = "okay";
148
149 ethernet-phy@0 {
150 reg = <0>;
151 phy-mode = "rgmii";
152
153 qca,ar8327-initvals = <
154 0x04 0x06200000 /* PORT0 PAD MODE CTRL */
155 0x08 0x01000000 /* PORT5 PAD MODE CTRL RX delay EN all ports 0, 5, 6 */
156 0x7c 0x0000007e /* PORT0_STATUS */
157 0x94 0x00000000 /* PORT6_STATUS */
158 >;
159 };
160 };
161 };
162
163 &gsw {
164 mediatek,ephy-base = /bits/ 8 <8>;
165 };
166
167 &ehci {
168 status = "okay";
169 };
170
171 &ohci {
172 status = "okay";
173 };
174
175 &wmac {
176 status = "okay";
177
178 ralink,mtd-eeprom = <&factory 0x0>;
179 };
180
181 &state_default {
182 gpio {
183 groups = "uartf", "i2c", "wled", "spi refclk";
184 function = "gpio";
185 };
186 };
187
188 &factory {
189 compatible = "nvmem-cells";
190 #address-cells = <1>;
191 #size-cells = <1>;
192
193 macaddr_factory_4: macaddr@4 {
194 reg = <0x4 0x6>;
195 };
196 };