edc3a7723a2618670bf215e918b22e4a9e3db277
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_unielec_u7621-06-64m.dts
1 // SPDX-License-Identifier: BSD-3-Clause
2 /*
3 * Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>.
4 * Copyright(c) 2017 Piotr Dymacz <pepe2k@gmail.com>.
5 * Copyright(c) 2018 Nishant Sharma <codemarauder@gmail.com>.
6 * All rights reserved.
7 */
8
9 #include "mt7621_unielec_u7621-06.dtsi"
10
11 / {
12 compatible = "unielec,u7621-06-64m", "unielec,u7621-06", "mediatek,mt7621-soc";
13 model = "UniElec U7621-06 (64M flash)";
14 };
15
16 &spi0 {
17 status = "okay";
18
19 flash@0 {
20 compatible = "jedec,spi-nor";
21 reg = <0>;
22 spi-max-frequency = <10000000>;
23
24 partitions {
25 compatible = "fixed-partitions";
26 #address-cells = <1>;
27 #size-cells = <1>;
28
29 partition@0 {
30 label = "bootloader";
31 reg = <0x0 0x30000>;
32 read-only;
33 };
34
35 partition@30000 {
36 label = "config";
37 reg = <0x30000 0x10000>;
38 read-only;
39 };
40
41 factory: partition@40000 {
42 label = "factory";
43 reg = <0x40000 0x10000>;
44 read-only;
45
46 nvmem-layout {
47 compatible = "fixed-layout";
48 #address-cells = <1>;
49 #size-cells = <1>;
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
61 firmware: partition@50000 {
62 compatible = "denx,uimage";
63 label = "firmware";
64 reg = <0x50000 0x3fb0000>;
65 };
66 };
67 };
68 };
69
70 &gmac0 {
71 nvmem-cells = <&macaddr_factory_e000>;
72 nvmem-cell-names = "mac-address";
73 };
74
75 &gmac1 {
76 nvmem-cells = <&macaddr_factory_e006>;
77 nvmem-cell-names = "mac-address";
78 };