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