xref: /openbmc/u-boot/arch/x86/dts/qemu-x86_q35.dts (revision ae51b570)
1/*
2 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
3 *
4 * SPDX-License-Identifier:	GPL-2.0+
5 */
6
7/dts-v1/;
8
9#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
21/include/ "skeleton.dtsi"
22/include/ "serial.dtsi"
23/include/ "keyboard.dtsi"
24/include/ "rtc.dtsi"
25/include/ "tsc_timer.dtsi"
26
27/ {
28	model = "QEMU x86 (Q35)";
29	compatible = "qemu,x86";
30
31	config {
32		silent_console = <0>;
33		u-boot,no-apm-finalize;
34	};
35
36	chosen {
37		stdout-path = "/serial";
38	};
39
40	cpus {
41		#address-cells = <1>;
42		#size-cells = <0>;
43
44		cpu@0 {
45			device_type = "cpu";
46			compatible = "cpu-qemu";
47			reg = <0>;
48			intel,apic-id = <0>;
49		};
50	};
51
52	tsc-timer {
53		clock-frequency = <1000000000>;
54	};
55
56	pci {
57		compatible = "pci-x86";
58		#address-cells = <3>;
59		#size-cells = <2>;
60		u-boot,dm-pre-reloc;
61		ranges = <0x02000000 0x0 0xc0000000 0xc0000000 0 0x10000000
62			0x42000000 0x0 0xd0000000 0xd0000000 0 0x10000000
63			0x01000000 0x0 0x2000 0x2000 0 0xe000>;
64
65		pch@1f,0 {
66			reg = <0x0000f800 0 0 0 0>;
67			compatible = "intel,pch9";
68
69			irq-router {
70				compatible = "intel,irq-router";
71				intel,pirq-config = "pci";
72				intel,pirq-link = <0x60 8>;
73				intel,pirq-mask = <0x0e40>;
74				intel,pirq-routing = <
75					/* e1000 NIC */
76					PCI_BDF(0, 2, 0) INTA PIRQG
77					/* ICH9 UHCI */
78					PCI_BDF(0, 29, 0) INTA PIRQA
79					PCI_BDF(0, 29, 1) INTB PIRQB
80					PCI_BDF(0, 29, 2) INTC PIRQC
81					/* ICH9 EHCI */
82					PCI_BDF(0, 29, 7) INTD PIRQD
83					/* ICH9 SATA */
84					PCI_BDF(0, 31, 2) INTA PIRQA
85				>;
86			};
87		};
88	};
89
90};
91