xref: /openbmc/u-boot/arch/x86/dts/minnowmax.dts (revision 23ff8633)
1/*
2 * Copyright (C) 2014, 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/ "serial.dtsi"
14/include/ "rtc.dtsi"
15/include/ "tsc_timer.dtsi"
16
17/ {
18	model = "Intel Minnowboard Max";
19	compatible = "intel,minnowmax", "intel,baytrail";
20
21	aliases {
22		serial0 = &serial;
23		spi0 = "/spi";
24	};
25
26	config {
27		silent_console = <0>;
28	};
29
30	pch_pinctrl {
31		compatible = "intel,x86-pinctrl";
32		io-base = <0x4c>;
33
34		/* 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
61		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>;
71			pad-offset = <0x250>;
72			mode-gpio;
73			output-value = <1>;
74			direction = <PIN_OUTPUT>;
75		};
76	};
77
78	gpioa {
79		compatible = "intel,ich6-gpio";
80		u-boot,dm-pre-reloc;
81		reg = <0 0x20>;
82		bank-name = "A";
83	};
84
85	gpiob {
86		compatible = "intel,ich6-gpio";
87		u-boot,dm-pre-reloc;
88		reg = <0x20 0x20>;
89		bank-name = "B";
90	};
91
92	gpioc {
93		compatible = "intel,ich6-gpio";
94		u-boot,dm-pre-reloc;
95		reg = <0x40 0x20>;
96		bank-name = "C";
97	};
98
99	gpiod {
100		compatible = "intel,ich6-gpio";
101		u-boot,dm-pre-reloc;
102		reg = <0x60 0x20>;
103		bank-name = "D";
104	};
105
106	gpioe {
107		compatible = "intel,ich6-gpio";
108		u-boot,dm-pre-reloc;
109		reg = <0x80 0x20>;
110		bank-name = "E";
111	};
112
113	gpiof {
114		compatible = "intel,ich6-gpio";
115		u-boot,dm-pre-reloc;
116		reg = <0xA0 0x20>;
117		bank-name = "F";
118	};
119
120	chosen {
121		stdout-path = "/serial";
122	};
123
124	cpus {
125		#address-cells = <1>;
126		#size-cells = <0>;
127
128		cpu@0 {
129			device_type = "cpu";
130			compatible = "intel,baytrail-cpu";
131			reg = <0>;
132			intel,apic-id = <0>;
133		};
134
135		cpu@1 {
136			device_type = "cpu";
137			compatible = "intel,baytrail-cpu";
138			reg = <1>;
139			intel,apic-id = <4>;
140		};
141
142	};
143
144	pci {
145		compatible = "intel,pci-baytrail", "pci-x86";
146		#address-cells = <3>;
147		#size-cells = <2>;
148		u-boot,dm-pre-reloc;
149		ranges = <0x02000000 0x0 0x80000000 0x80000000 0 0x40000000
150			  0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000
151			  0x01000000 0x0 0x2000 0x2000 0 0xe000>;
152
153		irq-router@1f,0 {
154			reg = <0x0000f800 0 0 0 0>;
155			compatible = "intel,irq-router";
156			intel,pirq-config = "ibase";
157			intel,ibase-offset = <0x50>;
158			intel,pirq-link = <8 8>;
159			intel,pirq-mask = <0xdee0>;
160			intel,pirq-routing = <
161				/* BayTrail PCI devices */
162				PCI_BDF(0, 2, 0) INTA PIRQA
163				PCI_BDF(0, 3, 0) INTA PIRQA
164				PCI_BDF(0, 16, 0) INTA PIRQA
165				PCI_BDF(0, 17, 0) INTA PIRQA
166				PCI_BDF(0, 18, 0) INTA PIRQA
167				PCI_BDF(0, 19, 0) INTA PIRQA
168				PCI_BDF(0, 20, 0) INTA PIRQA
169				PCI_BDF(0, 21, 0) INTA PIRQA
170				PCI_BDF(0, 22, 0) INTA PIRQA
171				PCI_BDF(0, 23, 0) INTA PIRQA
172				PCI_BDF(0, 24, 0) INTA PIRQA
173				PCI_BDF(0, 24, 1) INTC PIRQC
174				PCI_BDF(0, 24, 2) INTD PIRQD
175				PCI_BDF(0, 24, 3) INTB PIRQB
176				PCI_BDF(0, 24, 4) INTA PIRQA
177				PCI_BDF(0, 24, 5) INTC PIRQC
178				PCI_BDF(0, 24, 6) INTD PIRQD
179				PCI_BDF(0, 24, 7) INTB PIRQB
180				PCI_BDF(0, 26, 0) INTA PIRQA
181				PCI_BDF(0, 27, 0) INTA PIRQA
182				PCI_BDF(0, 28, 0) INTA PIRQA
183				PCI_BDF(0, 28, 1) INTB PIRQB
184				PCI_BDF(0, 28, 2) INTC PIRQC
185				PCI_BDF(0, 28, 3) INTD PIRQD
186				PCI_BDF(0, 29, 0) INTA PIRQA
187				PCI_BDF(0, 30, 0) INTA PIRQA
188				PCI_BDF(0, 30, 1) INTD PIRQD
189				PCI_BDF(0, 30, 2) INTB PIRQB
190				PCI_BDF(0, 30, 3) INTC PIRQC
191				PCI_BDF(0, 30, 4) INTD PIRQD
192				PCI_BDF(0, 30, 5) INTB PIRQB
193				PCI_BDF(0, 31, 3) INTB PIRQB
194
195				/* PCIe root ports downstream interrupts */
196				PCI_BDF(1, 0, 0) INTA PIRQA
197				PCI_BDF(1, 0, 0) INTB PIRQB
198				PCI_BDF(1, 0, 0) INTC PIRQC
199				PCI_BDF(1, 0, 0) INTD PIRQD
200				PCI_BDF(2, 0, 0) INTA PIRQB
201				PCI_BDF(2, 0, 0) INTB PIRQC
202				PCI_BDF(2, 0, 0) INTC PIRQD
203				PCI_BDF(2, 0, 0) INTD PIRQA
204				PCI_BDF(3, 0, 0) INTA PIRQC
205				PCI_BDF(3, 0, 0) INTB PIRQD
206				PCI_BDF(3, 0, 0) INTC PIRQA
207				PCI_BDF(3, 0, 0) INTD PIRQB
208				PCI_BDF(4, 0, 0) INTA PIRQD
209				PCI_BDF(4, 0, 0) INTB PIRQA
210				PCI_BDF(4, 0, 0) INTC PIRQB
211				PCI_BDF(4, 0, 0) INTD PIRQC
212			>;
213		};
214	};
215
216	fsp {
217		compatible = "intel,baytrail-fsp";
218		fsp,mrc-init-tseg-size = <0>;
219		fsp,mrc-init-mmio-size = <0x800>;
220		fsp,mrc-init-spd-addr1 = <0xa0>;
221		fsp,mrc-init-spd-addr2 = <0xa2>;
222		fsp,emmc-boot-mode = <2>;
223		fsp,enable-sdio;
224		fsp,enable-sdcard;
225		fsp,enable-hsuart1;
226		fsp,enable-spi;
227		fsp,enable-sata;
228		fsp,sata-mode = <1>;
229		fsp,enable-lpe;
230		fsp,lpss-sio-enable-pci-mode;
231		fsp,enable-dma0;
232		fsp,enable-dma1;
233		fsp,enable-i2c0;
234		fsp,enable-i2c1;
235		fsp,enable-i2c2;
236		fsp,enable-i2c3;
237		fsp,enable-i2c4;
238		fsp,enable-i2c5;
239		fsp,enable-i2c6;
240		fsp,enable-pwm0;
241		fsp,enable-pwm1;
242		fsp,igd-dvmt50-pre-alloc = <2>;
243		fsp,aperture-size = <2>;
244		fsp,gtt-size = <2>;
245		fsp,serial-debug-port-address = <0x3f8>;
246		fsp,serial-debug-port-type = <1>;
247		fsp,scc-enable-pci-mode;
248		fsp,os-selection = <4>;
249		fsp,emmc45-ddr50-enabled;
250		fsp,emmc45-retune-timer-value = <8>;
251		fsp,enable-igd;
252		fsp,enable-memory-down;
253		fsp,memory-down-params {
254			compatible = "intel,baytrail-fsp-mdp";
255			fsp,dram-speed = <1>;
256			fsp,dram-type = <1>;
257			fsp,dimm-0-enable;
258			fsp,dimm-width = <1>;
259			fsp,dimm-density = <2>;
260			fsp,dimm-bus-width = <3>;
261			fsp,dimm-sides = <0>;
262			fsp,dimm-tcl = <0xb>;
263			fsp,dimm-trpt-rcd = <0xb>;
264			fsp,dimm-twr = <0xc>;
265			fsp,dimm-twtr = <6>;
266			fsp,dimm-trrd = <6>;
267			fsp,dimm-trtp = <6>;
268			fsp,dimm-tfaw = <0x14>;
269		};
270	};
271
272	spi {
273		#address-cells = <1>;
274		#size-cells = <0>;
275		compatible = "intel,ich-spi";
276		spi-flash@0 {
277			#address-cells = <1>;
278			#size-cells = <1>;
279			reg = <0>;
280			compatible = "stmicro,n25q064a", "spi-flash";
281			memory-map = <0xff800000 0x00800000>;
282			rw-mrc-cache {
283				label = "rw-mrc-cache";
284				reg = <0x006f0000 0x00010000>;
285			};
286		};
287	};
288
289	microcode {
290		update@0 {
291#include "microcode/m0130673322.dtsi"
292		};
293		update@1 {
294#include "microcode/m0130679901.dtsi"
295		};
296	};
297
298};
299