9576081c82c926ce96c5e3abb0872342d71bf167
[openwrt/openwrt.git] / target / linux / ramips / dts / MAC1200RV2.dts
1 /dts-v1/;
2
3 /include/ "mt7628an.dtsi"
4
5 / {
6 compatible = "mercury,mac1200rv2", "mediatek,mt7628an-soc";
7 model = "Mercury MAC1200R v2";
8
9 chosen {
10 bootargs = "console=ttyS0,57600";
11 };
12
13 memory@0 {
14 device_type = "memory";
15 reg = <0x0 0x2000000>;
16 };
17
18 gpio-leds {
19 compatible = "gpio-leds";
20 status {
21 label = "mac1200rv2:green:status";
22 gpios = <&gpio0 11 1>;
23 };
24 };
25 };
26
27 &spi0 {
28 status = "okay";
29
30 m25p80@0 {
31 #address-cells = <1>;
32 #size-cells = <1>;
33 compatible = "w25q128";
34 reg = <0 0>;
35 linux,modalias = "m25p80", "w25q128";
36 spi-max-frequency = <10000000>;
37 m25p,chunked-io = <32>;
38
39 partition@0 {
40 label = "u-boot";
41 reg = <0x0 0x1d800>;
42 };
43
44 factory: partition@0x1d800 {
45 label = "factory_info";
46 reg = <0x1d800 0x800>;
47 read-only;
48 };
49
50 art: partition@0x1e000 {
51 label = "art";
52 reg = <0x1e000 0x2000>;
53 read-only;
54 };
55
56 partition@20000 {
57 label = "config";
58 reg = <0x20000 0x10000>;
59 };
60
61 partition@30000 {
62 label = "u-boot2";
63 reg = <0x30000 0x10000>;
64 };
65
66 partition@40000 {
67 label = "firmware";
68 reg = <0x40000 0x7c0000>;
69 };
70 };
71 };
72
73 &ethernet {
74 pinctrl-names = "default";
75 mtd-mac-address = <&factory 0xd>;
76 ralink,port-map = "llllw";
77 };
78
79 &wmac {
80 status = "okay";
81 ralink,mtd-eeprom = <&art 0x0>;
82 };
83
84 &pcie {
85 status = "okay";
86 pcie-bridge {
87 mt76@0,0 {
88 reg = <0x0000 0 0 0 0>;
89 device_type = "pci";
90 mediatek,mtd-eeprom = <&art 0x1000>;
91 mediatek,2ghz = <0>;
92 };
93 };
94 };