]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/x86/dts/qemu-x86_i440fx.dts
x86: qemu: Implement PIRQ routing
[karo-tx-uboot.git] / arch / x86 / dts / qemu-x86_i440fx.dts
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 /include/ "skeleton.dtsi"
12 /include/ "serial.dtsi"
13
14 / {
15         model = "QEMU x86 (I440FX)";
16         compatible = "qemu,x86";
17
18         config {
19                 silent_console = <0>;
20         };
21
22         chosen {
23                 stdout-path = "/serial";
24         };
25
26         pci {
27                 compatible = "pci-x86";
28                 #address-cells = <3>;
29                 #size-cells = <2>;
30                 u-boot,dm-pre-reloc;
31                 ranges = <0x02000000 0x0 0xc0000000 0xc0000000 0 0x10000000
32                         0x42000000 0x0 0xd0000000 0xd0000000 0 0x10000000
33                         0x01000000 0x0 0x2000 0x2000 0 0xe000>;
34
35                 irq-router@1,0 {
36                         reg = <0x00000800 0 0 0 0>;
37                         compatible = "intel,irq-router";
38                         intel,pirq-config = "pci";
39                         intel,pirq-link = <0x60 4>;
40                         intel,pirq-mask = <0x0e40>;
41                         intel,pirq-routing = <
42                                 /* PIIX UHCI */
43                                 PCI_BDF(0, 1, 2) INTD PIRQD
44                                 /* e1000 NIC */
45                                 PCI_BDF(0, 3, 0) INTA PIRQC
46                         >;
47                 };
48         };
49
50 };