ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_tplink_re2x0-v1.dtsi
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 aliases {
10 label-mac-device = &ethernet;
11 };
12
13 chosen {
14 bootargs = "console=ttyS0,57600n8";
15 };
16
17 keys: keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 };
25
26 wps {
27 label = "wps";
28 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
30 };
31 };
32 };
33
34 &spi0 {
35 status = "okay";
36
37 flash@0 {
38 compatible = "jedec,spi-nor";
39 reg = <0>;
40 spi-max-frequency = <50000000>;
41
42 partitions {
43 compatible = "fixed-partitions";
44 #address-cells = <1>;
45 #size-cells = <1>;
46
47 uboot: partition@0 {
48 label = "u-boot";
49 reg = <0x0 0x20000>;
50 read-only;
51 };
52
53 partition@20000 {
54 compatible = "tplink,firmware";
55 label = "firmware";
56 reg = <0x20000 0x7c0000>;
57 };
58
59 partition@7e0000 {
60 label = "config";
61 reg = <0x7e0000 0x10000>;
62 read-only;
63 };
64
65 radio: partition@7f0000 {
66 label = "radio";
67 reg = <0x7f0000 0x10000>;
68 read-only;
69 };
70 };
71 };
72 };
73
74 &ethernet {
75 mtd-mac-address = <&uboot 0x1fc00>;
76 };
77
78 &wmac {
79 ralink,mtd-eeprom = <&radio 0x0>;
80 mtd-mac-address = <&uboot 0x1fc00>;
81 };
82
83 &pcie {
84 status = "okay";
85 };
86
87 &pcie0 {
88 mt76@0,0 {
89 reg = <0x0000 0 0 0 0>;
90 mediatek,mtd-eeprom = <&radio 0x8000>;
91 mtd-mac-address = <&uboot 0x1fc00>;
92 mtd-mac-address-increment = <2>;
93 ieee80211-freq-limit = <5000000 6000000>;
94 };
95 };