42cf121f3b0c106f8fbfe408cca9d540e3df1004
[openwrt/staging/hauke.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 compatible = "nvmem-cells";
37 label = "factory";
38 reg = <0x40000 0x10000>;
39 #address-cells = <1>;
40 #size-cells = <1>;
41 read-only;
42
43 eeprom_factory_0: eeprom@0 {
44 reg = <0x0 0x400>;
45 };
46
47 eeprom_factory_8000: eeprom@8000 {
48 reg = <0x8000 0x200>;
49 };
50
51 macaddr_factory_e000: macaddr@e000 {
52 reg = <0xe000 0x6>;
53 };
54
55 macaddr_factory_e006: macaddr@e006 {
56 reg = <0xe006 0x6>;
57 };
58 };
59
60 partition@50000 {
61 compatible = "denx,uimage";
62 label = "firmware";
63 reg = <0x50000 0xfb0000>;
64 };
65 };
66 };
67 };
68
69 &gmac0 {
70 nvmem-cells = <&macaddr_factory_e000>;
71 nvmem-cell-names = "mac-address";
72 };
73
74 &gmac1 {
75 nvmem-cells = <&macaddr_factory_e006>;
76 nvmem-cell-names = "mac-address";
77 };