sun6i-a31.dtsi 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. cpu@2 {
  30. compatible = "arm,cortex-a7";
  31. device_type = "cpu";
  32. reg = <2>;
  33. };
  34. cpu@3 {
  35. compatible = "arm,cortex-a7";
  36. device_type = "cpu";
  37. reg = <3>;
  38. };
  39. };
  40. memory {
  41. reg = <0x40000000 0x80000000>;
  42. };
  43. clocks {
  44. #address-cells = <1>;
  45. #size-cells = <0>;
  46. osc: oscillator {
  47. #clock-cells = <0>;
  48. compatible = "fixed-clock";
  49. clock-frequency = <24000000>;
  50. };
  51. };
  52. soc@01c00000 {
  53. compatible = "simple-bus";
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. ranges;
  57. pio: pinctrl@01c20800 {
  58. compatible = "allwinner,sun6i-a31-pinctrl";
  59. reg = <0x01c20800 0x400>;
  60. interrupts = <0 11 1>, <0 15 1>, <0 16 1>, <0 17 1>;
  61. clocks = <&osc>;
  62. gpio-controller;
  63. interrupt-controller;
  64. #address-cells = <1>;
  65. #size-cells = <0>;
  66. #gpio-cells = <3>;
  67. };
  68. timer@01c20c00 {
  69. compatible = "allwinner,sun4i-timer";
  70. reg = <0x01c20c00 0xa0>;
  71. interrupts = <0 18 1>,
  72. <0 19 1>,
  73. <0 20 1>,
  74. <0 21 1>,
  75. <0 22 1>;
  76. clocks = <&osc>;
  77. };
  78. wdt1: watchdog@01c20ca0 {
  79. compatible = "allwinner,sun6i-wdt";
  80. reg = <0x01c20ca0 0x20>;
  81. };
  82. uart0: serial@01c28000 {
  83. compatible = "snps,dw-apb-uart";
  84. reg = <0x01c28000 0x400>;
  85. interrupts = <0 0 1>;
  86. reg-shift = <2>;
  87. reg-io-width = <4>;
  88. clocks = <&osc>;
  89. status = "disabled";
  90. };
  91. uart1: serial@01c28400 {
  92. compatible = "snps,dw-apb-uart";
  93. reg = <0x01c28400 0x400>;
  94. interrupts = <0 1 1>;
  95. reg-shift = <2>;
  96. reg-io-width = <4>;
  97. clocks = <&osc>;
  98. status = "disabled";
  99. };
  100. uart2: serial@01c28800 {
  101. compatible = "snps,dw-apb-uart";
  102. reg = <0x01c28800 0x400>;
  103. interrupts = <0 2 1>;
  104. reg-shift = <2>;
  105. reg-io-width = <4>;
  106. clocks = <&osc>;
  107. status = "disabled";
  108. };
  109. uart3: serial@01c28c00 {
  110. compatible = "snps,dw-apb-uart";
  111. reg = <0x01c28c00 0x400>;
  112. interrupts = <0 3 1>;
  113. reg-shift = <2>;
  114. reg-io-width = <4>;
  115. clocks = <&osc>;
  116. status = "disabled";
  117. };
  118. uart4: serial@01c29000 {
  119. compatible = "snps,dw-apb-uart";
  120. reg = <0x01c29000 0x400>;
  121. interrupts = <0 4 1>;
  122. reg-shift = <2>;
  123. reg-io-width = <4>;
  124. clocks = <&osc>;
  125. status = "disabled";
  126. };
  127. uart5: serial@01c29400 {
  128. compatible = "snps,dw-apb-uart";
  129. reg = <0x01c29400 0x400>;
  130. interrupts = <0 5 1>;
  131. reg-shift = <2>;
  132. reg-io-width = <4>;
  133. clocks = <&osc>;
  134. status = "disabled";
  135. };
  136. gic: interrupt-controller@01c81000 {
  137. compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
  138. reg = <0x01c81000 0x1000>,
  139. <0x01c82000 0x1000>,
  140. <0x01c84000 0x2000>,
  141. <0x01c86000 0x2000>;
  142. interrupt-controller;
  143. #interrupt-cells = <3>;
  144. interrupts = <1 9 0xf04>;
  145. };
  146. };
  147. };