ramips: fix MAC address setup for Xiaomi MiWiFi Nano
[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";
18
19                 reset {
20                         label = "reset";
21                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
22                         linux,code = <KEY_RESTART>;
23                 };
24
25                 wps {
26                         label = "wps";
27                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
28                         linux,code = <KEY_WPS_BUTTON>;
29                 };
30         };
31 };
32
33 &gpio2 {
34         status = "okay";
35 };
36
37 &gpio3 {
38         status = "okay";
39 };
40
41 &spi0 {
42         status = "okay";
43
44         m25p80@0 {
45                 compatible = "jedec,spi-nor";
46                 reg = <0>;
47                 spi-max-frequency = <10000000>;
48
49                 partitions {
50                         compatible = "fixed-partitions";
51                         #address-cells = <1>;
52                         #size-cells = <1>;
53
54                         partition@0 {
55                                 label = "u-boot";
56                                 reg = <0x0 0x20000>;
57                                 read-only;
58                         };
59
60                         partition@20000 {
61                                 label = "u-boot-env";
62                                 reg = <0x20000 0x10000>;
63                                 read-only;
64                         };
65
66                         factory: partition@30000 {
67                                 label = "factory";
68                                 reg = <0x30000 0x10000>;
69                                 read-only;
70                         };
71
72                         partition@40000 {
73                                 compatible = "denx,uimage";
74                                 label = "firmware";
75                                 reg = <0x40000 0xfc0000>;
76                         };
77                 };
78         };
79 };
80
81 &ehci {
82         status = "okay";
83 };
84
85 &ohci {
86         status = "okay";
87 };
88
89 &ethernet {
90         pinctrl-names = "default";
91         pinctrl-0 = <&ephy_pins>;
92         mtd-mac-address = <&factory 0x4>;
93         mediatek,portmap = "llllw";
94 };
95
96 &wmac {
97         ralink,mtd-eeprom = <&factory 0>;
98 };
99
100 &pinctrl {
101         state_default: pinctrl0 {
102                 default {
103                         ralink,group = "wled", "i2c", "wdt", "uartf";
104                         ralink,function = "gpio";
105                 };
106         };
107 };