ramips: add support for TP-Link RE200 v1
[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 &state_default {
24         wled_an {
25                 ralink,group = "wled_an";
26                 ralink,function = "gpio";
27         };
28 };
29
30 &spi0 {
31         status = "okay";
32
33         flash@0 {
34                 compatible = "jedec,spi-nor";
35                 reg = <0>;
36                 spi-max-frequency = <10000000>;
37
38                 partitions {
39                         compatible = "fixed-partitions";
40                         #address-cells = <1>;
41                         #size-cells = <1>;
42
43                         partition@0 {
44                                 label = "u-boot";
45                                 reg = <0x0 0x30000>;
46                                 read-only;
47                         };
48
49                         partition@30000 {
50                                 label = "u-boot-env";
51                                 reg = <0x30000 0x10000>;
52                                 read-only;
53                         };
54
55                         factory: partition@40000 {
56                                 label = "factory";
57                                 reg = <0x40000 0x10000>;
58                                 read-only;
59                         };
60
61                         partition@50000 {
62                                 compatible = "denx,uimage";
63                                 label = "firmware";
64                                 reg = <0x50000 0x7b0000>;
65                         };
66                 };
67         };
68 };
69
70 &i2c {
71         status = "okay";
72 };
73
74 &i2s {
75         status = "okay";
76 };
77
78 &uart1 {
79         status = "okay";
80 };
81
82 &uart2 {
83         status = "okay";
84 };
85
86 &gdma {
87         status = "okay";
88 };
89
90 &ethernet {
91         mtd-mac-address = <&factory 0x28>;
92 };
93
94 &wmac {
95         status = "okay";
96 };