xref: /openbmc/u-boot/arch/x86/dts/bayleybay.dts (revision 730d2544)
1/*
2 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
3 *
4 * SPDX-License-Identifier:	GPL-2.0+
5 */
6
7/dts-v1/;
8
9#include <dt-bindings/gpio/x86-gpio.h>
10#include <dt-bindings/interrupt-router/intel-irq.h>
11
12/include/ "skeleton.dtsi"
13/include/ "keyboard.dtsi"
14/include/ "serial.dtsi"
15/include/ "rtc.dtsi"
16/include/ "tsc_timer.dtsi"
17/include/ "coreboot_fb.dtsi"
18
19/ {
20	model = "Intel Bayley Bay";
21	compatible = "intel,bayleybay", "intel,baytrail";
22
23	aliases {
24		serial0 = &serial;
25		spi0 = &spi;
26	};
27
28	config {
29		silent_console = <0>;
30	};
31
32	chosen {
33		stdout-path = "/serial";
34	};
35
36	cpus {
37		#address-cells = <1>;
38		#size-cells = <0>;
39
40		cpu@0 {
41			device_type = "cpu";
42			compatible = "intel,baytrail-cpu";
43			reg = <0>;
44			intel,apic-id = <0>;
45		};
46
47		cpu@1 {
48			device_type = "cpu";
49			compatible = "intel,baytrail-cpu";
50			reg = <1>;
51			intel,apic-id = <2>;
52		};
53
54		cpu@2 {
55			device_type = "cpu";
56			compatible = "intel,baytrail-cpu";
57			reg = <2>;
58			intel,apic-id = <4>;
59		};
60
61		cpu@3 {
62			device_type = "cpu";
63			compatible = "intel,baytrail-cpu";
64			reg = <3>;
65			intel,apic-id = <6>;
66		};
67	};
68
69	pch_pinctrl {
70		compatible = "intel,x86-pinctrl";
71		reg = <0 0>;
72
73		/*
74		 * As of today, the latest version FSP (gold4) for BayTrail
75		 * misses the PAD configuration of the SD controller's Card
76		 * Detect signal. The default PAD value for the CD pin sets
77		 * the pin to work in GPIO mode, which causes card detect
78		 * status cannot be reflected by the Present State register
79		 * in the SD controller (bit 16 & bit 18 are always zero).
80		 *
81		 * Configure this pin to function 1 (SD controller).
82		 */
83		sdmmc3_cd@0 {
84			pad-offset = <0x3a0>;
85			mode-func = <1>;
86		};
87	};
88
89	pci {
90		compatible = "pci-x86";
91		#address-cells = <3>;
92		#size-cells = <2>;
93		u-boot,dm-pre-reloc;
94		ranges = <0x02000000 0x0 0x80000000 0x80000000 0 0x40000000
95			  0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000
96			  0x01000000 0x0 0x2000 0x2000 0 0xe000>;
97
98		pch@1f,0 {
99			reg = <0x0000f800 0 0 0 0>;
100			compatible = "intel,pch9";
101			#address-cells = <1>;
102			#size-cells = <1>;
103
104			irq-router {
105				compatible = "intel,irq-router";
106				intel,pirq-config = "ibase";
107				intel,ibase-offset = <0x50>;
108				intel,actl-addr = <0>;
109				intel,pirq-link = <8 8>;
110				intel,pirq-mask = <0xdee0>;
111				intel,pirq-routing = <
112					/* BayTrail PCI devices */
113					PCI_BDF(0, 2, 0) INTA PIRQA
114					PCI_BDF(0, 3, 0) INTA PIRQA
115					PCI_BDF(0, 16, 0) INTA PIRQA
116					PCI_BDF(0, 17, 0) INTA PIRQA
117					PCI_BDF(0, 18, 0) INTA PIRQA
118					PCI_BDF(0, 19, 0) INTA PIRQA
119					PCI_BDF(0, 20, 0) INTA PIRQA
120					PCI_BDF(0, 21, 0) INTA PIRQA
121					PCI_BDF(0, 22, 0) INTA PIRQA
122					PCI_BDF(0, 23, 0) INTA PIRQA
123					PCI_BDF(0, 24, 0) INTA PIRQA
124					PCI_BDF(0, 24, 1) INTC PIRQC
125					PCI_BDF(0, 24, 2) INTD PIRQD
126					PCI_BDF(0, 24, 3) INTB PIRQB
127					PCI_BDF(0, 24, 4) INTA PIRQA
128					PCI_BDF(0, 24, 5) INTC PIRQC
129					PCI_BDF(0, 24, 6) INTD PIRQD
130					PCI_BDF(0, 24, 7) INTB PIRQB
131					PCI_BDF(0, 26, 0) INTA PIRQA
132					PCI_BDF(0, 27, 0) INTA PIRQA
133					PCI_BDF(0, 28, 0) INTA PIRQA
134					PCI_BDF(0, 28, 1) INTB PIRQB
135					PCI_BDF(0, 28, 2) INTC PIRQC
136					PCI_BDF(0, 28, 3) INTD PIRQD
137					PCI_BDF(0, 29, 0) INTA PIRQA
138					PCI_BDF(0, 30, 0) INTA PIRQA
139					PCI_BDF(0, 30, 1) INTD PIRQD
140					PCI_BDF(0, 30, 2) INTB PIRQB
141					PCI_BDF(0, 30, 3) INTC PIRQC
142					PCI_BDF(0, 30, 4) INTD PIRQD
143					PCI_BDF(0, 30, 5) INTB PIRQB
144					PCI_BDF(0, 31, 3) INTB PIRQB
145
146					/*
147					 * PCIe root ports downstream
148					 * interrupts
149					 */
150					PCI_BDF(1, 0, 0) INTA PIRQA
151					PCI_BDF(1, 0, 0) INTB PIRQB
152					PCI_BDF(1, 0, 0) INTC PIRQC
153					PCI_BDF(1, 0, 0) INTD PIRQD
154					PCI_BDF(2, 0, 0) INTA PIRQB
155					PCI_BDF(2, 0, 0) INTB PIRQC
156					PCI_BDF(2, 0, 0) INTC PIRQD
157					PCI_BDF(2, 0, 0) INTD PIRQA
158					PCI_BDF(3, 0, 0) INTA PIRQC
159					PCI_BDF(3, 0, 0) INTB PIRQD
160					PCI_BDF(3, 0, 0) INTC PIRQA
161					PCI_BDF(3, 0, 0) INTD PIRQB
162					PCI_BDF(4, 0, 0) INTA PIRQD
163					PCI_BDF(4, 0, 0) INTB PIRQA
164					PCI_BDF(4, 0, 0) INTC PIRQB
165					PCI_BDF(4, 0, 0) INTD PIRQC
166				>;
167			};
168
169			spi: spi {
170				#address-cells = <1>;
171				#size-cells = <0>;
172				compatible = "intel,ich9-spi";
173				spi-flash@0 {
174					#address-cells = <1>;
175					#size-cells = <1>;
176					reg = <0>;
177					compatible = "winbond,w25q64dw",
178						"spi-flash";
179					memory-map = <0xff800000 0x00800000>;
180					rw-mrc-cache {
181						label = "rw-mrc-cache";
182						reg = <0x006e0000 0x00010000>;
183					};
184				};
185			};
186
187			gpioa {
188				compatible = "intel,ich6-gpio";
189				u-boot,dm-pre-reloc;
190				reg = <0 0x20>;
191				bank-name = "A";
192			};
193
194			gpiob {
195				compatible = "intel,ich6-gpio";
196				u-boot,dm-pre-reloc;
197				reg = <0x20 0x20>;
198				bank-name = "B";
199			};
200
201			gpioc {
202				compatible = "intel,ich6-gpio";
203				u-boot,dm-pre-reloc;
204				reg = <0x40 0x20>;
205				bank-name = "C";
206			};
207
208			gpiod {
209				compatible = "intel,ich6-gpio";
210				u-boot,dm-pre-reloc;
211				reg = <0x60 0x20>;
212				bank-name = "D";
213			};
214
215			gpioe {
216				compatible = "intel,ich6-gpio";
217				u-boot,dm-pre-reloc;
218				reg = <0x80 0x20>;
219				bank-name = "E";
220			};
221
222			gpiof {
223				compatible = "intel,ich6-gpio";
224				u-boot,dm-pre-reloc;
225				reg = <0xA0 0x20>;
226				bank-name = "F";
227			};
228		};
229	};
230
231	fsp {
232		compatible = "intel,baytrail-fsp";
233		fsp,mrc-init-tseg-size = <0>;
234		fsp,mrc-init-mmio-size = <0x800>;
235		fsp,mrc-init-spd-addr1 = <0xa0>;
236		fsp,mrc-init-spd-addr2 = <0xa2>;
237		fsp,emmc-boot-mode = <1>;
238		fsp,enable-sdio;
239		fsp,enable-sdcard;
240		fsp,enable-hsuart1;
241		fsp,enable-spi;
242		fsp,enable-sata;
243		fsp,sata-mode = <1>;
244		fsp,enable-lpe;
245		fsp,lpss-sio-enable-pci-mode;
246		fsp,enable-dma0;
247		fsp,enable-dma1;
248		fsp,enable-i2c0;
249		fsp,enable-i2c1;
250		fsp,enable-i2c2;
251		fsp,enable-i2c3;
252		fsp,enable-i2c4;
253		fsp,enable-i2c5;
254		fsp,enable-i2c6;
255		fsp,enable-pwm0;
256		fsp,enable-pwm1;
257		fsp,igd-dvmt50-pre-alloc = <2>;
258		fsp,aperture-size = <2>;
259		fsp,gtt-size = <2>;
260		fsp,serial-debug-port-address = <0x3f8>;
261		fsp,serial-debug-port-type = <1>;
262		fsp,scc-enable-pci-mode;
263		fsp,os-selection = <4>;
264		fsp,emmc45-ddr50-enabled;
265		fsp,emmc45-retune-timer-value = <8>;
266		fsp,enable-igd;
267	};
268
269	microcode {
270		update@0 {
271#include "microcode/m0230671117.dtsi"
272		};
273		update@1 {
274#include "microcode/m0130673325.dtsi"
275		};
276		update@2 {
277#include "microcode/m0130679907.dtsi"
278		};
279	};
280
281};
282