ramips: move compatible for Ubiquiti Edgerouter X to DTS file
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_edimax_rx21s.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7621.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10 aliases {
11 label-mac-device = &ethernet;
12 };
13
14 chosen {
15 bootargs = "console=ttyS0,57600";
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
25 };
26
27 wps {
28 label = "wps";
29 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
31 };
32 };
33 };
34
35 &spi0 {
36 status = "okay";
37
38 flash@0 {
39 compatible = "jedec,spi-nor";
40 reg = <0>;
41 spi-max-frequency = <40000000>;
42
43 partitions {
44 compatible = "fixed-partitions";
45 #address-cells = <1>;
46 #size-cells = <1>;
47
48 partition@0 {
49 label = "u-boot";
50 reg = <0x0 0x30000>;
51 read-only;
52 };
53
54 partition@30000 {
55 label = "u-boot-env";
56 reg = <0x30000 0x10000>;
57 read-only;
58 };
59
60 factory: partition@40000 {
61 label = "factory";
62 reg = <0x40000 0x10000>;
63 read-only;
64 };
65
66 partition@50000 {
67 compatible = "denx,uimage";
68 label = "firmware";
69 reg = <0x50000 0xfb0000>;
70 };
71 };
72 };
73 };
74
75 &pcie {
76 status = "okay";
77 };
78
79 &pcie0 {
80 wifi0: wifi@0,0 {
81 compatible = "mediatek,mt76";
82 reg = <0x0000 0 0 0 0>;
83 mediatek,mtd-eeprom = <&factory 0x0000>;
84 ieee80211-freq-limit = <2400000 2500000>;
85 };
86 };
87
88 &pcie1 {
89 wifi1: wifi@0,0 {
90 compatible = "mediatek,mt76";
91 reg = <0x0000 0 0 0 0>;
92 mediatek,mtd-eeprom = <&factory 0x8000>;
93 ieee80211-freq-limit = <5000000 6000000>;
94 };
95 };
96
97 &ethernet {
98 mtd-mac-address = <&factory 0x4>;
99
100 mediatek,portmap = "wllll";
101 port@5 {
102 status = "disabled";
103 };
104 };
105
106 &state_default {
107 gpio {
108 ralink,group = "uart3", "uart2", "jtag", "wdt";
109 ralink,function = "gpio";
110 };
111 };
112
113 &xhci {
114 status = "disabled";
115 };