blob: 1a8a8cc7f1bb6c355922530fb81ddf88d6ea10b3 [file] [log] [blame]
Simon Glass4a56f102015-01-27 22:13:47 -07001/*
2 * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7/dts-v1/;
8
Gabriel Huauf8135482015-05-25 22:27:37 -07009#include <dt-bindings/gpio/x86-gpio.h>
Simon Glass7133c392015-08-13 10:36:16 -060010#include <dt-bindings/interrupt-router/intel-irq.h>
Gabriel Huauf8135482015-05-25 22:27:37 -070011
Simon Glass4a56f102015-01-27 22:13:47 -070012/include/ "skeleton.dtsi"
13/include/ "serial.dtsi"
Bin Meng770fd332015-07-15 16:23:39 +080014/include/ "rtc.dtsi"
Bin Meng38de0202015-11-13 00:11:22 -080015/include/ "tsc_timer.dtsi"
Simon Glass4a56f102015-01-27 22:13:47 -070016
17/ {
18 model = "Intel Minnowboard Max";
19 compatible = "intel,minnowmax", "intel,baytrail";
20
21 aliases {
22 serial0 = &serial;
Bin Meng4f8d4e92016-01-27 00:56:34 -080023 spi0 = &spi;
Simon Glass4a56f102015-01-27 22:13:47 -070024 };
25
26 config {
27 silent_console = <0>;
28 };
29
Gabriel Huauf8135482015-05-25 22:27:37 -070030 pch_pinctrl {
31 compatible = "intel,x86-pinctrl";
Bin Mengde6d1982016-06-08 05:07:33 -070032 reg = <0 0>;
Gabriel Huauf8135482015-05-25 22:27:37 -070033
Simon Glass1b464852015-08-22 15:58:53 -060034 /* GPIO E0 */
35 soc_gpio_s5_0@0 {
36 gpio-offset = <0x80 0>;
37 pad-offset = <0x1d0>;
38 mode-gpio;
39 output-value = <0>;
40 direction = <PIN_OUTPUT>;
41 };
42
43 /* GPIO E1 */
44 soc_gpio_s5_1@0 {
45 gpio-offset = <0x80 1>;
46 pad-offset = <0x210>;
47 mode-gpio;
48 output-value = <0>;
49 direction = <PIN_OUTPUT>;
50 };
51
52 /* GPIO E2 */
53 soc_gpio_s5_2@0 {
54 gpio-offset = <0x80 2>;
55 pad-offset = <0x1e0>;
56 mode-gpio;
57 output-value = <0>;
58 direction = <PIN_OUTPUT>;
59 };
60
Gabriel Huauf8135482015-05-25 22:27:37 -070061 pin_usb_host_en0@0 {
62 gpio-offset = <0x80 8>;
63 pad-offset = <0x260>;
64 mode-gpio;
65 output-value = <1>;
66 direction = <PIN_OUTPUT>;
67 };
68
69 pin_usb_host_en1@0 {
70 gpio-offset = <0x80 9>;
Simon Glassbcab1372015-08-22 15:58:56 -060071 pad-offset = <0x250>;
Gabriel Huauf8135482015-05-25 22:27:37 -070072 mode-gpio;
73 output-value = <1>;
74 direction = <PIN_OUTPUT>;
75 };
Bin Menge4d977f2016-06-08 05:07:35 -070076
77 /*
78 * As of today, the latest version FSP (gold4) for BayTrail
79 * misses the PAD configuration of the SD controller's Card
80 * Detect signal. The default PAD value for the CD pin sets
81 * the pin to work in GPIO mode, which causes card detect
82 * status cannot be reflected by the Present State register
83 * in the SD controller (bit 16 & bit 18 are always zero).
84 *
85 * Configure this pin to function 1 (SD controller).
86 */
87 sdmmc3_cd@0 {
88 pad-offset = <0x3a0>;
89 mode-func = <1>;
90 };
Gabriel Huauf8135482015-05-25 22:27:37 -070091 };
92
Simon Glass4a56f102015-01-27 22:13:47 -070093 chosen {
94 stdout-path = "/serial";
95 };
96
Simon Glass1eaaf6c2015-04-29 22:26:03 -060097 cpus {
98 #address-cells = <1>;
99 #size-cells = <0>;
100
101 cpu@0 {
102 device_type = "cpu";
103 compatible = "intel,baytrail-cpu";
104 reg = <0>;
105 intel,apic-id = <0>;
106 };
107
108 cpu@1 {
109 device_type = "cpu";
110 compatible = "intel,baytrail-cpu";
111 reg = <1>;
112 intel,apic-id = <4>;
113 };
114
115 };
116
Simon Glass0e87edc2015-07-03 18:28:26 -0600117 pci {
118 compatible = "intel,pci-baytrail", "pci-x86";
119 #address-cells = <3>;
120 #size-cells = <2>;
121 u-boot,dm-pre-reloc;
Simon Glass7133c392015-08-13 10:36:16 -0600122 ranges = <0x02000000 0x0 0x80000000 0x80000000 0 0x40000000
123 0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000
124 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
125
Simon Glass32761632016-01-18 20:19:21 -0700126 pch@1f,0 {
Simon Glass7133c392015-08-13 10:36:16 -0600127 reg = <0x0000f800 0 0 0 0>;
Simon Glass32761632016-01-18 20:19:21 -0700128 compatible = "pci8086,0f1c", "intel,pch9";
Bin Meng6e916cc2016-02-01 01:40:47 -0800129 #address-cells = <1>;
130 #size-cells = <1>;
Simon Glass7133c392015-08-13 10:36:16 -0600131
Simon Glass32761632016-01-18 20:19:21 -0700132 irq-router {
133 compatible = "intel,irq-router";
134 intel,pirq-config = "ibase";
135 intel,ibase-offset = <0x50>;
Bin Meng0651f622016-05-07 07:46:15 -0700136 intel,actl-addr = <0>;
Simon Glass32761632016-01-18 20:19:21 -0700137 intel,pirq-link = <8 8>;
138 intel,pirq-mask = <0xdee0>;
139 intel,pirq-routing = <
140 /* BayTrail PCI devices */
141 PCI_BDF(0, 2, 0) INTA PIRQA
142 PCI_BDF(0, 3, 0) INTA PIRQA
143 PCI_BDF(0, 16, 0) INTA PIRQA
144 PCI_BDF(0, 17, 0) INTA PIRQA
145 PCI_BDF(0, 18, 0) INTA PIRQA
146 PCI_BDF(0, 19, 0) INTA PIRQA
147 PCI_BDF(0, 20, 0) INTA PIRQA
148 PCI_BDF(0, 21, 0) INTA PIRQA
149 PCI_BDF(0, 22, 0) INTA PIRQA
150 PCI_BDF(0, 23, 0) INTA PIRQA
151 PCI_BDF(0, 24, 0) INTA PIRQA
152 PCI_BDF(0, 24, 1) INTC PIRQC
153 PCI_BDF(0, 24, 2) INTD PIRQD
154 PCI_BDF(0, 24, 3) INTB PIRQB
155 PCI_BDF(0, 24, 4) INTA PIRQA
156 PCI_BDF(0, 24, 5) INTC PIRQC
157 PCI_BDF(0, 24, 6) INTD PIRQD
158 PCI_BDF(0, 24, 7) INTB PIRQB
159 PCI_BDF(0, 26, 0) INTA PIRQA
160 PCI_BDF(0, 27, 0) INTA PIRQA
161 PCI_BDF(0, 28, 0) INTA PIRQA
162 PCI_BDF(0, 28, 1) INTB PIRQB
163 PCI_BDF(0, 28, 2) INTC PIRQC
164 PCI_BDF(0, 28, 3) INTD PIRQD
165 PCI_BDF(0, 29, 0) INTA PIRQA
166 PCI_BDF(0, 30, 0) INTA PIRQA
167 PCI_BDF(0, 30, 1) INTD PIRQD
168 PCI_BDF(0, 30, 2) INTB PIRQB
169 PCI_BDF(0, 30, 3) INTC PIRQC
170 PCI_BDF(0, 30, 4) INTD PIRQD
171 PCI_BDF(0, 30, 5) INTB PIRQB
172 PCI_BDF(0, 31, 3) INTB PIRQB
173
174 /*
175 * PCIe root ports downstream
176 * interrupts
177 */
178 PCI_BDF(1, 0, 0) INTA PIRQA
179 PCI_BDF(1, 0, 0) INTB PIRQB
180 PCI_BDF(1, 0, 0) INTC PIRQC
181 PCI_BDF(1, 0, 0) INTD PIRQD
182 PCI_BDF(2, 0, 0) INTA PIRQB
183 PCI_BDF(2, 0, 0) INTB PIRQC
184 PCI_BDF(2, 0, 0) INTC PIRQD
185 PCI_BDF(2, 0, 0) INTD PIRQA
186 PCI_BDF(3, 0, 0) INTA PIRQC
187 PCI_BDF(3, 0, 0) INTB PIRQD
188 PCI_BDF(3, 0, 0) INTC PIRQA
189 PCI_BDF(3, 0, 0) INTD PIRQB
190 PCI_BDF(4, 0, 0) INTA PIRQD
191 PCI_BDF(4, 0, 0) INTB PIRQA
192 PCI_BDF(4, 0, 0) INTC PIRQB
193 PCI_BDF(4, 0, 0) INTD PIRQC
194 >;
195 };
196
Bin Meng4f8d4e92016-01-27 00:56:34 -0800197 spi: spi {
Simon Glass32761632016-01-18 20:19:21 -0700198 #address-cells = <1>;
199 #size-cells = <0>;
Bin Mengd9406672016-02-01 01:40:37 -0800200 compatible = "intel,ich9-spi";
Simon Glass32761632016-01-18 20:19:21 -0700201 spi-flash@0 {
202 #address-cells = <1>;
203 #size-cells = <1>;
204 reg = <0>;
205 compatible = "stmicro,n25q064a",
206 "spi-flash";
207 memory-map = <0xff800000 0x00800000>;
208 rw-mrc-cache {
209 label = "rw-mrc-cache";
210 reg = <0x006f0000 0x00010000>;
211 };
212 };
213 };
Bin Meng6e916cc2016-02-01 01:40:47 -0800214
215 gpioa {
216 compatible = "intel,ich6-gpio";
217 u-boot,dm-pre-reloc;
218 reg = <0 0x20>;
219 bank-name = "A";
220 };
221
222 gpiob {
223 compatible = "intel,ich6-gpio";
224 u-boot,dm-pre-reloc;
225 reg = <0x20 0x20>;
226 bank-name = "B";
227 };
228
229 gpioc {
230 compatible = "intel,ich6-gpio";
231 u-boot,dm-pre-reloc;
232 reg = <0x40 0x20>;
233 bank-name = "C";
234 };
235
236 gpiod {
237 compatible = "intel,ich6-gpio";
238 u-boot,dm-pre-reloc;
239 reg = <0x60 0x20>;
240 bank-name = "D";
241 };
242
243 gpioe {
244 compatible = "intel,ich6-gpio";
245 u-boot,dm-pre-reloc;
246 reg = <0x80 0x20>;
247 bank-name = "E";
248 };
249
250 gpiof {
251 compatible = "intel,ich6-gpio";
252 u-boot,dm-pre-reloc;
253 reg = <0xA0 0x20>;
254 bank-name = "F";
255 };
Simon Glass7133c392015-08-13 10:36:16 -0600256 };
Simon Glass0e87edc2015-07-03 18:28:26 -0600257 };
258
Andrew Bradford74fdb582015-08-07 08:36:35 -0400259 fsp {
260 compatible = "intel,baytrail-fsp";
261 fsp,mrc-init-tseg-size = <0>;
262 fsp,mrc-init-mmio-size = <0x800>;
263 fsp,mrc-init-spd-addr1 = <0xa0>;
264 fsp,mrc-init-spd-addr2 = <0xa2>;
Bin Meng7bfe2b52016-06-08 05:07:34 -0700265 fsp,emmc-boot-mode = <1>;
Andrew Bradford74fdb582015-08-07 08:36:35 -0400266 fsp,enable-sdio;
267 fsp,enable-sdcard;
268 fsp,enable-hsuart1;
269 fsp,enable-spi;
270 fsp,enable-sata;
271 fsp,sata-mode = <1>;
272 fsp,enable-lpe;
273 fsp,lpss-sio-enable-pci-mode;
274 fsp,enable-dma0;
275 fsp,enable-dma1;
276 fsp,enable-i2c0;
277 fsp,enable-i2c1;
278 fsp,enable-i2c2;
279 fsp,enable-i2c3;
280 fsp,enable-i2c4;
281 fsp,enable-i2c5;
282 fsp,enable-i2c6;
283 fsp,enable-pwm0;
284 fsp,enable-pwm1;
285 fsp,igd-dvmt50-pre-alloc = <2>;
286 fsp,aperture-size = <2>;
287 fsp,gtt-size = <2>;
288 fsp,serial-debug-port-address = <0x3f8>;
289 fsp,serial-debug-port-type = <1>;
290 fsp,scc-enable-pci-mode;
291 fsp,os-selection = <4>;
292 fsp,emmc45-ddr50-enabled;
293 fsp,emmc45-retune-timer-value = <8>;
294 fsp,enable-igd;
295 fsp,enable-memory-down;
296 fsp,memory-down-params {
297 compatible = "intel,baytrail-fsp-mdp";
298 fsp,dram-speed = <1>;
299 fsp,dram-type = <1>;
300 fsp,dimm-0-enable;
301 fsp,dimm-width = <1>;
302 fsp,dimm-density = <2>;
303 fsp,dimm-bus-width = <3>;
304 fsp,dimm-sides = <0>;
305 fsp,dimm-tcl = <0xb>;
306 fsp,dimm-trpt-rcd = <0xb>;
307 fsp,dimm-twr = <0xc>;
308 fsp,dimm-twtr = <6>;
309 fsp,dimm-trrd = <6>;
310 fsp,dimm-trtp = <6>;
311 fsp,dimm-tfaw = <0x14>;
312 };
313 };
314
Simon Glass4a56f102015-01-27 22:13:47 -0700315 microcode {
316 update@0 {
Bin Mengae864552016-05-23 15:25:20 +0800317#include "microcode/m0130673325.dtsi"
Simon Glass4a56f102015-01-27 22:13:47 -0700318 };
Bin Meng35dffd52015-08-15 14:37:50 -0600319 update@1 {
Bin Mengae864552016-05-23 15:25:20 +0800320#include "microcode/m0130679907.dtsi"
Bin Meng35dffd52015-08-15 14:37:50 -0600321 };
Simon Glass4a56f102015-01-27 22:13:47 -0700322 };
323
324};