blob: bc398dd72c6dc76caf11dbd8a7e53036bbc632e3 [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 Meng7ca73742015-11-12 05:33:06 -080023/include/ "keyboard.dtsi"
Bin Meng770fd332015-07-15 16:23:39 +080024/include/ "rtc.dtsi"
Bin Meng38de0202015-11-13 00:11:22 -080025/include/ "tsc_timer.dtsi"
Bin Meng2229c4c2015-05-07 21:34:08 +080026
27/ {
Bin Meng000883b2015-06-03 09:20:04 +080028 model = "QEMU x86 (Q35)";
Bin Meng2229c4c2015-05-07 21:34:08 +080029 compatible = "qemu,x86";
30
31 config {
32 silent_console = <0>;
Bin Meng70be0962015-06-03 09:20:05 +080033 u-boot,no-apm-finalize;
Bin Meng2229c4c2015-05-07 21:34:08 +080034 };
35
36 chosen {
37 stdout-path = "/serial";
38 };
39
Bin Meng354dcdd2015-07-22 01:21:13 -070040 cpus {
41 #address-cells = <1>;
42 #size-cells = <0>;
Bin Menged3fd5b2017-01-18 03:32:57 -080043 u-boot,dm-pre-reloc;
Bin Meng354dcdd2015-07-22 01:21:13 -070044
45 cpu@0 {
46 device_type = "cpu";
Miao Yan4336af62016-01-07 01:32:01 -080047 compatible = "cpu-qemu";
Bin Menged3fd5b2017-01-18 03:32:57 -080048 u-boot,dm-pre-reloc;
Bin Meng354dcdd2015-07-22 01:21:13 -070049 reg = <0>;
50 intel,apic-id = <0>;
51 };
52 };
53
Bin Meng38de0202015-11-13 00:11:22 -080054 tsc-timer {
55 clock-frequency = <1000000000>;
56 };
57
Bin Meng2229c4c2015-05-07 21:34:08 +080058 pci {
59 compatible = "pci-x86";
60 #address-cells = <3>;
61 #size-cells = <2>;
62 u-boot,dm-pre-reloc;
63 ranges = <0x02000000 0x0 0xc0000000 0xc0000000 0 0x10000000
64 0x42000000 0x0 0xd0000000 0xd0000000 0 0x10000000
65 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
Bin Mengef37e7b2015-06-03 09:20:06 +080066
Simon Glass32761632016-01-18 20:19:21 -070067 pch@1f,0 {
Bin Mengef37e7b2015-06-03 09:20:06 +080068 reg = <0x0000f800 0 0 0 0>;
Simon Glass32761632016-01-18 20:19:21 -070069 compatible = "intel,pch9";
Bin Menged3fd5b2017-01-18 03:32:57 -080070 u-boot,dm-pre-reloc;
Simon Glass32761632016-01-18 20:19:21 -070071
72 irq-router {
73 compatible = "intel,irq-router";
Bin Menged3fd5b2017-01-18 03:32:57 -080074 u-boot,dm-pre-reloc;
Simon Glass32761632016-01-18 20:19:21 -070075 intel,pirq-config = "pci";
Bin Meng0651f622016-05-07 07:46:15 -070076 intel,actl-8bit;
77 intel,actl-addr = <0x44>;
Simon Glass32761632016-01-18 20:19:21 -070078 intel,pirq-link = <0x60 8>;
79 intel,pirq-mask = <0x0e40>;
80 intel,pirq-routing = <
81 /* e1000 NIC */
82 PCI_BDF(0, 2, 0) INTA PIRQG
83 /* ICH9 UHCI */
84 PCI_BDF(0, 29, 0) INTA PIRQA
85 PCI_BDF(0, 29, 1) INTB PIRQB
86 PCI_BDF(0, 29, 2) INTC PIRQC
87 /* ICH9 EHCI */
88 PCI_BDF(0, 29, 7) INTD PIRQD
89 /* ICH9 SATA */
90 PCI_BDF(0, 31, 2) INTA PIRQA
91 >;
92 };
Bin Mengef37e7b2015-06-03 09:20:06 +080093 };
Bin Meng2229c4c2015-05-07 21:34:08 +080094 };
95
96};