ramips: fix MAC address setup for Xiaomi MiWiFi Nano
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_hilink_hlk-7628n.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 = "hilink,hlk-7628n", "mediatek,mt7628an-soc";
11         model = "HILINK HLK-7628N";
12
13         chosen {
14                 bootargs = "console=ttyS0,57600";
15         };
16
17         keys {
18                 compatible = "gpio-keys";
19
20                 reset {
21                         label = "reset";
22                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
23                         linux,code = <KEY_RESTART>;
24                 };
25         };
26
27         leds {
28                 compatible = "gpio-leds";
29
30                 wlan {
31                         label = "hlk-7628n:green:wlan";
32                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
33                 };
34         };
35 };
36
37 &pinctrl {
38         state_default: pinctrl0 {
39                 gpio {
40                         ralink,group = "i2c";
41                         ralink,function = "gpio";
42                 };
43         };
44 };
45
46 &uart1 {
47         status = "okay";
48 };
49
50 &spi0 {
51         status = "okay";
52
53         flash@0 {
54                 compatible = "jedec,spi-nor";
55                 reg = <0>;
56                 spi-max-frequency = <10000000>;
57
58                 partitions {
59                         compatible = "fixed-partitions";
60                         #address-cells = <1>;
61                         #size-cells = <1>;
62
63                         partition@0 {
64                                 label = "u-boot";
65                                 reg = <0x0 0x30000>;
66                                 read-only;
67                         };
68
69                         partition@30000 {
70                                 label = "u-boot-env";
71                                 reg = <0x30000 0x10000>;
72                                 read-only;
73                         };
74
75                         factory: partition@40000 {
76                                 label = "factory";
77                                 reg = <0x40000 0x10000>;
78                                 read-only;
79                         };
80
81                         partition@50000 {
82                                 compatible = "denx,uimage";
83                                 label = "firmware";
84                                 reg = <0x50000 0x1fb0000>;
85                         };
86                 };
87         };
88 };
89
90 &wmac {
91         status = "okay";
92 };