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