blob: f1c4cb9c037766b1663525946b76a06291fa08e2 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Bin Menga65b25d2015-05-07 21:34:08 +08002/*
3 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
Bin Menga65b25d2015-05-07 21:34:08 +08004 */
5
6/dts-v1/;
7
Bin Meng5c564222015-06-03 09:20:06 +08008#include <dt-bindings/interrupt-router/intel-irq.h>
9
10/* ICH9 IRQ router has discrete PIRQ control registers */
11#undef PIRQE
12#undef PIRQF
13#undef PIRQG
14#undef PIRQH
15#define PIRQE 8
16#define PIRQF 9
17#define PIRQG 10
18#define PIRQH 11
19
Bin Menga65b25d2015-05-07 21:34:08 +080020/include/ "skeleton.dtsi"
21/include/ "serial.dtsi"
Bin Mengb6ff6ce2015-11-12 05:33:06 -080022/include/ "keyboard.dtsi"
Bin Meng93f8a312015-07-15 16:23:39 +080023/include/ "rtc.dtsi"
Bin Meng80af3982015-11-13 00:11:22 -080024/include/ "tsc_timer.dtsi"
Bin Menga65b25d2015-05-07 21:34:08 +080025
26/ {
Bin Meng683b09d2015-06-03 09:20:04 +080027 model = "QEMU x86 (Q35)";
Bin Menga65b25d2015-05-07 21:34:08 +080028 compatible = "qemu,x86";
29
30 config {
31 silent_console = <0>;
Bin Mengf2653e82015-06-03 09:20:05 +080032 u-boot,no-apm-finalize;
Bin Menga65b25d2015-05-07 21:34:08 +080033 };
34
35 chosen {
36 stdout-path = "/serial";
37 };
38
Bin Menga8ebf282015-07-22 01:21:13 -070039 cpus {
40 #address-cells = <1>;
41 #size-cells = <0>;
Bin Meng2cffd902017-01-18 03:32:57 -080042 u-boot,dm-pre-reloc;
Bin Menga8ebf282015-07-22 01:21:13 -070043
44 cpu@0 {
45 device_type = "cpu";
Miao Yan5a694052016-01-07 01:32:01 -080046 compatible = "cpu-qemu";
Bin Meng2cffd902017-01-18 03:32:57 -080047 u-boot,dm-pre-reloc;
Bin Menga8ebf282015-07-22 01:21:13 -070048 reg = <0>;
49 intel,apic-id = <0>;
50 };
51 };
52
Bin Meng80af3982015-11-13 00:11:22 -080053 tsc-timer {
54 clock-frequency = <1000000000>;
55 };
56
Bin Menga65b25d2015-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 Meng5c564222015-06-03 09:20:06 +080065
Simon Glassf2b85ab2016-01-18 20:19:21 -070066 pch@1f,0 {
Bin Meng5c564222015-06-03 09:20:06 +080067 reg = <0x0000f800 0 0 0 0>;
Simon Glassf2b85ab2016-01-18 20:19:21 -070068 compatible = "intel,pch9";
Bin Meng2cffd902017-01-18 03:32:57 -080069 u-boot,dm-pre-reloc;
Simon Glassf2b85ab2016-01-18 20:19:21 -070070
71 irq-router {
72 compatible = "intel,irq-router";
Bin Meng2cffd902017-01-18 03:32:57 -080073 u-boot,dm-pre-reloc;
Simon Glassf2b85ab2016-01-18 20:19:21 -070074 intel,pirq-config = "pci";
Bin Mengce8dd772016-05-07 07:46:15 -070075 intel,actl-8bit;
76 intel,actl-addr = <0x44>;
Simon Glassf2b85ab2016-01-18 20:19:21 -070077 intel,pirq-link = <0x60 8>;
78 intel,pirq-mask = <0x0e40>;
79 intel,pirq-routing = <
80 /* e1000 NIC */
81 PCI_BDF(0, 2, 0) INTA PIRQG
82 /* ICH9 UHCI */
83 PCI_BDF(0, 29, 0) INTA PIRQA
84 PCI_BDF(0, 29, 1) INTB PIRQB
85 PCI_BDF(0, 29, 2) INTC PIRQC
86 /* ICH9 EHCI */
87 PCI_BDF(0, 29, 7) INTD PIRQD
88 /* ICH9 SATA */
89 PCI_BDF(0, 31, 2) INTA PIRQA
90 >;
91 };
Bin Meng5c564222015-06-03 09:20:06 +080092 };
Bin Menga65b25d2015-05-07 21:34:08 +080093 };
94
95};