mt6589.dtsi 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /*
  2. * Copyright (c) 2014 MundoReader S.L.
  3. * Author: Matthias Brugger <matthias.bgg@gmail.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #include <dt-bindings/interrupt-controller/irq.h>
  16. #include <dt-bindings/interrupt-controller/arm-gic.h>
  17. #include "skeleton.dtsi"
  18. / {
  19. compatible = "mediatek,mt6589";
  20. interrupt-parent = <&sysirq>;
  21. cpus {
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. cpu@0 {
  25. device_type = "cpu";
  26. compatible = "arm,cortex-a7";
  27. reg = <0x0>;
  28. };
  29. cpu@1 {
  30. device_type = "cpu";
  31. compatible = "arm,cortex-a7";
  32. reg = <0x1>;
  33. };
  34. cpu@2 {
  35. device_type = "cpu";
  36. compatible = "arm,cortex-a7";
  37. reg = <0x2>;
  38. };
  39. cpu@3 {
  40. device_type = "cpu";
  41. compatible = "arm,cortex-a7";
  42. reg = <0x3>;
  43. };
  44. };
  45. clocks {
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. compatible = "simple-bus";
  49. ranges;
  50. system_clk: dummy13m {
  51. compatible = "fixed-clock";
  52. clock-frequency = <13000000>;
  53. #clock-cells = <0>;
  54. };
  55. rtc_clk: dummy32k {
  56. compatible = "fixed-clock";
  57. clock-frequency = <32000>;
  58. #clock-cells = <0>;
  59. };
  60. uart_clk: dummy26m {
  61. compatible = "fixed-clock";
  62. clock-frequency = <26000000>;
  63. #clock-cells = <0>;
  64. };
  65. };
  66. soc {
  67. #address-cells = <1>;
  68. #size-cells = <1>;
  69. compatible = "simple-bus";
  70. ranges;
  71. timer: timer@10008000 {
  72. compatible = "mediatek,mt6577-timer";
  73. reg = <0x10008000 0x80>;
  74. interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
  75. clocks = <&system_clk>, <&rtc_clk>;
  76. clock-names = "system-clk", "rtc-clk";
  77. };
  78. sysirq: interrupt-controller@10200100 {
  79. compatible = "mediatek,mt6589-sysirq",
  80. "mediatek,mt6577-sysirq";
  81. interrupt-controller;
  82. #interrupt-cells = <3>;
  83. interrupt-parent = <&gic>;
  84. reg = <0x10200100 0x1c>;
  85. };
  86. gic: interrupt-controller@10211000 {
  87. compatible = "arm,cortex-a7-gic";
  88. interrupt-controller;
  89. #interrupt-cells = <3>;
  90. interrupt-parent = <&gic>;
  91. reg = <0x10211000 0x1000>,
  92. <0x10212000 0x1000>,
  93. <0x10214000 0x2000>,
  94. <0x10216000 0x2000>;
  95. };
  96. uart0: serial@11006000 {
  97. compatible = "mediatek,mt6577-uart";
  98. reg = <0x11006000 0x400>;
  99. interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
  100. clocks = <&uart_clk>;
  101. status = "disabled";
  102. };
  103. uart1: serial@11007000 {
  104. compatible = "mediatek,mt6577-uart";
  105. reg = <0x11007000 0x400>;
  106. interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
  107. clocks = <&uart_clk>;
  108. status = "disabled";
  109. };
  110. uart2: serial@11008000 {
  111. compatible = "mediatek,mt6577-uart";
  112. reg = <0x11008000 0x400>;
  113. interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
  114. clocks = <&uart_clk>;
  115. status = "disabled";
  116. };
  117. uart3: serial@11009000 {
  118. compatible = "mediatek,mt6577-uart";
  119. reg = <0x11009000 0x400>;
  120. interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
  121. clocks = <&uart_clk>;
  122. status = "disabled";
  123. };
  124. wdt: watchdog@010000000 {
  125. compatible = "mediatek,mt6589-wdt";
  126. reg = <0x10000000 0x44>;
  127. };
  128. };
  129. };