ramips/mt7621: Name DTS files based on scheme
[oweals/openwrt.git] / target / linux / ramips / dts / MAC1200RV2.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "mercury,mac1200r-v2", "mediatek,mt7628an-soc";
10         model = "Mercury MAC1200R v2";
11
12         aliases {
13                 led-boot = &led_status;
14                 led-failsafe = &led_status;
15                 led-running = &led_status;
16                 led-upgrade = &led_status;
17         };
18
19         chosen {
20                 bootargs = "console=ttyS0,57600";
21         };
22
23         memory@0 {
24                 device_type = "memory";
25                 reg = <0x0 0x2000000>;
26         };
27
28         leds {
29                 compatible = "gpio-leds";
30                 led_status: status {
31                         label = "mac1200rv2:green:status";
32                         gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
33                 };
34         };
35 };
36
37 &spi0 {
38         status = "okay";
39
40         m25p80@0 {
41                 compatible = "jedec,spi-nor";
42                 reg = <0 0>;
43                 spi-max-frequency = <10000000>;
44
45                 partitions {
46                         compatible = "fixed-partitions";
47                         #address-cells = <1>;
48                         #size-cells = <1>;
49
50                         partition@0 {
51                                 label = "u-boot";
52                                 reg = <0x0 0x1d800>;
53                         };
54
55                         factory: partition@1d800 {
56                                 label = "factory_info";
57                                 reg = <0x1d800 0x800>;
58                                 read-only;
59                         };
60
61                         art: partition@1e000 {
62                                 label = "art";
63                                 reg = <0x1e000 0x2000>;
64                                 read-only;
65                         };
66
67                         partition@20000 {
68                                 label = "config";
69                                 reg = <0x20000 0x10000>;
70                         };
71
72                         partition@30000 {
73                                 label = "u-boot2";
74                                 reg = <0x30000 0x10000>;
75                         };
76
77                         partition@40000 {
78                                 compatible = "denx,uimage";
79                                 label = "firmware";
80                                 reg = <0x40000 0x7c0000>;
81                         };
82                 };
83         };
84 };
85
86 &ethernet {
87         pinctrl-names = "default";
88         mtd-mac-address = <&factory 0xd>;
89         mediatek,portmap = "llllw";
90 };
91
92 &wmac {
93         status = "okay";
94         ralink,mtd-eeprom = <&art 0x0>;
95 };
96
97 &pcie {
98         status = "okay";
99 };
100
101 &pcie0 {
102         mt76@0,0 {
103                 reg = <0x0000 0 0 0 0>;
104                 mediatek,mtd-eeprom = <&art 0x1000>;
105                 ieee80211-freq-limit = <5000000 6000000>;
106         };
107 };