3e2b6026892a17ee7fb7f5e2d9266ccd2c4963cd
[openwrt/staging/mkresin.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-status = &led_status;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,57600";
18 };
19
20 memory@0 {
21 device_type = "memory";
22 reg = <0x0 0x2000000>;
23 };
24
25 gpio-leds {
26 compatible = "gpio-leds";
27 led_status: status {
28 label = "mac1200rv2:green:status";
29 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
30 };
31 };
32 };
33
34 &spi0 {
35 status = "okay";
36
37 m25p80@0 {
38 compatible = "jedec,spi-nor";
39 reg = <0 0>;
40 spi-max-frequency = <10000000>;
41 m25p,chunked-io = <32>;
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 0x1d800>;
51 };
52
53 factory: partition@1d800 {
54 label = "factory_info";
55 reg = <0x1d800 0x800>;
56 read-only;
57 };
58
59 art: partition@1e000 {
60 label = "art";
61 reg = <0x1e000 0x2000>;
62 read-only;
63 };
64
65 partition@20000 {
66 label = "config";
67 reg = <0x20000 0x10000>;
68 };
69
70 partition@30000 {
71 label = "u-boot2";
72 reg = <0x30000 0x10000>;
73 };
74
75 partition@40000 {
76 label = "firmware";
77 reg = <0x40000 0x7c0000>;
78 };
79 };
80 };
81 };
82
83 &ethernet {
84 pinctrl-names = "default";
85 mtd-mac-address = <&factory 0xd>;
86 mediatek,portmap = "llllw";
87 };
88
89 &wmac {
90 status = "okay";
91 ralink,mtd-eeprom = <&art 0x0>;
92 };
93
94 &pcie {
95 status = "okay";
96 };
97
98 &pcie0 {
99 mt76@0,0 {
100 reg = <0x0000 0 0 0 0>;
101 mediatek,mtd-eeprom = <&art 0x1000>;
102 ieee80211-freq-limit = <5000000 6000000>;
103 };
104 };