mt7623.dtsi 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /*
  2. * Copyright (c) 2016 MediaTek Inc.
  3. * Author: John Crispin <blogic@openwrt.org>
  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 version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #include <dt-bindings/interrupt-controller/irq.h>
  15. #include <dt-bindings/interrupt-controller/arm-gic.h>
  16. #include "skeleton64.dtsi"
  17. / {
  18. compatible = "mediatek,mt7623";
  19. interrupt-parent = <&sysirq>;
  20. cpus {
  21. #address-cells = <1>;
  22. #size-cells = <0>;
  23. enable-method = "mediatek,mt6589-smp";
  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. system_clk: dummy13m {
  46. compatible = "fixed-clock";
  47. clock-frequency = <13000000>;
  48. #clock-cells = <0>;
  49. };
  50. rtc_clk: dummy32k {
  51. compatible = "fixed-clock";
  52. clock-frequency = <32000>;
  53. #clock-cells = <0>;
  54. };
  55. uart_clk: dummy26m {
  56. compatible = "fixed-clock";
  57. clock-frequency = <26000000>;
  58. #clock-cells = <0>;
  59. };
  60. timer {
  61. compatible = "arm,armv7-timer";
  62. interrupt-parent = <&gic>;
  63. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  64. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  65. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  66. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  67. };
  68. watchdog: watchdog@10007000 {
  69. compatible = "mediatek,mt7623-wdt",
  70. "mediatek,mt6589-wdt";
  71. reg = <0 0x10007000 0 0x100>;
  72. };
  73. timer: timer@10008000 {
  74. compatible = "mediatek,mt7623-timer",
  75. "mediatek,mt6577-timer";
  76. reg = <0 0x10008000 0 0x80>;
  77. interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>;
  78. clocks = <&system_clk>, <&rtc_clk>;
  79. clock-names = "system-clk", "rtc-clk";
  80. };
  81. sysirq: interrupt-controller@10200100 {
  82. compatible = "mediatek,mt7623-sysirq",
  83. "mediatek,mt6577-sysirq";
  84. interrupt-controller;
  85. #interrupt-cells = <3>;
  86. interrupt-parent = <&gic>;
  87. reg = <0 0x10200100 0 0x1c>;
  88. };
  89. gic: interrupt-controller@10211000 {
  90. compatible = "arm,cortex-a7-gic";
  91. interrupt-controller;
  92. #interrupt-cells = <3>;
  93. interrupt-parent = <&gic>;
  94. reg = <0 0x10211000 0 0x1000>,
  95. <0 0x10212000 0 0x1000>,
  96. <0 0x10214000 0 0x2000>,
  97. <0 0x10216000 0 0x2000>;
  98. };
  99. uart0: serial@11002000 {
  100. compatible = "mediatek,mt7623-uart",
  101. "mediatek,mt6577-uart";
  102. reg = <0 0x11002000 0 0x400>;
  103. interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
  104. clocks = <&uart_clk>;
  105. status = "disabled";
  106. };
  107. uart1: serial@11003000 {
  108. compatible = "mediatek,mt7623-uart",
  109. "mediatek,mt6577-uart";
  110. reg = <0 0x11003000 0 0x400>;
  111. interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
  112. clocks = <&uart_clk>;
  113. status = "disabled";
  114. };
  115. uart2: serial@11004000 {
  116. compatible = "mediatek,mt7623-uart",
  117. "mediatek,mt6577-uart";
  118. reg = <0 0x11004000 0 0x400>;
  119. interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
  120. clocks = <&uart_clk>;
  121. status = "disabled";
  122. };
  123. uart3: serial@11005000 {
  124. compatible = "mediatek,mt7623-uart",
  125. "mediatek,mt6577-uart";
  126. reg = <0 0x11005000 0 0x400>;
  127. interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
  128. clocks = <&uart_clk>;
  129. status = "disabled";
  130. };
  131. };