ramips: fix WiFi MAC addresses for D-Link DIR-810L
[oweals/openwrt.git] / target / linux / ramips / dts / rt3052_omnima_miniembwifi.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "omnima,miniembwifi", "ralink,rt3052-soc";
10         model = "Omnima MiniEMBWiFi";
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         leds {
20                 compatible = "gpio-leds";
21
22                 led_status: status {
23                         label = "miniembwifi:green:status";
24                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
25                 };
26
27                 wlan {
28                         label = "miniembwifi:green:wlan";
29                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
30                 };
31         };
32
33         keys {
34                 compatible = "gpio-keys-polled";
35                 poll-interval = <20>;
36
37                 reset {
38                         label = "reset";
39                         gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
40                         linux,code = <KEY_RESTART>;
41                 };
42         };
43
44         cfi@1f000000 {
45                 compatible = "cfi-flash";
46                 reg = <0x1f000000 0x800000>;
47                 bank-width = <2>;
48                 device-width = <2>;
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 0x30000>;
58                                 read-only;
59                         };
60
61                         partition@30000 {
62                                 label = "u-boot-env";
63                                 reg = <0x30000 0x10000>;
64                                 read-only;
65                         };
66
67                         factory: partition@40000 {
68                                 label = "factory";
69                                 reg = <0x40000 0x10000>;
70                                 read-only;
71                         };
72
73                         partition@50000 {
74                                 compatible = "denx,uimage";
75                                 label = "firmware";
76                                 reg = <0x50000 0x7b0000>;
77                         };
78                 };
79         };
80 };
81
82 &pinctrl {
83         state_default: pinctrl0 {
84                 gpio {
85                         ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
86                         ralink,function = "gpio";
87                 };
88         };
89 };
90
91 &ethernet {
92         mtd-mac-address = <&factory 0x28>;
93 };
94
95 &esw {
96         mediatek,portmap = <0x2f>;
97 };
98
99 &wmac {
100         ralink,mtd-eeprom = <&factory 0>;
101 };
102
103 &otg {
104         status = "okay";
105 };