sun7i-a20.dtsi 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /*
  2. * Copyright 2013 Maxime Ripard
  3. *
  4. * Maxime Ripard <maxime.ripard@free-electrons.com>
  5. *
  6. * The code contained herein is licensed under the GNU General Public
  7. * License. You may obtain a copy of the GNU General Public License
  8. * Version 2 or later at the following locations:
  9. *
  10. * http://www.opensource.org/licenses/gpl-license.html
  11. * http://www.gnu.org/copyleft/gpl.html
  12. */
  13. /include/ "skeleton.dtsi"
  14. / {
  15. interrupt-parent = <&gic>;
  16. cpus {
  17. #address-cells = <1>;
  18. #size-cells = <0>;
  19. cpu@0 {
  20. compatible = "arm,cortex-a7";
  21. device_type = "cpu";
  22. reg = <0>;
  23. };
  24. cpu@1 {
  25. compatible = "arm,cortex-a7";
  26. device_type = "cpu";
  27. reg = <1>;
  28. };
  29. };
  30. memory {
  31. reg = <0x40000000 0x80000000>;
  32. };
  33. clocks {
  34. #address-cells = <1>;
  35. #size-cells = <1>;
  36. ranges;
  37. osc24M: osc24M@01c20050 {
  38. #clock-cells = <0>;
  39. compatible = "fixed-clock";
  40. clock-frequency = <24000000>;
  41. };
  42. osc32k: osc32k {
  43. #clock-cells = <0>;
  44. compatible = "fixed-clock";
  45. clock-frequency = <32768>;
  46. };
  47. };
  48. soc@01c00000 {
  49. compatible = "simple-bus";
  50. #address-cells = <1>;
  51. #size-cells = <1>;
  52. ranges;
  53. timer@01c20c00 {
  54. compatible = "allwinner,sun4i-timer";
  55. reg = <0x01c20c00 0x90>;
  56. interrupts = <0 22 1>,
  57. <0 23 1>,
  58. <0 24 1>,
  59. <0 25 1>,
  60. <0 67 1>,
  61. <0 68 1>;
  62. clocks = <&osc24M>;
  63. };
  64. wdt: watchdog@01c20c90 {
  65. compatible = "allwinner,sun4i-wdt";
  66. reg = <0x01c20c90 0x10>;
  67. };
  68. uart0: serial@01c28000 {
  69. compatible = "snps,dw-apb-uart";
  70. reg = <0x01c28000 0x400>;
  71. interrupts = <0 1 1>;
  72. reg-shift = <2>;
  73. reg-io-width = <4>;
  74. clocks = <&osc24M>;
  75. status = "disabled";
  76. };
  77. uart1: serial@01c28400 {
  78. compatible = "snps,dw-apb-uart";
  79. reg = <0x01c28400 0x400>;
  80. interrupts = <0 2 1>;
  81. reg-shift = <2>;
  82. reg-io-width = <4>;
  83. clocks = <&osc24M>;
  84. status = "disabled";
  85. };
  86. uart2: serial@01c28800 {
  87. compatible = "snps,dw-apb-uart";
  88. reg = <0x01c28800 0x400>;
  89. interrupts = <0 3 1>;
  90. reg-shift = <2>;
  91. reg-io-width = <4>;
  92. clocks = <&osc24M>;
  93. status = "disabled";
  94. };
  95. uart3: serial@01c28c00 {
  96. compatible = "snps,dw-apb-uart";
  97. reg = <0x01c28c00 0x400>;
  98. interrupts = <0 4 1>;
  99. reg-shift = <2>;
  100. reg-io-width = <4>;
  101. clocks = <&osc24M>;
  102. status = "disabled";
  103. };
  104. uart4: serial@01c29000 {
  105. compatible = "snps,dw-apb-uart";
  106. reg = <0x01c29000 0x400>;
  107. interrupts = <0 17 1>;
  108. reg-shift = <2>;
  109. reg-io-width = <4>;
  110. clocks = <&osc24M>;
  111. status = "disabled";
  112. };
  113. uart5: serial@01c29400 {
  114. compatible = "snps,dw-apb-uart";
  115. reg = <0x01c29400 0x400>;
  116. interrupts = <0 18 1>;
  117. reg-shift = <2>;
  118. reg-io-width = <4>;
  119. clocks = <&osc24M>;
  120. status = "disabled";
  121. };
  122. uart6: serial@01c29800 {
  123. compatible = "snps,dw-apb-uart";
  124. reg = <0x01c29800 0x400>;
  125. interrupts = <0 19 1>;
  126. reg-shift = <2>;
  127. reg-io-width = <4>;
  128. clocks = <&osc24M>;
  129. status = "disabled";
  130. };
  131. uart7: serial@01c29c00 {
  132. compatible = "snps,dw-apb-uart";
  133. reg = <0x01c29c00 0x400>;
  134. interrupts = <0 20 1>;
  135. reg-shift = <2>;
  136. reg-io-width = <4>;
  137. clocks = <&osc24M>;
  138. status = "disabled";
  139. };
  140. gic: interrupt-controller@01c81000 {
  141. compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
  142. reg = <0x01c81000 0x1000>,
  143. <0x01c82000 0x1000>,
  144. <0x01c84000 0x2000>,
  145. <0x01c86000 0x2000>;
  146. interrupt-controller;
  147. #interrupt-cells = <3>;
  148. interrupts = <1 9 0xf04>;
  149. };
  150. };
  151. };