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