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