ecdfa13e69cca05b5bb16e8a6bc5b42d88e52e31
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7628an_rakwireless_rak633.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "rakwireless,rak633", "mediatek,mt7628an-soc";
10 model = "Rakwireless RAK633";
11
12 leds {
13 compatible = "gpio-leds";
14
15 wifi {
16 label = "blue:wifi";
17 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
18 };
19 };
20 };
21
22 &state_default {
23 wled_an {
24 groups = "wled_an";
25 function = "gpio";
26 };
27 };
28
29 &spi0 {
30 status = "okay";
31
32 flash@0 {
33 compatible = "jedec,spi-nor";
34 reg = <0>;
35 spi-max-frequency = <10000000>;
36
37 partitions {
38 compatible = "fixed-partitions";
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 partition@0 {
43 label = "u-boot";
44 reg = <0x0 0x30000>;
45 read-only;
46 };
47
48 partition@30000 {
49 label = "u-boot-env";
50 reg = <0x30000 0x10000>;
51 read-only;
52 };
53
54 factory: partition@40000 {
55 compatible = "nvmem-cells";
56 label = "factory";
57 reg = <0x40000 0x10000>;
58 #address-cells = <1>;
59 #size-cells = <1>;
60 read-only;
61
62 eeprom_factory_0: eeprom@0 {
63 reg = <0x0 0x400>;
64 };
65
66 macaddr_factory_28: macaddr@28 {
67 reg = <0x28 0x6>;
68 };
69 };
70
71 partition@50000 {
72 compatible = "denx,uimage";
73 label = "firmware";
74 reg = <0x50000 0x7b0000>;
75 };
76 };
77 };
78 };
79
80 &i2c {
81 status = "okay";
82 };
83
84 &i2s {
85 status = "okay";
86 };
87
88 &uart1 {
89 status = "okay";
90 };
91
92 &uart2 {
93 status = "okay";
94 };
95
96 &gdma {
97 status = "okay";
98 };
99
100 &ethernet {
101 nvmem-cells = <&macaddr_factory_28>;
102 nvmem-cell-names = "mac-address";
103 };
104
105 &wmac {
106 status = "okay";
107
108 nvmem-cells = <&eeprom_factory_0>;
109 nvmem-cell-names = "eeprom";
110 };