ramips: move compatible for Ubiquiti Edgerouter X to DTS file
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_totolink_a7000r.dts
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 compatible = "totolink,a7000r", "mediatek,mt7621-soc";
11 model = "TOTOLINK A7000R";
12
13 aliases {
14 led-boot = &led_sys;
15 led-failsafe = &led_sys;
16 led-running = &led_sys;
17 led-upgrade = &led_sys;
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,57600";
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 led_sys: sys {
28 label = "a7000r:blue:sys";
29 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
30 };
31 };
32
33 keys {
34 compatible = "gpio-keys";
35
36 reset {
37 label = "reset";
38 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
39 debounce-interval = <60>;
40 linux,code = <KEY_RESTART>;
41 };
42 };
43 };
44
45 &spi0 {
46 status = "okay";
47
48 flash@0 {
49 compatible = "jedec,spi-nor";
50 reg = <0>;
51 spi-max-frequency = <40000000>;
52
53 partitions {
54 compatible = "fixed-partitions";
55 #address-cells = <1>;
56 #size-cells = <1>;
57
58 partition@0 {
59 label = "u-boot";
60 reg = <0x0 0x30000>;
61 read-only;
62 };
63
64 partition@30000 {
65 label = "u-boot-env";
66 reg = <0x30000 0x10000>;
67 read-only;
68 };
69
70 factory: partition@40000 {
71 label = "factory";
72 reg = <0x40000 0x10000>;
73 read-only;
74 };
75
76 partition@50000 {
77 compatible = "denx,uimage";
78 label = "firmware";
79 reg = <0x50000 0xfb0000>;
80 };
81 };
82 };
83 };
84
85 &pcie {
86 status = "okay";
87 };
88
89 &pcie0 {
90 wifi@0,0 {
91 compatible = "mediatek,mt76";
92 reg = <0x0000 0 0 0 0>;
93 mediatek,mtd-eeprom = <&factory 0x0000>;
94 ieee80211-freq-limit = <2400000 2500000>;
95 };
96 };
97
98 &pcie1 {
99 wifi@0,0 {
100 compatible = "mediatek,mt76";
101 reg = <0x0000 0 0 0 0>;
102 mediatek,mtd-eeprom = <&factory 0x8000>;
103 ieee80211-freq-limit = <5000000 6000000>;
104 };
105 };
106
107 &ethernet {
108 mtd-mac-address = <&factory 0xe000>;
109 };
110
111 &state_default {
112 gpio {
113 ralink,group = "i2c", "wdt";
114 ralink,function = "gpio";
115 };
116 };