qemu-x86_q35.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. /dts-v1/;
  7. #include <dt-bindings/interrupt-router/intel-irq.h>
  8. /* ICH9 IRQ router has discrete PIRQ control registers */
  9. #undef PIRQE
  10. #undef PIRQF
  11. #undef PIRQG
  12. #undef PIRQH
  13. #define PIRQE 8
  14. #define PIRQF 9
  15. #define PIRQG 10
  16. #define PIRQH 11
  17. /include/ "skeleton.dtsi"
  18. /include/ "serial.dtsi"
  19. /include/ "keyboard.dtsi"
  20. /include/ "rtc.dtsi"
  21. /include/ "tsc_timer.dtsi"
  22. / {
  23. model = "QEMU x86 (Q35)";
  24. compatible = "qemu,x86";
  25. config {
  26. silent_console = <0>;
  27. u-boot,no-apm-finalize;
  28. };
  29. chosen {
  30. stdout-path = "/serial";
  31. };
  32. cpus {
  33. #address-cells = <1>;
  34. #size-cells = <0>;
  35. cpu@0 {
  36. device_type = "cpu";
  37. compatible = "cpu-x86";
  38. reg = <0>;
  39. intel,apic-id = <0>;
  40. };
  41. cpu@1 {
  42. device_type = "cpu";
  43. compatible = "cpu-x86";
  44. reg = <1>;
  45. intel,apic-id = <1>;
  46. };
  47. };
  48. tsc-timer {
  49. clock-frequency = <1000000000>;
  50. };
  51. pci {
  52. compatible = "pci-x86";
  53. #address-cells = <3>;
  54. #size-cells = <2>;
  55. u-boot,dm-pre-reloc;
  56. ranges = <0x02000000 0x0 0xc0000000 0xc0000000 0 0x10000000
  57. 0x42000000 0x0 0xd0000000 0xd0000000 0 0x10000000
  58. 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
  59. irq-router@1f,0 {
  60. reg = <0x0000f800 0 0 0 0>;
  61. compatible = "intel,irq-router";
  62. intel,pirq-config = "pci";
  63. intel,pirq-link = <0x60 8>;
  64. intel,pirq-mask = <0x0e40>;
  65. intel,pirq-routing = <
  66. /* e1000 NIC */
  67. PCI_BDF(0, 2, 0) INTA PIRQG
  68. /* ICH9 UHCI */
  69. PCI_BDF(0, 29, 0) INTA PIRQA
  70. PCI_BDF(0, 29, 1) INTB PIRQB
  71. PCI_BDF(0, 29, 2) INTC PIRQC
  72. /* ICH9 EHCI */
  73. PCI_BDF(0, 29, 7) INTD PIRQD
  74. /* ICH9 SATA */
  75. PCI_BDF(0, 31, 2) INTA PIRQA
  76. >;
  77. };
  78. };
  79. };