blob: 1f4125c2c35d2b30c6004a10e9e3aef21375121c [file] [log] [blame]
developerfd40db22021-04-29 10:08:25 +08001/dts-v1/;
2#include "mt7986-fpga.dtsi"
3/ {
4 model = "MediaTek MT7986 FPGA (UBI)";
5 compatible = "mediatek,mt7986-fpga,ubi";
6 chosen {
7 bootargs = "console=ttyS0,115200n1 loglevel=8 \
8 earlycon=uart8250,mmio32,0x11002000";
9 };
10
11 memory {
12 // fpga ddr2: 128MB*2
13 reg = <0 0x40000000 0 0x10000000>;
14 };
15
16 wsys_adie: wsys_adie@0 {
17 // fpga cases need to manual change adie_id / sku_type for dvt only
18 compatible = "mediatek,rebb-mt7986-adie";
19 adie_id = <7976>;
20 sku_type = <6000>;
21 };
22};
23
24&uart0 {
25 status = "okay";
26};
27
28&spi0 {
29 pinctrl-names = "default";
30 pinctrl-0 = <&spi_flash_pins>;
31 status = "okay";
32 spi_nor@0 {
33 #address-cells = <1>;
34 #size-cells = <1>;
35 compatible = "jedec,spi-nor";
36 reg = <0>;
37 spi-max-frequency = <500000>;
38
39 partition@00000 {
40 label = "BL2";
41 reg = <0x00000 0x0060000>;
42 };
43 partition@60000 {
44 label = "u-boot-env";
45 reg = <0x60000 0x0010000>;
46 };
47 partition@70000 {
48 label = "Factory";
49 reg = <0x70000 0x00B0000>;
50 };
51 partition@120000 {
52 label = "BL31";
53 reg = <0x120000 0x0010000>;
54 };
55 partition@130000 {
56 label = "u-boot";
57 reg = <0x130000 0x00D0000>;
58 };
59 partition@200000 {
60 label = "firmware";
61 reg = <0x200000 0xE00000>;
62 };
63 };
64 spi_nand@1 {
65 #address-cells = <1>;
66 #size-cells = <1>;
67 compatible = "spi-nand";
68 reg = <1>;
69 spi-max-frequency = <500000>;
70
71 partition@00000 {
72 label = "BL2";
73 reg = <0x00000 0x0100000>;
74 };
75 partition@100000 {
76 label = "u-boot-env";
77 reg = <0x100000 0x0080000>;
78 };
79 partition@180000 {
80 label = "Factory";
81 reg = <0x180000 0x00200000>;
82 };
83 partition@380000 {
84 label = "BL31";
85 reg = <0x380000 0x0080000>;
86 };
87 partition@400000 {
88 label = "u-boot";
89 reg = <0x400000 0x0180000>;
90 };
91 partition@580000 {
92 label = "firmware";
93 reg = <0x580000 0x7a80000>;
94 };
95 };
96};
97
98&spi1 {
99 pinctrl-names = "default";
100 /* pin shared with snfi */
101 pinctrl-0 = <&spic_pins>;
102 status = "disabled";
103};
104
105&pio {
106 spi_flash_pins: spi0-pins {
107 mux {
108 function = "flash";
109 groups = "spi0", "spi0_wp_hold";
110 };
111 };
112
113 snfi_pins: snfi-pins {
114 mux {
115 function = "flash";
116 groups = "snfi";
117 };
118 };
119
120 spic_pins: spi1-pins {
121 mux {
122 function = "spi";
123 groups = "spi1_1";
124 };
125 };
126};
127
128&watchdog {
129 status = "disabled";
130};
131
132&snand {
133 pinctrl-names = "default";
134 /* pin shared with spic */
135 pinctrl-0 = <&snfi_pins>;
136 status = "okay";
137 mediatek,quad-spi;
138
139 partitions {
140 compatible = "fixed-partitions";
141 #address-cells = <1>;
142 #size-cells = <1>;
143
144 partition@0 {
145 label = "BL2";
146 reg = <0x00000 0x0100000>;
147 read-only;
148 };
149
150 partition@100000 {
151 label = "u-boot-env";
152 reg = <0x0100000 0x0080000>;
153 };
154
155 partition@180000 {
156 label = "Factory";
157 reg = <0x180000 0x0200000>;
158 };
159
160 partition@380000 {
161 label = "FIP";
162 reg = <0x380000 0x0200000>;
163 };
164
165 partition@580000 {
166 label = "ubi";
167 reg = <0x580000 0x4000000>;
168 };
169 };
170};