blob: 9faae7fb5693783b5384535419543a0bcdb81e75 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Bin Meng2229c4c2015-05-07 21:34:08 +08002/*
3 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
Bin Meng2229c4c2015-05-07 21:34:08 +08004 */
5
6/dts-v1/;
7
Bin Mengef37e7b2015-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 Meng2229c4c2015-05-07 21:34:08 +080020/include/ "skeleton.dtsi"
21/include/ "serial.dtsi"
Bin Meng7ca73742015-11-12 05:33:06 -080022/include/ "keyboard.dtsi"
Bin Mengaf5b8d22018-07-19 03:07:33 -070023/include/ "reset.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
Simon Glassbee77f62020-11-05 06:32:17 -070027#include "smbios.dtsi"
28
Bin Meng2229c4c2015-05-07 21:34:08 +080029/ {
Bin Meng000883b2015-06-03 09:20:04 +080030 model = "QEMU x86 (Q35)";
Bin Meng2229c4c2015-05-07 21:34:08 +080031 compatible = "qemu,x86";
32
33 config {
34 silent_console = <0>;
Bin Meng70be0962015-06-03 09:20:05 +080035 u-boot,no-apm-finalize;
Bin Meng2229c4c2015-05-07 21:34:08 +080036 };
37
38 chosen {
39 stdout-path = "/serial";
40 };
41
Bin Meng354dcdd2015-07-22 01:21:13 -070042 cpus {
43 #address-cells = <1>;
44 #size-cells = <0>;
Bin Menged3fd5b2017-01-18 03:32:57 -080045 u-boot,dm-pre-reloc;
Bin Meng354dcdd2015-07-22 01:21:13 -070046
47 cpu@0 {
48 device_type = "cpu";
Miao Yan4336af62016-01-07 01:32:01 -080049 compatible = "cpu-qemu";
Bin Menged3fd5b2017-01-18 03:32:57 -080050 u-boot,dm-pre-reloc;
Bin Meng354dcdd2015-07-22 01:21:13 -070051 reg = <0>;
52 intel,apic-id = <0>;
53 };
54 };
55
Bin Meng38de0202015-11-13 00:11:22 -080056 tsc-timer {
57 clock-frequency = <1000000000>;
58 };
59
Bin Meng2229c4c2015-05-07 21:34:08 +080060 pci {
61 compatible = "pci-x86";
62 #address-cells = <3>;
63 #size-cells = <2>;
64 u-boot,dm-pre-reloc;
65 ranges = <0x02000000 0x0 0xc0000000 0xc0000000 0 0x10000000
66 0x42000000 0x0 0xd0000000 0xd0000000 0 0x10000000
67 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
Bin Mengef37e7b2015-06-03 09:20:06 +080068
Simon Glass32761632016-01-18 20:19:21 -070069 pch@1f,0 {
Bin Mengef37e7b2015-06-03 09:20:06 +080070 reg = <0x0000f800 0 0 0 0>;
Simon Glass32761632016-01-18 20:19:21 -070071 compatible = "intel,pch9";
Bin Menged3fd5b2017-01-18 03:32:57 -080072 u-boot,dm-pre-reloc;
Simon Glass32761632016-01-18 20:19:21 -070073
74 irq-router {
75 compatible = "intel,irq-router";
Bin Menged3fd5b2017-01-18 03:32:57 -080076 u-boot,dm-pre-reloc;
Simon Glass32761632016-01-18 20:19:21 -070077 intel,pirq-config = "pci";
Bin Meng0651f622016-05-07 07:46:15 -070078 intel,actl-8bit;
79 intel,actl-addr = <0x44>;
Simon Glass32761632016-01-18 20:19:21 -070080 intel,pirq-link = <0x60 8>;
81 intel,pirq-mask = <0x0e40>;
82 intel,pirq-routing = <
83 /* e1000 NIC */
84 PCI_BDF(0, 2, 0) INTA PIRQG
85 /* ICH9 UHCI */
86 PCI_BDF(0, 29, 0) INTA PIRQA
87 PCI_BDF(0, 29, 1) INTB PIRQB
88 PCI_BDF(0, 29, 2) INTC PIRQC
89 /* ICH9 EHCI */
90 PCI_BDF(0, 29, 7) INTD PIRQD
91 /* ICH9 SATA */
92 PCI_BDF(0, 31, 2) INTA PIRQA
93 >;
94 };
Bin Mengef37e7b2015-06-03 09:20:06 +080095 };
Bin Meng2229c4c2015-05-07 21:34:08 +080096 };
97
98};