blob: 0c314e068875e8901193c23e4af64904f3b7ae18 [file] [log] [blame]
Bin Meng9b911be2015-07-30 03:49:17 -07001/*
2 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7/dts-v1/;
8
Bin Meng5e74e5a2017-05-31 01:04:14 -07009#include <asm/arch-baytrail/fsp/fsp_configs.h>
Bin Meng9b911be2015-07-30 03:49:17 -070010#include <dt-bindings/gpio/x86-gpio.h>
Bin Mengfe3fbd32015-07-30 03:49:18 -070011#include <dt-bindings/interrupt-router/intel-irq.h>
Bin Meng9b911be2015-07-30 03:49:17 -070012
13/include/ "skeleton.dtsi"
Simon Glass6b44ae62015-11-11 10:05:43 -070014/include/ "keyboard.dtsi"
Bin Meng9b911be2015-07-30 03:49:17 -070015/include/ "serial.dtsi"
16/include/ "rtc.dtsi"
Bin Meng80af3982015-11-13 00:11:22 -080017/include/ "tsc_timer.dtsi"
Bin Meng2d3c5732016-10-09 04:14:18 -070018/include/ "coreboot_fb.dtsi"
Bin Meng9b911be2015-07-30 03:49:17 -070019
20/ {
21 model = "Intel Bayley Bay";
22 compatible = "intel,bayleybay", "intel,baytrail";
23
24 aliases {
25 serial0 = &serial;
Bin Meng81aaa3d2016-01-27 00:56:34 -080026 spi0 = &spi;
Bin Meng9b911be2015-07-30 03:49:17 -070027 };
28
29 config {
30 silent_console = <0>;
31 };
32
33 chosen {
34 stdout-path = "/serial";
35 };
36
37 cpus {
38 #address-cells = <1>;
39 #size-cells = <0>;
40
41 cpu@0 {
42 device_type = "cpu";
43 compatible = "intel,baytrail-cpu";
44 reg = <0>;
45 intel,apic-id = <0>;
46 };
47
48 cpu@1 {
49 device_type = "cpu";
50 compatible = "intel,baytrail-cpu";
51 reg = <1>;
52 intel,apic-id = <2>;
53 };
54
55 cpu@2 {
56 device_type = "cpu";
57 compatible = "intel,baytrail-cpu";
58 reg = <2>;
59 intel,apic-id = <4>;
60 };
61
62 cpu@3 {
63 device_type = "cpu";
64 compatible = "intel,baytrail-cpu";
65 reg = <3>;
66 intel,apic-id = <6>;
67 };
68 };
69
Bin Menge264e3c2016-06-08 05:07:33 -070070 pch_pinctrl {
71 compatible = "intel,x86-pinctrl";
72 reg = <0 0>;
Bin Mengf7a01e42016-06-08 05:07:35 -070073
74 /*
75 * As of today, the latest version FSP (gold4) for BayTrail
76 * misses the PAD configuration of the SD controller's Card
77 * Detect signal. The default PAD value for the CD pin sets
78 * the pin to work in GPIO mode, which causes card detect
79 * status cannot be reflected by the Present State register
80 * in the SD controller (bit 16 & bit 18 are always zero).
81 *
82 * Configure this pin to function 1 (SD controller).
83 */
84 sdmmc3_cd@0 {
85 pad-offset = <0x3a0>;
86 mode-func = <1>;
87 };
Bin Menge264e3c2016-06-08 05:07:33 -070088 };
89
Bin Meng9b911be2015-07-30 03:49:17 -070090 pci {
91 compatible = "pci-x86";
92 #address-cells = <3>;
93 #size-cells = <2>;
94 u-boot,dm-pre-reloc;
95 ranges = <0x02000000 0x0 0x80000000 0x80000000 0 0x40000000
96 0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000
97 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
Bin Mengfe3fbd32015-07-30 03:49:18 -070098
Simon Glassf2b85ab2016-01-18 20:19:21 -070099 pch@1f,0 {
Bin Mengfe3fbd32015-07-30 03:49:18 -0700100 reg = <0x0000f800 0 0 0 0>;
Simon Glassf2b85ab2016-01-18 20:19:21 -0700101 compatible = "intel,pch9";
Bin Meng3ddc1c72016-02-01 01:40:47 -0800102 #address-cells = <1>;
103 #size-cells = <1>;
Bin Mengfe3fbd32015-07-30 03:49:18 -0700104
Simon Glassf2b85ab2016-01-18 20:19:21 -0700105 irq-router {
106 compatible = "intel,irq-router";
107 intel,pirq-config = "ibase";
108 intel,ibase-offset = <0x50>;
Bin Mengce8dd772016-05-07 07:46:15 -0700109 intel,actl-addr = <0>;
Simon Glassf2b85ab2016-01-18 20:19:21 -0700110 intel,pirq-link = <8 8>;
111 intel,pirq-mask = <0xdee0>;
112 intel,pirq-routing = <
113 /* BayTrail PCI devices */
114 PCI_BDF(0, 2, 0) INTA PIRQA
115 PCI_BDF(0, 3, 0) INTA PIRQA
116 PCI_BDF(0, 16, 0) INTA PIRQA
117 PCI_BDF(0, 17, 0) INTA PIRQA
118 PCI_BDF(0, 18, 0) INTA PIRQA
119 PCI_BDF(0, 19, 0) INTA PIRQA
120 PCI_BDF(0, 20, 0) INTA PIRQA
121 PCI_BDF(0, 21, 0) INTA PIRQA
122 PCI_BDF(0, 22, 0) INTA PIRQA
123 PCI_BDF(0, 23, 0) INTA PIRQA
124 PCI_BDF(0, 24, 0) INTA PIRQA
125 PCI_BDF(0, 24, 1) INTC PIRQC
126 PCI_BDF(0, 24, 2) INTD PIRQD
127 PCI_BDF(0, 24, 3) INTB PIRQB
128 PCI_BDF(0, 24, 4) INTA PIRQA
129 PCI_BDF(0, 24, 5) INTC PIRQC
130 PCI_BDF(0, 24, 6) INTD PIRQD
131 PCI_BDF(0, 24, 7) INTB PIRQB
132 PCI_BDF(0, 26, 0) INTA PIRQA
133 PCI_BDF(0, 27, 0) INTA PIRQA
134 PCI_BDF(0, 28, 0) INTA PIRQA
135 PCI_BDF(0, 28, 1) INTB PIRQB
136 PCI_BDF(0, 28, 2) INTC PIRQC
137 PCI_BDF(0, 28, 3) INTD PIRQD
138 PCI_BDF(0, 29, 0) INTA PIRQA
139 PCI_BDF(0, 30, 0) INTA PIRQA
140 PCI_BDF(0, 30, 1) INTD PIRQD
141 PCI_BDF(0, 30, 2) INTB PIRQB
142 PCI_BDF(0, 30, 3) INTC PIRQC
143 PCI_BDF(0, 30, 4) INTD PIRQD
144 PCI_BDF(0, 30, 5) INTB PIRQB
145 PCI_BDF(0, 31, 3) INTB PIRQB
146
147 /*
148 * PCIe root ports downstream
149 * interrupts
150 */
151 PCI_BDF(1, 0, 0) INTA PIRQA
152 PCI_BDF(1, 0, 0) INTB PIRQB
153 PCI_BDF(1, 0, 0) INTC PIRQC
154 PCI_BDF(1, 0, 0) INTD PIRQD
155 PCI_BDF(2, 0, 0) INTA PIRQB
156 PCI_BDF(2, 0, 0) INTB PIRQC
157 PCI_BDF(2, 0, 0) INTC PIRQD
158 PCI_BDF(2, 0, 0) INTD PIRQA
159 PCI_BDF(3, 0, 0) INTA PIRQC
160 PCI_BDF(3, 0, 0) INTB PIRQD
161 PCI_BDF(3, 0, 0) INTC PIRQA
162 PCI_BDF(3, 0, 0) INTD PIRQB
163 PCI_BDF(4, 0, 0) INTA PIRQD
164 PCI_BDF(4, 0, 0) INTB PIRQA
165 PCI_BDF(4, 0, 0) INTC PIRQB
166 PCI_BDF(4, 0, 0) INTD PIRQC
167 >;
168 };
169
Bin Meng81aaa3d2016-01-27 00:56:34 -0800170 spi: spi {
Simon Glassf2b85ab2016-01-18 20:19:21 -0700171 #address-cells = <1>;
172 #size-cells = <0>;
Bin Meng1f9eb592016-02-01 01:40:37 -0800173 compatible = "intel,ich9-spi";
Simon Glassf2b85ab2016-01-18 20:19:21 -0700174 spi-flash@0 {
175 #address-cells = <1>;
176 #size-cells = <1>;
177 reg = <0>;
178 compatible = "winbond,w25q64dw",
179 "spi-flash";
180 memory-map = <0xff800000 0x00800000>;
181 rw-mrc-cache {
182 label = "rw-mrc-cache";
183 reg = <0x006e0000 0x00010000>;
184 };
185 };
186 };
Bin Meng3ddc1c72016-02-01 01:40:47 -0800187
188 gpioa {
189 compatible = "intel,ich6-gpio";
190 u-boot,dm-pre-reloc;
191 reg = <0 0x20>;
192 bank-name = "A";
Bin Meng770ee012017-05-07 19:52:29 -0700193 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800194 };
195
196 gpiob {
197 compatible = "intel,ich6-gpio";
198 u-boot,dm-pre-reloc;
199 reg = <0x20 0x20>;
200 bank-name = "B";
Bin Meng770ee012017-05-07 19:52:29 -0700201 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800202 };
203
204 gpioc {
205 compatible = "intel,ich6-gpio";
206 u-boot,dm-pre-reloc;
207 reg = <0x40 0x20>;
208 bank-name = "C";
Bin Meng770ee012017-05-07 19:52:29 -0700209 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800210 };
211
212 gpiod {
213 compatible = "intel,ich6-gpio";
214 u-boot,dm-pre-reloc;
215 reg = <0x60 0x20>;
216 bank-name = "D";
Bin Meng770ee012017-05-07 19:52:29 -0700217 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800218 };
219
220 gpioe {
221 compatible = "intel,ich6-gpio";
222 u-boot,dm-pre-reloc;
223 reg = <0x80 0x20>;
224 bank-name = "E";
Bin Meng770ee012017-05-07 19:52:29 -0700225 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800226 };
227
228 gpiof {
229 compatible = "intel,ich6-gpio";
230 u-boot,dm-pre-reloc;
231 reg = <0xA0 0x20>;
232 bank-name = "F";
Bin Meng770ee012017-05-07 19:52:29 -0700233 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800234 };
Bin Mengfe3fbd32015-07-30 03:49:18 -0700235 };
Bin Meng9b911be2015-07-30 03:49:17 -0700236 };
237
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400238 fsp {
239 compatible = "intel,baytrail-fsp";
Bin Meng5e74e5a2017-05-31 01:04:14 -0700240 fsp,mrc-init-tseg-size = <MRC_INIT_TSEG_SIZE_1MB>;
241 fsp,mrc-init-mmio-size = <MRC_INIT_MMIO_SIZE_2048MB>;
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400242 fsp,mrc-init-spd-addr1 = <0xa0>;
243 fsp,mrc-init-spd-addr2 = <0xa2>;
Bin Meng5e74e5a2017-05-31 01:04:14 -0700244 fsp,emmc-boot-mode = <EMMC_BOOT_MODE_AUTO>;
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400245 fsp,enable-sdio;
246 fsp,enable-sdcard;
247 fsp,enable-hsuart1;
248 fsp,enable-spi;
249 fsp,enable-sata;
Bin Meng5e74e5a2017-05-31 01:04:14 -0700250 fsp,sata-mode = <SATA_MODE_AHCI>;
Bin Mengf8f291b2017-05-31 01:04:15 -0700251 fsp,lpe-mode = <LPE_MODE_PCI>;
252 fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>;
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400253 fsp,enable-dma0;
254 fsp,enable-dma1;
255 fsp,enable-i2c0;
256 fsp,enable-i2c1;
257 fsp,enable-i2c2;
258 fsp,enable-i2c3;
259 fsp,enable-i2c4;
260 fsp,enable-i2c5;
261 fsp,enable-i2c6;
262 fsp,enable-pwm0;
263 fsp,enable-pwm1;
Bin Meng5e74e5a2017-05-31 01:04:14 -0700264 fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>;
265 fsp,aperture-size = <APERTURE_SIZE_256MB>;
266 fsp,gtt-size = <GTT_SIZE_2MB>;
Bin Mengf8f291b2017-05-31 01:04:15 -0700267 fsp,scc-mode = <SCC_MODE_PCI>;
Bin Meng5e74e5a2017-05-31 01:04:14 -0700268 fsp,os-selection = <OS_SELECTION_LINUX>;
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400269 fsp,emmc45-ddr50-enabled;
270 fsp,emmc45-retune-timer-value = <8>;
271 fsp,enable-igd;
272 };
273
Bin Meng9b911be2015-07-30 03:49:17 -0700274 microcode {
275 update@0 {
276#include "microcode/m0230671117.dtsi"
277 };
Bin Meng5fb01512015-08-15 14:37:50 -0600278 update@1 {
Bin Mengbab4b962016-05-23 15:25:20 +0800279#include "microcode/m0130673325.dtsi"
Bin Meng5fb01512015-08-15 14:37:50 -0600280 };
281 update@2 {
Bin Mengbab4b962016-05-23 15:25:20 +0800282#include "microcode/m0130679907.dtsi"
Bin Meng5fb01512015-08-15 14:37:50 -0600283 };
Bin Meng9b911be2015-07-30 03:49:17 -0700284 };
285
286};