blob: 8f0e192db4986e9a13442b7acd65594f81fb6f17 [file] [log] [blame]
Bin Meng9b911be2015-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 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"
13/include/ "serial.dtsi"
14/include/ "rtc.dtsi"
15
16/ {
17 model = "Intel Bayley Bay";
18 compatible = "intel,bayleybay", "intel,baytrail";
19
20 aliases {
21 serial0 = &serial;
22 spi0 = "/spi";
23 };
24
25 config {
26 silent_console = <0>;
27 };
28
29 chosen {
30 stdout-path = "/serial";
31 };
32
33 cpus {
34 #address-cells = <1>;
35 #size-cells = <0>;
36
37 cpu@0 {
38 device_type = "cpu";
39 compatible = "intel,baytrail-cpu";
40 reg = <0>;
41 intel,apic-id = <0>;
42 };
43
44 cpu@1 {
45 device_type = "cpu";
46 compatible = "intel,baytrail-cpu";
47 reg = <1>;
48 intel,apic-id = <2>;
49 };
50
51 cpu@2 {
52 device_type = "cpu";
53 compatible = "intel,baytrail-cpu";
54 reg = <2>;
55 intel,apic-id = <4>;
56 };
57
58 cpu@3 {
59 device_type = "cpu";
60 compatible = "intel,baytrail-cpu";
61 reg = <3>;
62 intel,apic-id = <6>;
63 };
64 };
65
66 spi {
67 #address-cells = <1>;
68 #size-cells = <0>;
69 compatible = "intel,ich-spi";
70 spi-flash@0 {
71 reg = <0>;
72 compatible = "winbond,w25q64dw", "spi-flash";
73 memory-map = <0xff800000 0x00800000>;
74 };
75 };
76
77 gpioa {
78 compatible = "intel,ich6-gpio";
79 u-boot,dm-pre-reloc;
80 reg = <0 0x20>;
81 bank-name = "A";
82 };
83
84 gpiob {
85 compatible = "intel,ich6-gpio";
86 u-boot,dm-pre-reloc;
87 reg = <0x20 0x20>;
88 bank-name = "B";
89 };
90
91 gpioc {
92 compatible = "intel,ich6-gpio";
93 u-boot,dm-pre-reloc;
94 reg = <0x40 0x20>;
95 bank-name = "C";
96 };
97
98 gpiod {
99 compatible = "intel,ich6-gpio";
100 u-boot,dm-pre-reloc;
101 reg = <0x60 0x20>;
102 bank-name = "D";
103 };
104
105 gpioe {
106 compatible = "intel,ich6-gpio";
107 u-boot,dm-pre-reloc;
108 reg = <0x80 0x20>;
109 bank-name = "E";
110 };
111
112 gpiof {
113 compatible = "intel,ich6-gpio";
114 u-boot,dm-pre-reloc;
115 reg = <0xA0 0x20>;
116 bank-name = "F";
117 };
118
119 pci {
120 compatible = "pci-x86";
121 #address-cells = <3>;
122 #size-cells = <2>;
123 u-boot,dm-pre-reloc;
124 ranges = <0x02000000 0x0 0x80000000 0x80000000 0 0x40000000
125 0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000
126 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
Bin Mengfe3fbd32015-07-30 03:49:18 -0700127
128 irq-router@1f,0 {
129 reg = <0x0000f800 0 0 0 0>;
130 compatible = "intel,irq-router";
131 intel,pirq-config = "ibase";
132 intel,ibase-offset = <0x50>;
133 intel,pirq-link = <8 8>;
134 intel,pirq-mask = <0xdee0>;
135 intel,pirq-routing = <
136 /* BayTrail PCI devices */
137 PCI_BDF(0, 2, 0) INTA PIRQA
138 PCI_BDF(0, 3, 0) INTA PIRQA
139 PCI_BDF(0, 16, 0) INTA PIRQA
140 PCI_BDF(0, 17, 0) INTA PIRQA
141 PCI_BDF(0, 18, 0) INTA PIRQA
142 PCI_BDF(0, 19, 0) INTA PIRQA
143 PCI_BDF(0, 20, 0) INTA PIRQA
144 PCI_BDF(0, 21, 0) INTA PIRQA
145 PCI_BDF(0, 22, 0) INTA PIRQA
146 PCI_BDF(0, 23, 0) INTA PIRQA
147 PCI_BDF(0, 24, 0) INTA PIRQA
148 PCI_BDF(0, 24, 1) INTC PIRQC
149 PCI_BDF(0, 24, 2) INTD PIRQD
150 PCI_BDF(0, 24, 3) INTB PIRQB
151 PCI_BDF(0, 24, 4) INTA PIRQA
152 PCI_BDF(0, 24, 5) INTC PIRQC
153 PCI_BDF(0, 24, 6) INTD PIRQD
154 PCI_BDF(0, 24, 7) INTB PIRQB
155 PCI_BDF(0, 26, 0) INTA PIRQA
156 PCI_BDF(0, 27, 0) INTA PIRQA
157 PCI_BDF(0, 28, 0) INTA PIRQA
158 PCI_BDF(0, 28, 1) INTB PIRQB
159 PCI_BDF(0, 28, 2) INTC PIRQC
160 PCI_BDF(0, 28, 3) INTD PIRQD
161 PCI_BDF(0, 29, 0) INTA PIRQA
162 PCI_BDF(0, 30, 0) INTA PIRQA
163 PCI_BDF(0, 30, 1) INTD PIRQD
164 PCI_BDF(0, 30, 2) INTB PIRQB
165 PCI_BDF(0, 30, 3) INTC PIRQC
166 PCI_BDF(0, 30, 4) INTD PIRQD
167 PCI_BDF(0, 30, 5) INTB PIRQB
168 PCI_BDF(0, 31, 3) INTB PIRQB
169
170 /* PCIe root ports downstream interrupts */
171 PCI_BDF(1, 0, 0) INTA PIRQA
172 PCI_BDF(1, 0, 0) INTB PIRQB
173 PCI_BDF(1, 0, 0) INTC PIRQC
174 PCI_BDF(1, 0, 0) INTD PIRQD
175 PCI_BDF(2, 0, 0) INTA PIRQB
176 PCI_BDF(2, 0, 0) INTB PIRQC
177 PCI_BDF(2, 0, 0) INTC PIRQD
178 PCI_BDF(2, 0, 0) INTD PIRQA
179 PCI_BDF(3, 0, 0) INTA PIRQC
180 PCI_BDF(3, 0, 0) INTB PIRQD
181 PCI_BDF(3, 0, 0) INTC PIRQA
182 PCI_BDF(3, 0, 0) INTD PIRQB
183 PCI_BDF(4, 0, 0) INTA PIRQD
184 PCI_BDF(4, 0, 0) INTB PIRQA
185 PCI_BDF(4, 0, 0) INTC PIRQB
186 PCI_BDF(4, 0, 0) INTD PIRQC
187 >;
188 };
Bin Meng9b911be2015-07-30 03:49:17 -0700189 };
190
Andrew Bradfordf3b84a32015-08-07 08:36:35 -0400191 fsp {
192 compatible = "intel,baytrail-fsp";
193 fsp,mrc-init-tseg-size = <0>;
194 fsp,mrc-init-mmio-size = <0x800>;
195 fsp,mrc-init-spd-addr1 = <0xa0>;
196 fsp,mrc-init-spd-addr2 = <0xa2>;
197 fsp,emmc-boot-mode = <2>;
198 fsp,enable-sdio;
199 fsp,enable-sdcard;
200 fsp,enable-hsuart1;
201 fsp,enable-spi;
202 fsp,enable-sata;
203 fsp,sata-mode = <1>;
204 fsp,enable-lpe;
205 fsp,lpss-sio-enable-pci-mode;
206 fsp,enable-dma0;
207 fsp,enable-dma1;
208 fsp,enable-i2c0;
209 fsp,enable-i2c1;
210 fsp,enable-i2c2;
211 fsp,enable-i2c3;
212 fsp,enable-i2c4;
213 fsp,enable-i2c5;
214 fsp,enable-i2c6;
215 fsp,enable-pwm0;
216 fsp,enable-pwm1;
217 fsp,igd-dvmt50-pre-alloc = <2>;
218 fsp,aperture-size = <2>;
219 fsp,gtt-size = <2>;
220 fsp,serial-debug-port-address = <0x3f8>;
221 fsp,serial-debug-port-type = <1>;
222 fsp,scc-enable-pci-mode;
223 fsp,os-selection = <4>;
224 fsp,emmc45-ddr50-enabled;
225 fsp,emmc45-retune-timer-value = <8>;
226 fsp,enable-igd;
227 };
228
Bin Meng9b911be2015-07-30 03:49:17 -0700229 microcode {
230 update@0 {
231#include "microcode/m0230671117.dtsi"
232 };
233 };
234
235};