tools/patchelf: update to 0.18.0
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / mt7621_tplink_re650-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "tplink,re650-v2", "mediatek,mt7621-soc";
10 model = "TP-Link RE650 v2";
11
12 aliases {
13 label-mac-device = &gmac0;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 wps {
24 label = "wps";
25 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
27 linux,code = <KEY_WPS_BUTTON>;
28 };
29
30 power {
31 label = "power";
32 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
34 linux,code = <KEY_POWER>;
35 };
36
37 led {
38 label = "led";
39 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
40 debounce-interval = <60>;
41 linux,code = <KEY_LIGHTS_TOGGLE>;
42 };
43
44 reset {
45 label = "reset";
46 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
47 debounce-interval = <60>;
48 linux,code = <KEY_RESTART>;
49 };
50 };
51
52 leds {
53 compatible = "gpio-leds";
54
55 led_power: power {
56 label = "blue:power";
57 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
58 };
59
60 wifi2g {
61 label = "blue:wifi2g";
62 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "phy0tpt";
64 };
65
66 wifi5g {
67 label = "blue:wifi5g";
68 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
69 linux,default-trigger = "phy1tpt";
70 };
71
72 wps_red {
73 label = "red:wps";
74 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
75 };
76
77 wps_blue {
78 label = "blue:wps";
79 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
80 };
81
82 eth_act {
83 label = "green:eth_act";
84 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
85 };
86
87 eth_link {
88 label = "green:eth_link";
89 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
90 };
91 };
92 };
93
94 &spi0 {
95 status = "okay";
96
97 flash@0 {
98 compatible = "jedec,spi-nor";
99 reg = <0>;
100 spi-max-frequency = <40000000>;
101
102 partitions {
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 partition@0 {
108 label = "u-boot";
109 reg = <0x0 0x20000>;
110 read-only;
111 };
112
113 partition@20000 {
114 compatible = "tplink,firmware";
115 label = "firmware";
116 reg = <0x20000 0x7a0000>;
117 };
118
119 config: partition@7c0000 {
120 label = "config";
121 reg = <0x7c0000 0x2d440>;
122 read-only;
123 };
124
125 radio: partition@7f0000 {
126 label = "radio";
127 reg = <0x7f0000 0x10000>;
128 read-only;
129 };
130 };
131 };
132 };
133
134 &state_default {
135 gpio {
136 groups = "rgmii2", "wdt";
137 function = "gpio";
138 };
139 };
140
141 &pcie {
142 status = "okay";
143 };
144
145 &pcie1 {
146 wifi@0,0 {
147 compatible = "mediatek,mt76";
148 reg = <0x0000 0 0 0 0>;
149 mediatek,mtd-eeprom = <&radio 0x0>;
150 nvmem-cells = <&macaddr_config_10008>;
151 nvmem-cell-names = "mac-address";
152 mac-address-increment = <1>;
153 ieee80211-freq-limit = <2400000 2500000>;
154 };
155 };
156
157 &pcie0 {
158 wifi@0,0 {
159 compatible = "mediatek,mt76";
160 reg = <0x0000 0 0 0 0>;
161 mediatek,mtd-eeprom = <&radio 0x8000>;
162 nvmem-cells = <&macaddr_config_10008>;
163 nvmem-cell-names = "mac-address";
164 mac-address-increment = <2>;
165 ieee80211-freq-limit = <5000000 6000000>;
166 };
167 };
168
169 &ethernet {
170 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
171 };
172
173 &gmac0 {
174 nvmem-cells = <&macaddr_config_10008>;
175 nvmem-cell-names = "mac-address";
176 };
177
178 &switch0 {
179 ports {
180 port@0 {
181 status = "okay";
182 label = "lan";
183 };
184 };
185 };
186
187 &config {
188 compatible = "nvmem-cells";
189 #address-cells = <1>;
190 #size-cells = <1>;
191
192 macaddr_config_10008: macaddr@10008 {
193 reg = <0x10008 0x6>;
194 };
195 };