ramips: fix WiFi MAC addresses for D-Link DIR-810L
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_zbtlink_zbt-we3526.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "zbtlink,zbt-we3526", "mediatek,mt7621-soc";
10         model = "Zbtlink ZBT-WE3526";
11
12         chosen {
13                 bootargs = "console=ttyS0,115200";
14         };
15
16         palmbus: palmbus@1E000000 {
17                 i2c@900 {
18                         status = "okay";
19                 };
20         };
21
22         keys {
23                 compatible = "gpio-keys-polled";
24                 poll-interval = <20>;
25
26                 reset {
27                         label = "reset";
28                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
29                         linux,code = <KEY_RESTART>;
30                 };
31         };
32 };
33
34 &sdhci {
35         status = "okay";
36 };
37
38 &spi0 {
39         status = "okay";
40
41         m25p80@0 {
42                 compatible = "jedec,spi-nor";
43                 reg = <0>;
44                 spi-max-frequency = <10000000>;
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 0x30000>;
54                                 read-only;
55                         };
56
57                         partition@30000 {
58                                 label = "u-boot-env";
59                                 reg = <0x30000 0x10000>;
60                                 read-only;
61                         };
62
63                         factory: partition@40000 {
64                                 label = "factory";
65                                 reg = <0x40000 0x10000>;
66                                 read-only;
67                         };
68
69                         firmware: partition@50000 {
70                                 compatible = "denx,uimage";
71                                 label = "firmware";
72                                 reg = <0x50000 0xfb0000>;
73                         };
74                 };
75         };
76 };
77
78 &pcie {
79         status = "okay";
80 };
81
82 &pcie0 {
83         wifi@0,0 {
84                 compatible = "pci14c3,7662";
85                 reg = <0x0000 0 0 0 0>;
86                 mediatek,mtd-eeprom = <&factory 0x8000>;
87                 ieee80211-freq-limit = <5000000 6000000>;
88
89                 led {
90                         led-sources = <2>;
91                 };
92         };
93 };
94
95 &pcie1 {
96         wifi@0,0 {
97                 compatible = "pci14c3,7603";
98                 reg = <0x0000 0 0 0 0>;
99                 mediatek,mtd-eeprom = <&factory 0x0000>;
100         };
101 };
102
103 &ethernet {
104         mtd-mac-address = <&factory 0xe000>;
105 };
106
107 &pinctrl {
108         state_default: pinctrl0 {
109                 gpio {
110                         ralink,group = "wdt";
111                         ralink,function = "gpio";
112                 };
113         };
114 };