virt.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. / {
  4. compatible = "cdns,xtensa-iss";
  5. #address-cells = <1>;
  6. #size-cells = <1>;
  7. interrupt-parent = <&pic>;
  8. chosen {
  9. bootargs = "console=ttyS0,115200n8 debug";
  10. };
  11. memory@0 {
  12. device_type = "memory";
  13. reg = <0x00000000 0x80000000>;
  14. };
  15. cpus {
  16. #address-cells = <1>;
  17. #size-cells = <0>;
  18. cpu@0 {
  19. compatible = "cdns,xtensa-cpu";
  20. reg = <0>;
  21. clocks = <&osc>;
  22. };
  23. };
  24. clocks {
  25. osc: osc {
  26. #clock-cells = <0>;
  27. compatible = "fixed-clock";
  28. clock-frequency = <40000000>;
  29. };
  30. };
  31. pic: pic {
  32. compatible = "cdns,xtensa-pic";
  33. /* one cell: internal irq number,
  34. * two cells: second cell == 0: internal irq number
  35. * second cell == 1: external irq number
  36. */
  37. #address-cells = <0>;
  38. #interrupt-cells = <2>;
  39. interrupt-controller;
  40. };
  41. pci {
  42. compatible = "pci-host-ecam-generic";
  43. device_type = "pci";
  44. #address-cells = <3>;
  45. #size-cells = <2>;
  46. #interrupt-cells = <0x1>;
  47. bus-range = <0x0 0x3e>;
  48. reg = <0xf0100000 0x03f00000>;
  49. // BUS_ADDRESS(3) CPU_PHYSICAL(1) SIZE(2)
  50. ranges = <0x01000000 0x0 0x00000000 0xf0000000 0x0 0x00010000>,
  51. <0x02000000 0x0 0xf4000000 0xf4000000 0x0 0x08000000>;
  52. // PCI_DEVICE(3) INT#(1) CONTROLLER(PHANDLE) CONTROLLER_DATA(2)
  53. interrupt-map = <
  54. 0x0000 0x0 0x0 0x1 &pic 0x0 0x1
  55. 0x0800 0x0 0x0 0x1 &pic 0x1 0x1
  56. 0x1000 0x0 0x0 0x1 &pic 0x2 0x1
  57. 0x1800 0x0 0x0 0x1 &pic 0x3 0x1
  58. >;
  59. interrupt-map-mask = <0x1800 0x0 0x0 0x7>;
  60. };
  61. };