ramips: fix WiFi MAC addresses for D-Link DIR-810L
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_skylab_skw92a.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7628an.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 /{
10         compatible = "skylab,skw92a", "mediatek,mt7628an-soc";
11         model = "SKYLAB SKW92A";
12
13         aliases {
14                 led-boot = &led_power;
15                 led-failsafe = &led_power;
16         };
17
18         chosen {
19                 bootargs = "console=ttyS0,57600";
20         };
21
22         leds {
23                 compatible = "gpio-leds";
24
25                 led_power: wps {
26                         label = "skw92a:green:wps";
27                         gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
28                 };
29
30                 wlan {
31                         label = "skw92a:green:wlan";
32                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
33                 };
34         };
35
36         keys {
37                 compatible = "gpio-keys-polled";
38                 poll-interval = <20>;
39
40                 reset {
41                         label = "reset";
42                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
43                         linux,code = <KEY_RESTART>;
44                 };
45         };
46 };
47
48 &pinctrl {
49         state_default: pinctrl0 {
50                 gpio {
51                         ralink,group = "wdt", "refclk", "wled_an";
52                         ralink,function = "gpio";
53                 };
54         };
55 };
56
57 &ethernet {
58         mtd-mac-address = <&factory 0x28>;
59 };
60
61 &wmac {
62         status = "okay";
63         ralink,mtd-eeprom = <&factory 0x0>;
64 };
65
66 &spi0 {
67         status = "okay";
68
69         flash@0 {
70                 compatible = "jedec,spi-nor";
71                 reg = <0>;
72                 spi-max-frequency = <10000000>;
73
74                 partitions {
75                         compatible = "fixed-partitions";
76                         #address-cells = <1>;
77                         #size-cells = <1>;
78
79                         partition@0 {
80                                 label = "u-boot";
81                                 reg = <0x0 0x30000>;
82                                 read-only;
83                         };
84
85                         partition@30000 {
86                                 label = "u-boot-env";
87                                 reg = <0x30000 0x10000>;
88                                 read-only;
89                         };
90
91                         factory: partition@40000 {
92                                 label = "factory";
93                                 reg = <0x40000 0x10000>;
94                                 read-only;
95                         };
96
97                         partition@50000 {
98                                 label = "firmware";
99                                 reg = <0x50000 0xfb0000>;
100                                 compatible = "denx,uimage";
101                         };
102                 };
103         };
104 };
105
106 &uart1 {
107         status = "okay";
108 };
109
110 &ehci {
111         status = "okay";
112 };
113
114 &ohci {
115         status = "okay";
116 };