ramips: add support for I-O DATA WN-DEAX1800GR
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_unielec_u7621-01-16m.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621_unielec_u7621-01.dtsi"
4
5 / {
6 compatible = "unielec,u7621-01-16m", "unielec,u7621-01", "mediatek,mt7621-soc";
7 model = "UniElec U7621-01 (16M flash)";
8 };
9
10 &spi0 {
11 status = "okay";
12
13 flash@0 {
14 compatible = "jedec,spi-nor";
15 reg = <0>;
16 spi-max-frequency = <14000000>;
17
18 partitions {
19 compatible = "fixed-partitions";
20 #address-cells = <1>;
21 #size-cells = <1>;
22
23 partition@0 {
24 label = "bootloader";
25 reg = <0x0 0x30000>;
26 read-only;
27 };
28
29 partition@30000 {
30 label = "config";
31 reg = <0x30000 0x10000>;
32 read-only;
33 };
34
35 factory: partition@40000 {
36 label = "factory";
37 reg = <0x40000 0x10000>;
38 read-only;
39 };
40
41 partition@50000 {
42 compatible = "denx,uimage";
43 label = "firmware";
44 reg = <0x50000 0xfb0000>;
45 };
46 };
47 };
48 };
49
50 &gmac0 {
51 nvmem-cells = <&macaddr_factory_e000>;
52 nvmem-cell-names = "mac-address";
53 };
54
55 &gmac1 {
56 nvmem-cells = <&macaddr_factory_e006>;
57 nvmem-cell-names = "mac-address";
58 };
59
60 &factory {
61 compatible = "nvmem-cells";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 macaddr_factory_e000: macaddr@e000 {
66 reg = <0xe000 0x6>;
67 };
68
69 macaddr_factory_e006: macaddr@e006 {
70 reg = <0xe006 0x6>;
71 };
72 };