blob: 70e57984031772d1d88f9012dc2a736a44a4177c [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Bin Meng9b911be2015-07-30 03:49:17 -07002/*
3 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
Bin Meng9b911be2015-07-30 03:49:17 -07004 */
5
6/dts-v1/;
7
Bin Meng5e74e5a2017-05-31 01:04:14 -07008#include <asm/arch-baytrail/fsp/fsp_configs.h>
Bin Meng9b911be2015-07-30 03:49:17 -07009#include <dt-bindings/gpio/x86-gpio.h>
Bin Mengfe3fbd32015-07-30 03:49:18 -070010#include <dt-bindings/interrupt-router/intel-irq.h>
Bin Meng9b911be2015-07-30 03:49:17 -070011
12/include/ "skeleton.dtsi"
Simon Glass6b44ae62015-11-11 10:05:43 -070013/include/ "keyboard.dtsi"
Bin Meng9b911be2015-07-30 03:49:17 -070014/include/ "serial.dtsi"
Bin Mengb37b7b22018-07-19 03:07:33 -070015/include/ "reset.dtsi"
Bin Meng9b911be2015-07-30 03:49:17 -070016/include/ "rtc.dtsi"
Bin Meng80af3982015-11-13 00:11:22 -080017/include/ "tsc_timer.dtsi"
Bin Meng9b911be2015-07-30 03:49:17 -070018
Simon Glass839d66c2020-11-05 06:32:17 -070019#include "smbios.dtsi"
20
Bin Meng9b911be2015-07-30 03:49:17 -070021/ {
22 model = "Intel Bayley Bay";
23 compatible = "intel,bayleybay", "intel,baytrail";
24
25 aliases {
26 serial0 = &serial;
Bin Meng81aaa3d2016-01-27 00:56:34 -080027 spi0 = &spi;
Bin Meng9b911be2015-07-30 03:49:17 -070028 };
29
30 config {
31 silent_console = <0>;
32 };
33
34 chosen {
35 stdout-path = "/serial";
36 };
37
38 cpus {
39 #address-cells = <1>;
40 #size-cells = <0>;
41
42 cpu@0 {
43 device_type = "cpu";
44 compatible = "intel,baytrail-cpu";
45 reg = <0>;
46 intel,apic-id = <0>;
47 };
48
49 cpu@1 {
50 device_type = "cpu";
51 compatible = "intel,baytrail-cpu";
52 reg = <1>;
53 intel,apic-id = <2>;
54 };
55
56 cpu@2 {
57 device_type = "cpu";
58 compatible = "intel,baytrail-cpu";
59 reg = <2>;
60 intel,apic-id = <4>;
61 };
62
63 cpu@3 {
64 device_type = "cpu";
65 compatible = "intel,baytrail-cpu";
66 reg = <3>;
67 intel,apic-id = <6>;
68 };
69 };
70
Bin Menge264e3c2016-06-08 05:07:33 -070071 pch_pinctrl {
72 compatible = "intel,x86-pinctrl";
73 reg = <0 0>;
Bin Mengf7a01e42016-06-08 05:07:35 -070074
75 /*
76 * As of today, the latest version FSP (gold4) for BayTrail
77 * misses the PAD configuration of the SD controller's Card
78 * Detect signal. The default PAD value for the CD pin sets
79 * the pin to work in GPIO mode, which causes card detect
80 * status cannot be reflected by the Present State register
81 * in the SD controller (bit 16 & bit 18 are always zero).
82 *
83 * Configure this pin to function 1 (SD controller).
84 */
85 sdmmc3_cd@0 {
86 pad-offset = <0x3a0>;
87 mode-func = <1>;
88 };
Bin Menge264e3c2016-06-08 05:07:33 -070089 };
90
Bin Meng9b911be2015-07-30 03:49:17 -070091 pci {
92 compatible = "pci-x86";
93 #address-cells = <3>;
94 #size-cells = <2>;
95 u-boot,dm-pre-reloc;
96 ranges = <0x02000000 0x0 0x80000000 0x80000000 0 0x40000000
97 0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000
98 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
Bin Mengfe3fbd32015-07-30 03:49:18 -070099
Simon Glassf2b85ab2016-01-18 20:19:21 -0700100 pch@1f,0 {
Bin Mengfe3fbd32015-07-30 03:49:18 -0700101 reg = <0x0000f800 0 0 0 0>;
Simon Glassf2b85ab2016-01-18 20:19:21 -0700102 compatible = "intel,pch9";
Bin Meng3ddc1c72016-02-01 01:40:47 -0800103 #address-cells = <1>;
104 #size-cells = <1>;
Bin Mengfe3fbd32015-07-30 03:49:18 -0700105
Simon Glassf2b85ab2016-01-18 20:19:21 -0700106 irq-router {
107 compatible = "intel,irq-router";
108 intel,pirq-config = "ibase";
109 intel,ibase-offset = <0x50>;
Bin Mengce8dd772016-05-07 07:46:15 -0700110 intel,actl-addr = <0>;
Simon Glassf2b85ab2016-01-18 20:19:21 -0700111 intel,pirq-link = <8 8>;
112 intel,pirq-mask = <0xdee0>;
113 intel,pirq-routing = <
114 /* BayTrail PCI devices */
115 PCI_BDF(0, 2, 0) INTA PIRQA
116 PCI_BDF(0, 3, 0) INTA PIRQA
117 PCI_BDF(0, 16, 0) INTA PIRQA
118 PCI_BDF(0, 17, 0) INTA PIRQA
119 PCI_BDF(0, 18, 0) INTA PIRQA
120 PCI_BDF(0, 19, 0) INTA PIRQA
121 PCI_BDF(0, 20, 0) INTA PIRQA
122 PCI_BDF(0, 21, 0) INTA PIRQA
123 PCI_BDF(0, 22, 0) INTA PIRQA
124 PCI_BDF(0, 23, 0) INTA PIRQA
125 PCI_BDF(0, 24, 0) INTA PIRQA
126 PCI_BDF(0, 24, 1) INTC PIRQC
127 PCI_BDF(0, 24, 2) INTD PIRQD
128 PCI_BDF(0, 24, 3) INTB PIRQB
129 PCI_BDF(0, 24, 4) INTA PIRQA
130 PCI_BDF(0, 24, 5) INTC PIRQC
131 PCI_BDF(0, 24, 6) INTD PIRQD
132 PCI_BDF(0, 24, 7) INTB PIRQB
133 PCI_BDF(0, 26, 0) INTA PIRQA
134 PCI_BDF(0, 27, 0) INTA PIRQA
135 PCI_BDF(0, 28, 0) INTA PIRQA
136 PCI_BDF(0, 28, 1) INTB PIRQB
137 PCI_BDF(0, 28, 2) INTC PIRQC
138 PCI_BDF(0, 28, 3) INTD PIRQD
139 PCI_BDF(0, 29, 0) INTA PIRQA
140 PCI_BDF(0, 30, 0) INTA PIRQA
141 PCI_BDF(0, 30, 1) INTD PIRQD
142 PCI_BDF(0, 30, 2) INTB PIRQB
143 PCI_BDF(0, 30, 3) INTC PIRQC
144 PCI_BDF(0, 30, 4) INTD PIRQD
145 PCI_BDF(0, 30, 5) INTB PIRQB
146 PCI_BDF(0, 31, 3) INTB PIRQB
147
148 /*
149 * PCIe root ports downstream
150 * interrupts
151 */
152 PCI_BDF(1, 0, 0) INTA PIRQA
153 PCI_BDF(1, 0, 0) INTB PIRQB
154 PCI_BDF(1, 0, 0) INTC PIRQC
155 PCI_BDF(1, 0, 0) INTD PIRQD
156 PCI_BDF(2, 0, 0) INTA PIRQB
157 PCI_BDF(2, 0, 0) INTB PIRQC
158 PCI_BDF(2, 0, 0) INTC PIRQD
159 PCI_BDF(2, 0, 0) INTD PIRQA
160 PCI_BDF(3, 0, 0) INTA PIRQC
161 PCI_BDF(3, 0, 0) INTB PIRQD
162 PCI_BDF(3, 0, 0) INTC PIRQA
163 PCI_BDF(3, 0, 0) INTD PIRQB
164 PCI_BDF(4, 0, 0) INTA PIRQD
165 PCI_BDF(4, 0, 0) INTB PIRQA
166 PCI_BDF(4, 0, 0) INTC PIRQB
167 PCI_BDF(4, 0, 0) INTD PIRQC
168 >;
169 };
170
Bin Meng81aaa3d2016-01-27 00:56:34 -0800171 spi: spi {
Simon Glassf2b85ab2016-01-18 20:19:21 -0700172 #address-cells = <1>;
173 #size-cells = <0>;
Bin Meng1f9eb592016-02-01 01:40:37 -0800174 compatible = "intel,ich9-spi";
Simon Glassf2b85ab2016-01-18 20:19:21 -0700175 spi-flash@0 {
176 #address-cells = <1>;
177 #size-cells = <1>;
178 reg = <0>;
179 compatible = "winbond,w25q64dw",
Neil Armstrong51e4e3e2019-02-10 10:16:21 +0000180 "jedec,spi-nor";
Simon Glassf2b85ab2016-01-18 20:19:21 -0700181 memory-map = <0xff800000 0x00800000>;
182 rw-mrc-cache {
183 label = "rw-mrc-cache";
184 reg = <0x006e0000 0x00010000>;
185 };
186 };
187 };
Bin Meng3ddc1c72016-02-01 01:40:47 -0800188
189 gpioa {
190 compatible = "intel,ich6-gpio";
191 u-boot,dm-pre-reloc;
192 reg = <0 0x20>;
193 bank-name = "A";
Bin Meng770ee012017-05-07 19:52:29 -0700194 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800195 };
196
197 gpiob {
198 compatible = "intel,ich6-gpio";
199 u-boot,dm-pre-reloc;
200 reg = <0x20 0x20>;
201 bank-name = "B";
Bin Meng770ee012017-05-07 19:52:29 -0700202 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800203 };
204
205 gpioc {
206 compatible = "intel,ich6-gpio";
207 u-boot,dm-pre-reloc;
208 reg = <0x40 0x20>;
209 bank-name = "C";
Bin Meng770ee012017-05-07 19:52:29 -0700210 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800211 };
212
213 gpiod {
214 compatible = "intel,ich6-gpio";
215 u-boot,dm-pre-reloc;
216 reg = <0x60 0x20>;
217 bank-name = "D";
Bin Meng770ee012017-05-07 19:52:29 -0700218 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800219 };
220
221 gpioe {
222 compatible = "intel,ich6-gpio";
223 u-boot,dm-pre-reloc;
224 reg = <0x80 0x20>;
225 bank-name = "E";
Bin Meng770ee012017-05-07 19:52:29 -0700226 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800227 };
228
229 gpiof {
230 compatible = "intel,ich6-gpio";
231 u-boot,dm-pre-reloc;
232 reg = <0xA0 0x20>;
233 bank-name = "F";
Bin Meng770ee012017-05-07 19:52:29 -0700234 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800235 };
Bin Mengfe3fbd32015-07-30 03:49:18 -0700236 };
Bin Meng9b911be2015-07-30 03:49:17 -0700237 };
238
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400239 fsp {
240 compatible = "intel,baytrail-fsp";
Bin Meng5e74e5a2017-05-31 01:04:14 -0700241 fsp,mrc-init-tseg-size = <MRC_INIT_TSEG_SIZE_1MB>;
242 fsp,mrc-init-mmio-size = <MRC_INIT_MMIO_SIZE_2048MB>;
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400243 fsp,mrc-init-spd-addr1 = <0xa0>;
244 fsp,mrc-init-spd-addr2 = <0xa2>;
Bin Meng5e74e5a2017-05-31 01:04:14 -0700245 fsp,emmc-boot-mode = <EMMC_BOOT_MODE_AUTO>;
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400246 fsp,enable-sdio;
247 fsp,enable-sdcard;
248 fsp,enable-hsuart1;
249 fsp,enable-spi;
250 fsp,enable-sata;
Bin Meng5e74e5a2017-05-31 01:04:14 -0700251 fsp,sata-mode = <SATA_MODE_AHCI>;
Bin Mengf8f291b2017-05-31 01:04:15 -0700252 fsp,lpe-mode = <LPE_MODE_PCI>;
253 fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>;
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400254 fsp,enable-dma0;
255 fsp,enable-dma1;
256 fsp,enable-i2c0;
257 fsp,enable-i2c1;
258 fsp,enable-i2c2;
259 fsp,enable-i2c3;
260 fsp,enable-i2c4;
261 fsp,enable-i2c5;
262 fsp,enable-i2c6;
263 fsp,enable-pwm0;
264 fsp,enable-pwm1;
Bin Meng5e74e5a2017-05-31 01:04:14 -0700265 fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>;
266 fsp,aperture-size = <APERTURE_SIZE_256MB>;
267 fsp,gtt-size = <GTT_SIZE_2MB>;
Bin Mengf8f291b2017-05-31 01:04:15 -0700268 fsp,scc-mode = <SCC_MODE_PCI>;
Bin Meng5e74e5a2017-05-31 01:04:14 -0700269 fsp,os-selection = <OS_SELECTION_LINUX>;
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400270 fsp,emmc45-ddr50-enabled;
271 fsp,emmc45-retune-timer-value = <8>;
272 fsp,enable-igd;
273 };
274
Bin Meng9b911be2015-07-30 03:49:17 -0700275 microcode {
276 update@0 {
277#include "microcode/m0230671117.dtsi"
278 };
Bin Meng5fb01512015-08-15 14:37:50 -0600279 update@1 {
Bin Mengbab4b962016-05-23 15:25:20 +0800280#include "microcode/m0130673325.dtsi"
Bin Meng5fb01512015-08-15 14:37:50 -0600281 };
282 update@2 {
Bin Mengbab4b962016-05-23 15:25:20 +0800283#include "microcode/m0130679907.dtsi"
Bin Meng5fb01512015-08-15 14:37:50 -0600284 };
Bin Meng9b911be2015-07-30 03:49:17 -0700285 };
286
287};