blob: 7f16971783bf647670bdc71c9400dde2cd178ba1 [file] [log] [blame]
Bin Meng2229c4c2015-05-07 21:34:08 +08001/*
2 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7/dts-v1/;
8
Bin Mengef37e7b2015-06-03 09:20:06 +08009#include <dt-bindings/interrupt-router/intel-irq.h>
10
11/* ICH9 IRQ router has discrete PIRQ control registers */
12#undef PIRQE
13#undef PIRQF
14#undef PIRQG
15#undef PIRQH
16#define PIRQE 8
17#define PIRQF 9
18#define PIRQG 10
19#define PIRQH 11
20
Bin Meng2229c4c2015-05-07 21:34:08 +080021/include/ "skeleton.dtsi"
22/include/ "serial.dtsi"
Bin Meng770fd332015-07-15 16:23:39 +080023/include/ "rtc.dtsi"
Bin Meng2229c4c2015-05-07 21:34:08 +080024
25/ {
Bin Meng000883b2015-06-03 09:20:04 +080026 model = "QEMU x86 (Q35)";
Bin Meng2229c4c2015-05-07 21:34:08 +080027 compatible = "qemu,x86";
28
29 config {
30 silent_console = <0>;
Bin Meng70be0962015-06-03 09:20:05 +080031 u-boot,no-apm-finalize;
Bin Meng2229c4c2015-05-07 21:34:08 +080032 };
33
34 chosen {
35 stdout-path = "/serial";
36 };
37
Bin Meng354dcdd2015-07-22 01:21:13 -070038 cpus {
39 #address-cells = <1>;
40 #size-cells = <0>;
41
42 cpu@0 {
43 device_type = "cpu";
44 compatible = "cpu-x86";
45 reg = <0>;
46 intel,apic-id = <0>;
47 };
Bin Meng6647f572015-07-27 19:16:08 +080048
49 cpu@1 {
50 device_type = "cpu";
51 compatible = "cpu-x86";
52 reg = <1>;
53 intel,apic-id = <1>;
54 };
Bin Meng354dcdd2015-07-22 01:21:13 -070055 };
56
Bin Meng2229c4c2015-05-07 21:34:08 +080057 pci {
58 compatible = "pci-x86";
59 #address-cells = <3>;
60 #size-cells = <2>;
61 u-boot,dm-pre-reloc;
62 ranges = <0x02000000 0x0 0xc0000000 0xc0000000 0 0x10000000
63 0x42000000 0x0 0xd0000000 0xd0000000 0 0x10000000
64 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
Bin Mengef37e7b2015-06-03 09:20:06 +080065
66 irq-router@1f,0 {
67 reg = <0x0000f800 0 0 0 0>;
68 compatible = "intel,irq-router";
69 intel,pirq-config = "pci";
70 intel,pirq-link = <0x60 8>;
71 intel,pirq-mask = <0x0e40>;
72 intel,pirq-routing = <
73 /* e1000 NIC */
74 PCI_BDF(0, 2, 0) INTA PIRQG
75 /* ICH9 UHCI */
76 PCI_BDF(0, 29, 0) INTA PIRQA
77 PCI_BDF(0, 29, 1) INTB PIRQB
78 PCI_BDF(0, 29, 2) INTC PIRQC
79 /* ICH9 EHCI */
80 PCI_BDF(0, 29, 7) INTD PIRQD
81 /* ICH9 SATA */
82 PCI_BDF(0, 31, 2) INTA PIRQA
83 >;
84 };
Bin Meng2229c4c2015-05-07 21:34:08 +080085 };
86
87};