sun6i-a31.dtsi 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. uart0_pins_a: uart0@0 {
  68. allwinner,pins = "PH20", "PH21";
  69. allwinner,function = "uart0";
  70. allwinner,drive = <0>;
  71. allwinner,pull = <0>;
  72. };
  73. };
  74. timer@01c20c00 {
  75. compatible = "allwinner,sun4i-timer";
  76. reg = <0x01c20c00 0xa0>;
  77. interrupts = <0 18 1>,
  78. <0 19 1>,
  79. <0 20 1>,
  80. <0 21 1>,
  81. <0 22 1>;
  82. clocks = <&osc>;
  83. };
  84. wdt1: watchdog@01c20ca0 {
  85. compatible = "allwinner,sun6i-wdt";
  86. reg = <0x01c20ca0 0x20>;
  87. };
  88. uart0: serial@01c28000 {
  89. compatible = "snps,dw-apb-uart";
  90. reg = <0x01c28000 0x400>;
  91. interrupts = <0 0 1>;
  92. reg-shift = <2>;
  93. reg-io-width = <4>;
  94. clocks = <&osc>;
  95. status = "disabled";
  96. };
  97. uart1: serial@01c28400 {
  98. compatible = "snps,dw-apb-uart";
  99. reg = <0x01c28400 0x400>;
  100. interrupts = <0 1 1>;
  101. reg-shift = <2>;
  102. reg-io-width = <4>;
  103. clocks = <&osc>;
  104. status = "disabled";
  105. };
  106. uart2: serial@01c28800 {
  107. compatible = "snps,dw-apb-uart";
  108. reg = <0x01c28800 0x400>;
  109. interrupts = <0 2 1>;
  110. reg-shift = <2>;
  111. reg-io-width = <4>;
  112. clocks = <&osc>;
  113. status = "disabled";
  114. };
  115. uart3: serial@01c28c00 {
  116. compatible = "snps,dw-apb-uart";
  117. reg = <0x01c28c00 0x400>;
  118. interrupts = <0 3 1>;
  119. reg-shift = <2>;
  120. reg-io-width = <4>;
  121. clocks = <&osc>;
  122. status = "disabled";
  123. };
  124. uart4: serial@01c29000 {
  125. compatible = "snps,dw-apb-uart";
  126. reg = <0x01c29000 0x400>;
  127. interrupts = <0 4 1>;
  128. reg-shift = <2>;
  129. reg-io-width = <4>;
  130. clocks = <&osc>;
  131. status = "disabled";
  132. };
  133. uart5: serial@01c29400 {
  134. compatible = "snps,dw-apb-uart";
  135. reg = <0x01c29400 0x400>;
  136. interrupts = <0 5 1>;
  137. reg-shift = <2>;
  138. reg-io-width = <4>;
  139. clocks = <&osc>;
  140. status = "disabled";
  141. };
  142. gic: interrupt-controller@01c81000 {
  143. compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
  144. reg = <0x01c81000 0x1000>,
  145. <0x01c82000 0x1000>,
  146. <0x01c84000 0x2000>,
  147. <0x01c86000 0x2000>;
  148. interrupt-controller;
  149. #interrupt-cells = <3>;
  150. interrupts = <1 9 0xf04>;
  151. };
  152. };
  153. };