715f4d1ff74b3fd9f07522ee49eecd7a263439d8
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_mercury_mac1200r-v2.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         leds {
24                 compatible = "gpio-leds";
25
26                 led_status: status {
27                         label = "mac1200rv2:green:status";
28                         gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
29                 };
30         };
31 };
32
33 &spi0 {
34         status = "okay";
35
36         m25p80@0 {
37                 compatible = "jedec,spi-nor";
38                 reg = <0 0>;
39                 spi-max-frequency = <10000000>;
40
41                 partitions {
42                         compatible = "fixed-partitions";
43                         #address-cells = <1>;
44                         #size-cells = <1>;
45
46                         partition@0 {
47                                 label = "u-boot";
48                                 reg = <0x0 0x1d800>;
49                         };
50
51                         factory: partition@1d800 {
52                                 label = "factory_info";
53                                 reg = <0x1d800 0x800>;
54                                 read-only;
55                         };
56
57                         art: partition@1e000 {
58                                 label = "art";
59                                 reg = <0x1e000 0x2000>;
60                                 read-only;
61                         };
62
63                         partition@20000 {
64                                 label = "config";
65                                 reg = <0x20000 0x10000>;
66                         };
67
68                         partition@30000 {
69                                 label = "u-boot2";
70                                 reg = <0x30000 0x10000>;
71                         };
72
73                         partition@40000 {
74                                 compatible = "denx,uimage";
75                                 label = "firmware";
76                                 reg = <0x40000 0x7c0000>;
77                         };
78                 };
79         };
80 };
81
82 &ethernet {
83         pinctrl-names = "default";
84         mtd-mac-address = <&factory 0xd>;
85         mediatek,portmap = "llllw";
86 };
87
88 &wmac {
89         status = "okay";
90         ralink,mtd-eeprom = <&art 0x0>;
91 };
92
93 &pcie {
94         status = "okay";
95 };
96
97 &pcie0 {
98         mt76@0,0 {
99                 reg = <0x0000 0 0 0 0>;
100                 mediatek,mtd-eeprom = <&art 0x1000>;
101                 ieee80211-freq-limit = <5000000 6000000>;
102         };
103 };