ramips: fix MAC address setup for Xiaomi MiWiFi Nano
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_rakwireless_rak633.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 = "rakwireless,rak633", "mediatek,mt7628an-soc";
11         model = "Rakwireless RAK633";
12
13         leds {
14                 compatible = "gpio-leds";
15
16                 wifi {
17                         label = "rak633:blue:wifi";
18                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
19                 };
20         };
21 };
22
23 &pinctrl {
24         state_default: pinctrl0 {
25                 wled_an {
26                         ralink,group = "wled_an";
27                         ralink,function = "gpio";
28                 };
29         };
30 };
31
32 &spi0 {
33         status = "okay";
34
35         flash@0 {
36                 compatible = "jedec,spi-nor";
37                 reg = <0>;
38                 spi-max-frequency = <10000000>;
39
40                 partitions {
41                         compatible = "fixed-partitions";
42                         #address-cells = <1>;
43                         #size-cells = <1>;
44
45                         partition@0 {
46                                 label = "u-boot";
47                                 reg = <0x0 0x30000>;
48                                 read-only;
49                         };
50
51                         partition@30000 {
52                                 label = "u-boot-env";
53                                 reg = <0x30000 0x10000>;
54                                 read-only;
55                         };
56
57                         factory: partition@40000 {
58                                 label = "factory";
59                                 reg = <0x40000 0x10000>;
60                                 read-only;
61                         };
62
63                         partition@50000 {
64                                 compatible = "denx,uimage";
65                                 label = "firmware";
66                                 reg = <0x50000 0x7b0000>;
67                         };
68                 };
69         };
70 };
71
72 &i2c {
73         status = "okay";
74 };
75
76 &i2s {
77         status = "okay";
78 };
79
80 &uart1 {
81         status = "okay";
82 };
83
84 &uart2 {
85         status = "okay";
86 };
87
88 &gdma {
89         status = "okay";
90 };
91
92 &ethernet {
93         mtd-mac-address = <&factory 0x28>;
94 };
95
96 &wmac {
97         status = "okay";
98         ralink,mtd-eeprom = <&factory 0x4>;
99 };