f196432111b6886a18efe95094e52986243f41d8
[openwrt/staging/hauke.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
47 firmware: partition@50000 {
48 compatible = "denx,uimage";
49 label = "firmware";
50 reg = <0x50000 0x3fb0000>;
51 };
52 };
53 };
54 };
55
56 &gmac0 {
57 nvmem-cells = <&macaddr_factory_e000>;
58 nvmem-cell-names = "mac-address";
59 };
60
61 &gmac1 {
62 nvmem-cells = <&macaddr_factory_e006>;
63 nvmem-cell-names = "mac-address";
64 };
65
66 &factory {
67 compatible = "nvmem-cells";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 macaddr_factory_e000: macaddr@e000 {
72 reg = <0xe000 0x6>;
73 };
74
75 macaddr_factory_e006: macaddr@e006 {
76 reg = <0xe006 0x6>;
77 };
78 };