074011fbb9b2c404cb5ed8d85295086d8cdf0ebe
[openwrt/staging/pepe2k.git] / target / linux / ramips / dts / mt7628an_mercury_mac1200r-v2.dts
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "mercury,mac1200r-v2", "mediatek,mt7628an-soc";
8 model = "Mercury MAC1200R v2";
9
10 aliases {
11 led-boot = &led_status;
12 led-failsafe = &led_status;
13 led-running = &led_status;
14 led-upgrade = &led_status;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_status: status {
21 label = "green:status";
22 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
23 };
24 };
25 };
26
27 &spi0 {
28 status = "okay";
29
30 flash@0 {
31 compatible = "jedec,spi-nor";
32 reg = <0>;
33 spi-max-frequency = <10000000>;
34
35 partitions {
36 compatible = "fixed-partitions";
37 #address-cells = <1>;
38 #size-cells = <1>;
39
40 partition@0 {
41 label = "u-boot";
42 reg = <0x0 0x1d800>;
43 };
44
45 factory: partition@1d800 {
46 label = "factory_info";
47 reg = <0x1d800 0x800>;
48 read-only;
49
50 nvmem-layout {
51 compatible = "fixed-layout";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 eeprom_factory_0: eeprom@0 {
56 reg = <0x0 0x400>;
57 };
58
59 macaddr_factory_d: macaddr@d {
60 reg = <0xd 0x6>;
61 };
62 };
63 };
64
65 art: partition@1e000 {
66 label = "art";
67 reg = <0x1e000 0x2000>;
68 read-only;
69
70 nvmem-layout {
71 compatible = "fixed-layout";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 eeprom_art_1000: eeprom@1000 {
76 reg = <0x1000 0x200>;
77 };
78 };
79 };
80
81 partition@20000 {
82 label = "config";
83 reg = <0x20000 0x10000>;
84 };
85
86 partition@30000 {
87 label = "u-boot2";
88 reg = <0x30000 0x10000>;
89 };
90
91 partition@40000 {
92 compatible = "denx,uimage";
93 label = "firmware";
94 reg = <0x40000 0x7c0000>;
95 };
96 };
97 };
98 };
99
100 &ethernet {
101 pinctrl-names = "default";
102 nvmem-cells = <&macaddr_factory_d>;
103 nvmem-cell-names = "mac-address";
104 };
105
106 &esw {
107 mediatek,portmap = <0x2f>;
108 };
109
110 &wmac {
111 status = "okay";
112
113 nvmem-cells = <&eeprom_factory_0>;
114 nvmem-cell-names = "eeprom";
115 };
116
117 &pcie {
118 status = "okay";
119 };
120
121 &pcie0 {
122 mt76@0,0 {
123 reg = <0x0000 0 0 0 0>;
124 nvmem-cells = <&eeprom_art_1000>;
125 nvmem-cell-names = "eeprom";
126 ieee80211-freq-limit = <5000000 6000000>;
127 };
128 };