987510d4869308944fcfa083bed0a2a67f2bf542
[openwrt/staging/jow.git] / target / linux / mediatek / dts / mt7986a-zyxel-ex5601-t0-stock.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";
15 compatible = "zyxel,ex5601-t0", "mediatek,mt7986a-rfb-snand";
16
17 memory@40000000 {
18 device_type = "memory";
19 reg = <0x40000000 0x20000000>;
20 };
21 };
22
23 &spi_nand {
24 mediatek,nmbm;
25 mediatek,bmt-max-ratio = <1>;
26 mediatek,bmt-max-reserved-blocks = <64>;
27 };
28
29 &nand_partitions {
30
31 partition@0 {
32 label = "BL2";
33 reg = <0x00000 0x0100000>;
34 read-only;
35 };
36
37 partition@100000 {
38 label = "u-boot-env";
39 reg = <0x0100000 0x0080000>;
40 };
41
42 factory: partition@180000 {
43 label = "Factory";
44 reg = <0x180000 0x0200000>;
45 read-only;
46 };
47
48 partition@380000 {
49 label = "FIP";
50 reg = <0x380000 0x01C0000>;
51 read-only;
52 };
53
54 partition@540000 {
55 label = "zloader";
56 reg = <0x540000 0x0040000>;
57 read-only;
58 };
59
60 partition@580000 {
61 label = "ubi";
62 reg = <0x580000 0x4000000>;
63 };
64
65 partition@4580000 {
66 label = "ubi2";
67 reg = <0x4580000 0x4000000>;
68 read-only;
69 };
70
71 partition@8580000 {
72 label = "zyubi";
73 reg = <0x8580000 0x15A80000>;
74 };
75 };
76
77 &factory {
78 compatible = "nvmem-cells";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 nvmem-layout {
83 compatible = "fixed-layout";
84 #address-cells = <1>;
85
86 eeprom_factory: eeprom@0 {
87 #size-cells = <1>;
88 reg = <0x0 0x1000>;
89 };
90
91 macaddr_factory_0004: macaddr@0004 {
92 compatible = "mac-base";
93 reg = <0x0004 0x6>;
94 #nvmem-cell-cells = <1>;
95 };
96
97 macaddr_factory_0024: macaddr@0024 {
98 compatible = "mac-base";
99 reg = <0x0024 0x6>;
100 #nvmem-cell-cells = <1>;
101 };
102
103 macaddr_factory_002a: macaddr@002a {
104 compatible = "mac-base";
105 reg = <0x002a 0x6>;
106 #nvmem-cell-cells = <1>;
107 };
108 };
109 };
110
111 &gmac0 {
112 nvmem-cells = <&macaddr_factory_002a 0>;
113 nvmem-cell-names = "mac-address";
114 };
115
116 &gmac1 {
117 nvmem-cells = <&macaddr_factory_0024 0>;
118 nvmem-cell-names = "mac-address";
119 };
120
121 &wifi {
122 nvmem-cells = <&eeprom_factory>;
123 nvmem-cell-names = "eeprom";
124 };