a300e2052d97a620eab3da6f2b2b45cc0fda1934
[openwrt/staging/nbd.git] / target / linux / mediatek / dts / mt7986a-zyxel-ex5601-t0-ubootmod.dts
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /*
3 * Copyright (C) 2021 MediaTek Inc.
4 * Author: Sam.Shih <sam.shih@mediatek.com>
5 */
6
7 /dts-v1/;
8 #include "mt7986a.dtsi"
9 #include "mt7986a-zyxel-ex5601-t0-common.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12
13 / {
14 model = "Zyxel EX5601-T0 ubootmod";
15 compatible = "zyxel,ex5601-t0-ubootmod", "mediatek,mt7986a";
16 memory@40000000 {
17 device_type = "memory";
18 reg = <0x40000000 0x20000000>;
19 };
20 };
21
22 &nand_partitions {
23 partition@0 {
24 label = "bl2";
25 reg = <0x0 0x100000>;
26 read-only;
27 };
28
29 partition@100000 {
30 label = "u-boot-env";
31 reg = <0x0100000 0x0080000>;
32 read-only;
33 };
34
35 factory: partition@180000 {
36 label = "Factory";
37 reg = <0x180000 0x0200000>;
38 read-only;
39 };
40
41 partition@380000 {
42 label = "fip";
43 reg = <0x380000 0x0200000>;
44 read-only;
45 };
46
47 partition@540000 {
48 label = "zloader";
49 reg = <0x540000 0x0040000>;
50 read-only;
51 };
52
53 partition@580000 {
54 label = "ubi";
55 reg = <0x580000 0x1da80000>;
56 };
57 };
58
59 &factory {
60 compatible = "nvmem-cells";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 nvmem-layout {
65 compatible = "fixed-layout";
66 #address-cells = <1>;
67
68 eeprom_factory: eeprom@0 {
69 #size-cells = <1>;
70 reg = <0x0 0x1000>;
71 };
72
73 macaddr_factory_0004: macaddr@0004 {
74 compatible = "mac-base";
75 reg = <0x0004 0x6>;
76 #nvmem-cell-cells = <1>;
77 };
78
79 macaddr_factory_0024: macaddr@0024 {
80 compatible = "mac-base";
81 reg = <0x0024 0x6>;
82 #nvmem-cell-cells = <1>;
83 };
84
85 macaddr_factory_002a: macaddr@002a {
86 compatible = "mac-base";
87 reg = <0x002a 0x6>;
88 #nvmem-cell-cells = <1>;
89 };
90 };
91 };
92
93 &gmac0 {
94 nvmem-cells = <&macaddr_factory_002a 0>;
95 nvmem-cell-names = "mac-address";
96 };
97
98 &gmac1 {
99 nvmem-cells = <&macaddr_factory_0024 0>;
100 nvmem-cell-names = "mac-address";
101 };
102
103 &wifi {
104 nvmem-cells = <&eeprom_factory>;
105 nvmem-cell-names = "eeprom";
106 };