73cba52937fb6d53f3df612bb82f5d7fa5e7287e
[openwrt/staging/wigyori.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 gpio-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 m25p,chunked-io = <32>;
45
46 partitions {
47 compatible = "fixed-partitions";
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 partition@0 {
52 label = "u-boot";
53 reg = <0x0 0x1d800>;
54 };
55
56 factory: partition@1d800 {
57 label = "factory_info";
58 reg = <0x1d800 0x800>;
59 read-only;
60 };
61
62 art: partition@1e000 {
63 label = "art";
64 reg = <0x1e000 0x2000>;
65 read-only;
66 };
67
68 partition@20000 {
69 label = "config";
70 reg = <0x20000 0x10000>;
71 };
72
73 partition@30000 {
74 label = "u-boot2";
75 reg = <0x30000 0x10000>;
76 };
77
78 partition@40000 {
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 };