aboutsummaryrefslogtreecommitdiff
path: root/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts
blob: 62ce50ed232f15b4de428d07cf39b5e13bf8fc05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/*
 * Copyright (C) 2021 MediaTek Inc.
 * Author: Sam.Shih <sam.shih@mediatek.com>
 */

/dts-v1/;
#include "mt7986a.dtsi"
#include "mt7986a-zyxel-ex5601-t0-common.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
	model = "Zyxel EX5601-T0 ubootmod";
	compatible = "zyxel,ex5601-t0-ubootmod", "mediatek,mt7986a";
	memory@40000000 {
		device_type = "memory";
		reg = <0x40000000 0x20000000>;
	};
};

&nand_partitions {
	partition@0 {
		label = "bl2";
		reg = <0x0 0x100000>;
		read-only;
	};

	partition@100000 {
		label = "u-boot-env";
		reg = <0x0100000 0x0080000>;
		read-only;
	};

	factory: partition@180000 {
		label = "Factory";
		reg = <0x180000 0x0200000>;
		read-only;

		nvmem-layout {
			compatible = "fixed-layout";
			#address-cells = <1>; 
			#size-cells = <1>;

			eeprom_factory: eeprom@0 {
				#size-cells = <1>;
				reg = <0x0 0x1000>;
			};

			macaddr_factory_0004: macaddr@0004 {
				compatible = "mac-base";
				reg = <0x0004 0x6>;
				#nvmem-cell-cells = <1>;
			};

			macaddr_factory_0024: macaddr@0024 {
				compatible = "mac-base";
				reg = <0x0024 0x6>;
				#nvmem-cell-cells = <1>;
			};

			macaddr_factory_002a: macaddr@002a {
				compatible = "mac-base";
				reg = <0x002a 0x6>;
				#nvmem-cell-cells = <1>;
			};
		};
	};

	partition@380000 {
		label = "fip";
		reg = <0x380000 0x0200000>;
		read-only;
	};
			
	partition@540000 {
		label = "zloader";
		reg = <0x540000 0x0040000>;
		read-only;
	};
			
	partition@580000 {
		label = "ubi";
		reg = <0x580000 0x1da80000>;
	};
};

&gmac0 {
	nvmem-cells = <&macaddr_factory_002a 0>;
	nvmem-cell-names = "mac-address";
};

&gmac1 {
	nvmem-cells = <&macaddr_factory_0024 0>;
	nvmem-cell-names = "mac-address";
};

&wifi {
	nvmem-cells = <&eeprom_factory>;
	nvmem-cell-names = "eeprom";
};