ramips: fix WiFi MAC addresses for D-Link DIR-810L
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620a_asus_rt-ac51u.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 = "asus,rt-ac51u", "ralink,mt7620a-soc";
10         model = "Asus RT-AC51U";
11
12         aliases {
13                 led-boot = &led_power;
14                 led-failsafe = &led_power;
15                 led-running = &led_power;
16                 led-upgrade = &led_power;
17         };
18
19         leds {
20                 compatible = "gpio-leds";
21
22                 led_power: power {
23                         label = "rt-ac51u:blue:power";
24                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
25                 };
26
27                 usb {
28                         label = "rt-ac51u:blue:usb";
29                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
30                         trigger-sources = <&ohci_port1>, <&ehci_port1>;
31                         linux,default-trigger = "usbport";
32                 };
33
34                 wifi {
35                         label = "rt-ac51u:blue:wifi";
36                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
37                 };
38         };
39
40         keys {
41                 compatible = "gpio-keys-polled";
42                 poll-interval = <20>;
43
44                 reset {
45                         label = "reset";
46                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
47                         linux,code = <KEY_RESTART>;
48                 };
49
50                 wps {
51                         label = "wps";
52                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
53                         linux,code = <KEY_WPS_BUTTON>;
54                 };
55         };
56 };
57
58 &spi0 {
59         status = "okay";
60
61         m25p80@0 {
62                 compatible = "jedec,spi-nor";
63                 reg = <0>;
64                 spi-max-frequency = <10000000>;
65
66                 partitions {
67                         compatible = "fixed-partitions";
68                         #address-cells = <1>;
69                         #size-cells = <1>;
70
71                         partition@0 {
72                                 label = "u-boot";
73                                 reg = <0x0 0x30000>;
74                                 read-only;
75                         };
76
77                         partition@30000 {
78                                 label = "u-boot-env";
79                                 reg = <0x30000 0x10000>;
80                                 read-only;
81                         };
82
83                         factory: partition@40000 {
84                                 label = "factory";
85                                 reg = <0x40000 0x10000>;
86                                 read-only;
87                         };
88
89                         partition@50000 {
90                                 compatible = "denx,uimage";
91                                 label = "firmware";
92                                 reg = <0x50000 0xfb0000>;
93                         };
94                 };
95         };
96 };
97
98 &ehci {
99         status = "okay";
100 };
101
102 &ohci {
103         status = "okay";
104 };
105
106 &gpio0 {
107         enable-leds {
108                 gpio-hog;
109                 line-name = "enable-leds";
110                 output-low;
111                 gpios = <10 GPIO_ACTIVE_HIGH>;
112         };
113 };
114
115 &gpio3 {
116         status = "okay";
117 };
118
119 &ethernet {
120         status = "okay";
121         mtd-mac-address = <&factory 0x4>;
122         mediatek,portmap = "wllll";
123 };
124
125 &wmac {
126         ralink,mtd-eeprom = <&factory 0>;
127 };
128
129 &pinctrl {
130         state_default: pinctrl0 {
131                 gpio {
132                         ralink,group = "i2c", "wled", "uartf";
133                         ralink,function = "gpio";
134                 };
135         };
136 };
137
138 &pcie {
139         status = "okay";
140 };
141
142 &pcie0 {
143         wifi@0,0 {
144                 reg = <0x0000 0 0 0 0>;
145                 mediatek,mtd-eeprom = <&factory 0x8000>;
146         };
147 };