ramips: fix WiFi MAC addresses for D-Link DIR-810L
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620a_microduino_microwrt.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "microduino,microwrt", "ralink,mt7620a-soc";
10         model = "Microduino MicroWRT";
11
12         chosen {
13                 bootargs = "console=ttyS0,115200";
14         };
15
16         keys {
17                 compatible = "gpio-keys-polled";
18                 poll-interval = <20>;
19
20                 reset {
21                         label = "reset";
22                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
23                         linux,code = <KEY_RESTART>;
24                 };
25
26                 wps {
27                         label = "wps";
28                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
29                         linux,code = <KEY_WPS_BUTTON>;
30                 };
31         };
32 };
33
34 &gpio2 {
35         status = "okay";
36 };
37
38 &gpio3 {
39         status = "okay";
40 };
41
42 &spi0 {
43         status = "okay";
44
45         m25p80@0 {
46                 compatible = "jedec,spi-nor";
47                 reg = <0>;
48                 spi-max-frequency = <10000000>;
49
50                 partitions {
51                         compatible = "fixed-partitions";
52                         #address-cells = <1>;
53                         #size-cells = <1>;
54
55                         partition@0 {
56                                 label = "u-boot";
57                                 reg = <0x0 0x20000>;
58                                 read-only;
59                         };
60
61                         partition@20000 {
62                                 label = "u-boot-env";
63                                 reg = <0x20000 0x10000>;
64                                 read-only;
65                         };
66
67                         factory: partition@30000 {
68                                 label = "factory";
69                                 reg = <0x30000 0x10000>;
70                                 read-only;
71                         };
72
73                         partition@40000 {
74                                 compatible = "denx,uimage";
75                                 label = "firmware";
76                                 reg = <0x40000 0xfc0000>;
77                         };
78                 };
79         };
80 };
81
82 &ehci {
83         status = "okay";
84 };
85
86 &ohci {
87         status = "okay";
88 };
89
90 &ethernet {
91         pinctrl-names = "default";
92         pinctrl-0 = <&ephy_pins>;
93         mtd-mac-address = <&factory 0x4>;
94         mediatek,portmap = "llllw";
95 };
96
97 &wmac {
98         ralink,mtd-eeprom = <&factory 0>;
99 };
100
101 &pinctrl {
102         state_default: pinctrl0 {
103                 default {
104                         ralink,group = "wled", "i2c", "wdt", "uartf";
105                         ralink,function = "gpio";
106                 };
107         };
108 };