blob: 5fbabc2f3c59db2430a8661d34902c70fea9b4e3 [file] [log] [blame]
Bin Menga65b25d2015-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 Meng5c564222015-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 Menga65b25d2015-05-07 21:34:08 +080021/include/ "skeleton.dtsi"
22/include/ "serial.dtsi"
Bin Meng93f8a312015-07-15 16:23:39 +080023/include/ "rtc.dtsi"
Bin Menga65b25d2015-05-07 21:34:08 +080024
25/ {
Bin Meng683b09d2015-06-03 09:20:04 +080026 model = "QEMU x86 (Q35)";
Bin Menga65b25d2015-05-07 21:34:08 +080027 compatible = "qemu,x86";
28
29 config {
30 silent_console = <0>;
Bin Mengf2653e82015-06-03 09:20:05 +080031 u-boot,no-apm-finalize;
Bin Menga65b25d2015-05-07 21:34:08 +080032 };
33
34 chosen {
35 stdout-path = "/serial";
36 };
37
38 pci {
39 compatible = "pci-x86";
40 #address-cells = <3>;
41 #size-cells = <2>;
42 u-boot,dm-pre-reloc;
43 ranges = <0x02000000 0x0 0xc0000000 0xc0000000 0 0x10000000
44 0x42000000 0x0 0xd0000000 0xd0000000 0 0x10000000
45 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
Bin Meng5c564222015-06-03 09:20:06 +080046
47 irq-router@1f,0 {
48 reg = <0x0000f800 0 0 0 0>;
49 compatible = "intel,irq-router";
50 intel,pirq-config = "pci";
51 intel,pirq-link = <0x60 8>;
52 intel,pirq-mask = <0x0e40>;
53 intel,pirq-routing = <
54 /* e1000 NIC */
55 PCI_BDF(0, 2, 0) INTA PIRQG
56 /* ICH9 UHCI */
57 PCI_BDF(0, 29, 0) INTA PIRQA
58 PCI_BDF(0, 29, 1) INTB PIRQB
59 PCI_BDF(0, 29, 2) INTC PIRQC
60 /* ICH9 EHCI */
61 PCI_BDF(0, 29, 7) INTD PIRQD
62 /* ICH9 SATA */
63 PCI_BDF(0, 31, 2) INTA PIRQA
64 >;
65 };
Bin Menga65b25d2015-05-07 21:34:08 +080066 };
67
68};