blob: 59403f40cee6a14ac1c67ffeea92417366ab89e6 [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"
17
Bin Mengc79cbb52021-07-28 12:00:23 +080018#include "tsc_timer.dtsi"
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>;
Simon Glass8c103c32023-02-13 08:56:33 -070095 bootph-all;
Bin Meng9b911be2015-07-30 03:49:17 -070096 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>;
Bin Mengbd798ee2021-07-29 20:18:23 +0800179 m25p,fast-read;
Simon Glassf2b85ab2016-01-18 20:19:21 -0700180 compatible = "winbond,w25q64dw",
Neil Armstrong51e4e3e2019-02-10 10:16:21 +0000181 "jedec,spi-nor";
Simon Glassf2b85ab2016-01-18 20:19:21 -0700182 memory-map = <0xff800000 0x00800000>;
183 rw-mrc-cache {
184 label = "rw-mrc-cache";
Simon Glassd86de932023-03-14 17:59:52 -0600185 reg = <0x005e0000 0x00010000>;
Simon Glassf2b85ab2016-01-18 20:19:21 -0700186 };
187 };
188 };
Bin Meng3ddc1c72016-02-01 01:40:47 -0800189
190 gpioa {
191 compatible = "intel,ich6-gpio";
Simon Glass8c103c32023-02-13 08:56:33 -0700192 bootph-all;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800193 reg = <0 0x20>;
194 bank-name = "A";
Bin Meng770ee012017-05-07 19:52:29 -0700195 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800196 };
197
198 gpiob {
199 compatible = "intel,ich6-gpio";
Simon Glass8c103c32023-02-13 08:56:33 -0700200 bootph-all;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800201 reg = <0x20 0x20>;
202 bank-name = "B";
Bin Meng770ee012017-05-07 19:52:29 -0700203 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800204 };
205
206 gpioc {
207 compatible = "intel,ich6-gpio";
Simon Glass8c103c32023-02-13 08:56:33 -0700208 bootph-all;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800209 reg = <0x40 0x20>;
210 bank-name = "C";
Bin Meng770ee012017-05-07 19:52:29 -0700211 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800212 };
213
214 gpiod {
215 compatible = "intel,ich6-gpio";
Simon Glass8c103c32023-02-13 08:56:33 -0700216 bootph-all;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800217 reg = <0x60 0x20>;
218 bank-name = "D";
Bin Meng770ee012017-05-07 19:52:29 -0700219 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800220 };
221
222 gpioe {
223 compatible = "intel,ich6-gpio";
Simon Glass8c103c32023-02-13 08:56:33 -0700224 bootph-all;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800225 reg = <0x80 0x20>;
226 bank-name = "E";
Bin Meng770ee012017-05-07 19:52:29 -0700227 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800228 };
229
230 gpiof {
231 compatible = "intel,ich6-gpio";
Simon Glass8c103c32023-02-13 08:56:33 -0700232 bootph-all;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800233 reg = <0xA0 0x20>;
234 bank-name = "F";
Bin Meng770ee012017-05-07 19:52:29 -0700235 use-lvl-write-cache;
Bin Meng3ddc1c72016-02-01 01:40:47 -0800236 };
Bin Mengfe3fbd32015-07-30 03:49:18 -0700237 };
Bin Meng9b911be2015-07-30 03:49:17 -0700238 };
239
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400240 fsp {
241 compatible = "intel,baytrail-fsp";
Bin Meng5e74e5a2017-05-31 01:04:14 -0700242 fsp,mrc-init-tseg-size = <MRC_INIT_TSEG_SIZE_1MB>;
243 fsp,mrc-init-mmio-size = <MRC_INIT_MMIO_SIZE_2048MB>;
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400244 fsp,mrc-init-spd-addr1 = <0xa0>;
245 fsp,mrc-init-spd-addr2 = <0xa2>;
Bin Meng5e74e5a2017-05-31 01:04:14 -0700246 fsp,emmc-boot-mode = <EMMC_BOOT_MODE_AUTO>;
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400247 fsp,enable-sdio;
248 fsp,enable-sdcard;
249 fsp,enable-hsuart1;
250 fsp,enable-spi;
251 fsp,enable-sata;
Bin Meng5e74e5a2017-05-31 01:04:14 -0700252 fsp,sata-mode = <SATA_MODE_AHCI>;
Bin Mengf8f291b2017-05-31 01:04:15 -0700253 fsp,lpe-mode = <LPE_MODE_PCI>;
254 fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>;
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400255 fsp,enable-dma0;
256 fsp,enable-dma1;
257 fsp,enable-i2c0;
258 fsp,enable-i2c1;
259 fsp,enable-i2c2;
260 fsp,enable-i2c3;
261 fsp,enable-i2c4;
262 fsp,enable-i2c5;
263 fsp,enable-i2c6;
264 fsp,enable-pwm0;
265 fsp,enable-pwm1;
Bin Meng5e74e5a2017-05-31 01:04:14 -0700266 fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>;
267 fsp,aperture-size = <APERTURE_SIZE_256MB>;
268 fsp,gtt-size = <GTT_SIZE_2MB>;
Bin Mengf8f291b2017-05-31 01:04:15 -0700269 fsp,scc-mode = <SCC_MODE_PCI>;
Bin Meng5e74e5a2017-05-31 01:04:14 -0700270 fsp,os-selection = <OS_SELECTION_LINUX>;
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400271 fsp,emmc45-ddr50-enabled;
272 fsp,emmc45-retune-timer-value = <8>;
273 fsp,enable-igd;
274 };
275
Bin Meng9b911be2015-07-30 03:49:17 -0700276 microcode {
277 update@0 {
278#include "microcode/m0230671117.dtsi"
279 };
Bin Meng5fb01512015-08-15 14:37:50 -0600280 update@1 {
Bin Mengbab4b962016-05-23 15:25:20 +0800281#include "microcode/m0130673325.dtsi"
Bin Meng5fb01512015-08-15 14:37:50 -0600282 };
283 update@2 {
Bin Mengbab4b962016-05-23 15:25:20 +0800284#include "microcode/m0130679907.dtsi"
Bin Meng5fb01512015-08-15 14:37:50 -0600285 };
Bin Meng9b911be2015-07-30 03:49:17 -0700286 };
287
288};