blob: 1c2f6710beadbe2177985ebad7607122cd3b09ec [file] [log] [blame]
Bin Menge1c49352015-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
9#include <dt-bindings/gpio/x86-gpio.h>
Bin Meng947391c2015-07-30 03:49:18 -070010#include <dt-bindings/interrupt-router/intel-irq.h>
Bin Menge1c49352015-07-30 03:49:17 -070011
12/include/ "skeleton.dtsi"
Simon Glass3356cad2015-11-11 10:05:43 -070013/include/ "keyboard.dtsi"
Bin Menge1c49352015-07-30 03:49:17 -070014/include/ "serial.dtsi"
15/include/ "rtc.dtsi"
Bin Meng38de0202015-11-13 00:11:22 -080016/include/ "tsc_timer.dtsi"
Bin Menge1c49352015-07-30 03:49:17 -070017
18/ {
19 model = "Intel Bayley Bay";
20 compatible = "intel,bayleybay", "intel,baytrail";
21
22 aliases {
23 serial0 = &serial;
Bin Meng4f8d4e92016-01-27 00:56:34 -080024 spi0 = &spi;
Bin Menge1c49352015-07-30 03:49:17 -070025 };
26
27 config {
28 silent_console = <0>;
29 };
30
31 chosen {
32 stdout-path = "/serial";
33 };
34
35 cpus {
36 #address-cells = <1>;
37 #size-cells = <0>;
38
39 cpu@0 {
40 device_type = "cpu";
41 compatible = "intel,baytrail-cpu";
42 reg = <0>;
43 intel,apic-id = <0>;
44 };
45
46 cpu@1 {
47 device_type = "cpu";
48 compatible = "intel,baytrail-cpu";
49 reg = <1>;
50 intel,apic-id = <2>;
51 };
52
53 cpu@2 {
54 device_type = "cpu";
55 compatible = "intel,baytrail-cpu";
56 reg = <2>;
57 intel,apic-id = <4>;
58 };
59
60 cpu@3 {
61 device_type = "cpu";
62 compatible = "intel,baytrail-cpu";
63 reg = <3>;
64 intel,apic-id = <6>;
65 };
66 };
67
Bin Mengde6d1982016-06-08 05:07:33 -070068 pch_pinctrl {
69 compatible = "intel,x86-pinctrl";
70 reg = <0 0>;
71 };
72
Bin Menge1c49352015-07-30 03:49:17 -070073 pci {
74 compatible = "pci-x86";
75 #address-cells = <3>;
76 #size-cells = <2>;
77 u-boot,dm-pre-reloc;
78 ranges = <0x02000000 0x0 0x80000000 0x80000000 0 0x40000000
79 0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000
80 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
Bin Meng947391c2015-07-30 03:49:18 -070081
Simon Glass32761632016-01-18 20:19:21 -070082 pch@1f,0 {
Bin Meng947391c2015-07-30 03:49:18 -070083 reg = <0x0000f800 0 0 0 0>;
Simon Glass32761632016-01-18 20:19:21 -070084 compatible = "intel,pch9";
Bin Meng6e916cc2016-02-01 01:40:47 -080085 #address-cells = <1>;
86 #size-cells = <1>;
Bin Meng947391c2015-07-30 03:49:18 -070087
Simon Glass32761632016-01-18 20:19:21 -070088 irq-router {
89 compatible = "intel,irq-router";
90 intel,pirq-config = "ibase";
91 intel,ibase-offset = <0x50>;
Bin Meng0651f622016-05-07 07:46:15 -070092 intel,actl-addr = <0>;
Simon Glass32761632016-01-18 20:19:21 -070093 intel,pirq-link = <8 8>;
94 intel,pirq-mask = <0xdee0>;
95 intel,pirq-routing = <
96 /* BayTrail PCI devices */
97 PCI_BDF(0, 2, 0) INTA PIRQA
98 PCI_BDF(0, 3, 0) INTA PIRQA
99 PCI_BDF(0, 16, 0) INTA PIRQA
100 PCI_BDF(0, 17, 0) INTA PIRQA
101 PCI_BDF(0, 18, 0) INTA PIRQA
102 PCI_BDF(0, 19, 0) INTA PIRQA
103 PCI_BDF(0, 20, 0) INTA PIRQA
104 PCI_BDF(0, 21, 0) INTA PIRQA
105 PCI_BDF(0, 22, 0) INTA PIRQA
106 PCI_BDF(0, 23, 0) INTA PIRQA
107 PCI_BDF(0, 24, 0) INTA PIRQA
108 PCI_BDF(0, 24, 1) INTC PIRQC
109 PCI_BDF(0, 24, 2) INTD PIRQD
110 PCI_BDF(0, 24, 3) INTB PIRQB
111 PCI_BDF(0, 24, 4) INTA PIRQA
112 PCI_BDF(0, 24, 5) INTC PIRQC
113 PCI_BDF(0, 24, 6) INTD PIRQD
114 PCI_BDF(0, 24, 7) INTB PIRQB
115 PCI_BDF(0, 26, 0) INTA PIRQA
116 PCI_BDF(0, 27, 0) INTA PIRQA
117 PCI_BDF(0, 28, 0) INTA PIRQA
118 PCI_BDF(0, 28, 1) INTB PIRQB
119 PCI_BDF(0, 28, 2) INTC PIRQC
120 PCI_BDF(0, 28, 3) INTD PIRQD
121 PCI_BDF(0, 29, 0) INTA PIRQA
122 PCI_BDF(0, 30, 0) INTA PIRQA
123 PCI_BDF(0, 30, 1) INTD PIRQD
124 PCI_BDF(0, 30, 2) INTB PIRQB
125 PCI_BDF(0, 30, 3) INTC PIRQC
126 PCI_BDF(0, 30, 4) INTD PIRQD
127 PCI_BDF(0, 30, 5) INTB PIRQB
128 PCI_BDF(0, 31, 3) INTB PIRQB
129
130 /*
131 * PCIe root ports downstream
132 * interrupts
133 */
134 PCI_BDF(1, 0, 0) INTA PIRQA
135 PCI_BDF(1, 0, 0) INTB PIRQB
136 PCI_BDF(1, 0, 0) INTC PIRQC
137 PCI_BDF(1, 0, 0) INTD PIRQD
138 PCI_BDF(2, 0, 0) INTA PIRQB
139 PCI_BDF(2, 0, 0) INTB PIRQC
140 PCI_BDF(2, 0, 0) INTC PIRQD
141 PCI_BDF(2, 0, 0) INTD PIRQA
142 PCI_BDF(3, 0, 0) INTA PIRQC
143 PCI_BDF(3, 0, 0) INTB PIRQD
144 PCI_BDF(3, 0, 0) INTC PIRQA
145 PCI_BDF(3, 0, 0) INTD PIRQB
146 PCI_BDF(4, 0, 0) INTA PIRQD
147 PCI_BDF(4, 0, 0) INTB PIRQA
148 PCI_BDF(4, 0, 0) INTC PIRQB
149 PCI_BDF(4, 0, 0) INTD PIRQC
150 >;
151 };
152
Bin Meng4f8d4e92016-01-27 00:56:34 -0800153 spi: spi {
Simon Glass32761632016-01-18 20:19:21 -0700154 #address-cells = <1>;
155 #size-cells = <0>;
Bin Mengd9406672016-02-01 01:40:37 -0800156 compatible = "intel,ich9-spi";
Simon Glass32761632016-01-18 20:19:21 -0700157 spi-flash@0 {
158 #address-cells = <1>;
159 #size-cells = <1>;
160 reg = <0>;
161 compatible = "winbond,w25q64dw",
162 "spi-flash";
163 memory-map = <0xff800000 0x00800000>;
164 rw-mrc-cache {
165 label = "rw-mrc-cache";
166 reg = <0x006e0000 0x00010000>;
167 };
168 };
169 };
Bin Meng6e916cc2016-02-01 01:40:47 -0800170
171 gpioa {
172 compatible = "intel,ich6-gpio";
173 u-boot,dm-pre-reloc;
174 reg = <0 0x20>;
175 bank-name = "A";
176 };
177
178 gpiob {
179 compatible = "intel,ich6-gpio";
180 u-boot,dm-pre-reloc;
181 reg = <0x20 0x20>;
182 bank-name = "B";
183 };
184
185 gpioc {
186 compatible = "intel,ich6-gpio";
187 u-boot,dm-pre-reloc;
188 reg = <0x40 0x20>;
189 bank-name = "C";
190 };
191
192 gpiod {
193 compatible = "intel,ich6-gpio";
194 u-boot,dm-pre-reloc;
195 reg = <0x60 0x20>;
196 bank-name = "D";
197 };
198
199 gpioe {
200 compatible = "intel,ich6-gpio";
201 u-boot,dm-pre-reloc;
202 reg = <0x80 0x20>;
203 bank-name = "E";
204 };
205
206 gpiof {
207 compatible = "intel,ich6-gpio";
208 u-boot,dm-pre-reloc;
209 reg = <0xA0 0x20>;
210 bank-name = "F";
211 };
Bin Meng947391c2015-07-30 03:49:18 -0700212 };
Bin Menge1c49352015-07-30 03:49:17 -0700213 };
214
Andrew Bradford74fdb582015-08-07 08:36:35 -0400215 fsp {
216 compatible = "intel,baytrail-fsp";
217 fsp,mrc-init-tseg-size = <0>;
218 fsp,mrc-init-mmio-size = <0x800>;
219 fsp,mrc-init-spd-addr1 = <0xa0>;
220 fsp,mrc-init-spd-addr2 = <0xa2>;
Bin Meng7bfe2b52016-06-08 05:07:34 -0700221 fsp,emmc-boot-mode = <1>;
Andrew Bradford74fdb582015-08-07 08:36:35 -0400222 fsp,enable-sdio;
223 fsp,enable-sdcard;
224 fsp,enable-hsuart1;
225 fsp,enable-spi;
226 fsp,enable-sata;
227 fsp,sata-mode = <1>;
228 fsp,enable-lpe;
229 fsp,lpss-sio-enable-pci-mode;
230 fsp,enable-dma0;
231 fsp,enable-dma1;
232 fsp,enable-i2c0;
233 fsp,enable-i2c1;
234 fsp,enable-i2c2;
235 fsp,enable-i2c3;
236 fsp,enable-i2c4;
237 fsp,enable-i2c5;
238 fsp,enable-i2c6;
239 fsp,enable-pwm0;
240 fsp,enable-pwm1;
241 fsp,igd-dvmt50-pre-alloc = <2>;
242 fsp,aperture-size = <2>;
243 fsp,gtt-size = <2>;
244 fsp,serial-debug-port-address = <0x3f8>;
245 fsp,serial-debug-port-type = <1>;
246 fsp,scc-enable-pci-mode;
247 fsp,os-selection = <4>;
248 fsp,emmc45-ddr50-enabled;
249 fsp,emmc45-retune-timer-value = <8>;
250 fsp,enable-igd;
251 };
252
Bin Menge1c49352015-07-30 03:49:17 -0700253 microcode {
254 update@0 {
255#include "microcode/m0230671117.dtsi"
256 };
Bin Meng35dffd52015-08-15 14:37:50 -0600257 update@1 {
Bin Mengae864552016-05-23 15:25:20 +0800258#include "microcode/m0130673325.dtsi"
Bin Meng35dffd52015-08-15 14:37:50 -0600259 };
260 update@2 {
Bin Mengae864552016-05-23 15:25:20 +0800261#include "microcode/m0130679907.dtsi"
Bin Meng35dffd52015-08-15 14:37:50 -0600262 };
Bin Menge1c49352015-07-30 03:49:17 -0700263 };
264
265};