tegra124.dtsi 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. #include <dt-bindings/gpio/tegra-gpio.h>
  2. #include <dt-bindings/interrupt-controller/arm-gic.h>
  3. #include "skeleton.dtsi"
  4. / {
  5. compatible = "nvidia,tegra124";
  6. interrupt-parent = <&gic>;
  7. gic: interrupt-controller@50041000 {
  8. compatible = "arm,cortex-a15-gic";
  9. #interrupt-cells = <3>;
  10. interrupt-controller;
  11. reg = <0x50041000 0x1000>,
  12. <0x50042000 0x1000>,
  13. <0x50044000 0x2000>,
  14. <0x50046000 0x2000>;
  15. interrupts = <GIC_PPI 9
  16. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  17. };
  18. timer@60005000 {
  19. compatible = "nvidia,tegra124-timer", "nvidia,tegra20-timer";
  20. reg = <0x60005000 0x400>;
  21. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
  22. <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
  23. <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
  24. <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
  25. <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
  26. <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
  27. };
  28. gpio: gpio@6000d000 {
  29. compatible = "nvidia,tegra124-gpio", "nvidia,tegra30-gpio";
  30. reg = <0x6000d000 0x1000>;
  31. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
  32. <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
  33. <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
  34. <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
  35. <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
  36. <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
  37. <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>,
  38. <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
  39. #gpio-cells = <2>;
  40. gpio-controller;
  41. #interrupt-cells = <2>;
  42. interrupt-controller;
  43. };
  44. /*
  45. * There are two serial driver i.e. 8250 based simple serial
  46. * driver and APB DMA based serial driver for higher baudrate
  47. * and performace. To enable the 8250 based driver, the compatible
  48. * is "nvidia,tegra124-uart", "nvidia,tegra20-uart" and to enable
  49. * the APB DMA based serial driver, the comptible is
  50. * "nvidia,tegra124-hsuart", "nvidia,tegra30-hsuart".
  51. */
  52. serial@70006000 {
  53. compatible = "nvidia,tegra124-uart", "nvidia,tegra20-uart";
  54. reg = <0x70006000 0x40>;
  55. reg-shift = <2>;
  56. interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
  57. status = "disabled";
  58. };
  59. serial@70006040 {
  60. compatible = "nvidia,tegra124-uart", "nvidia,tegra20-uart";
  61. reg = <0x70006040 0x40>;
  62. reg-shift = <2>;
  63. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  64. status = "disabled";
  65. };
  66. serial@70006200 {
  67. compatible = "nvidia,tegra124-uart", "nvidia,tegra20-uart";
  68. reg = <0x70006200 0x40>;
  69. reg-shift = <2>;
  70. interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
  71. status = "disabled";
  72. };
  73. serial@70006300 {
  74. compatible = "nvidia,tegra124-uart", "nvidia,tegra20-uart";
  75. reg = <0x70006300 0x40>;
  76. reg-shift = <2>;
  77. interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
  78. status = "disabled";
  79. };
  80. serial@70006400 {
  81. compatible = "nvidia,tegra124-uart", "nvidia,tegra20-uart";
  82. reg = <0x70006400 0x40>;
  83. reg-shift = <2>;
  84. interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
  85. status = "disabled";
  86. };
  87. rtc@7000e000 {
  88. compatible = "nvidia,tegra124-rtc", "nvidia,tegra20-rtc";
  89. reg = <0x7000e000 0x100>;
  90. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  91. };
  92. pmc@7000e400 {
  93. compatible = "nvidia,tegra124-pmc";
  94. reg = <0x7000e400 0x400>;
  95. };
  96. cpus {
  97. #address-cells = <1>;
  98. #size-cells = <0>;
  99. cpu@0 {
  100. device_type = "cpu";
  101. compatible = "arm,cortex-a15";
  102. reg = <0>;
  103. };
  104. cpu@1 {
  105. device_type = "cpu";
  106. compatible = "arm,cortex-a15";
  107. reg = <1>;
  108. };
  109. cpu@2 {
  110. device_type = "cpu";
  111. compatible = "arm,cortex-a15";
  112. reg = <2>;
  113. };
  114. cpu@3 {
  115. device_type = "cpu";
  116. compatible = "arm,cortex-a15";
  117. reg = <3>;
  118. };
  119. };
  120. timer {
  121. compatible = "arm,armv7-timer";
  122. interrupts = <GIC_PPI 13
  123. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  124. <GIC_PPI 14
  125. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  126. <GIC_PPI 11
  127. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  128. <GIC_PPI 10
  129. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  130. };
  131. };