mt6582.dtsi 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (c) 2021 Maxim Kutnij <[email protected]>
  4. */
  5. #include <dt-bindings/interrupt-controller/irq.h>
  6. #include <dt-bindings/interrupt-controller/arm-gic.h>
  7. / {
  8. #address-cells = <1>;
  9. #size-cells = <1>;
  10. compatible = "mediatek,mt6582";
  11. interrupt-parent = <&sysirq>;
  12. cpus {
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. cpu@0 {
  16. device_type = "cpu";
  17. compatible = "arm,cortex-a7";
  18. reg = <0x0>;
  19. };
  20. cpu@1 {
  21. device_type = "cpu";
  22. compatible = "arm,cortex-a7";
  23. reg = <0x1>;
  24. };
  25. cpu@2 {
  26. device_type = "cpu";
  27. compatible = "arm,cortex-a7";
  28. reg = <0x2>;
  29. };
  30. cpu@3 {
  31. device_type = "cpu";
  32. compatible = "arm,cortex-a7";
  33. reg = <0x3>;
  34. };
  35. };
  36. system_clk: dummy13m {
  37. compatible = "fixed-clock";
  38. clock-frequency = <13000000>;
  39. #clock-cells = <0>;
  40. };
  41. rtc_clk: dummy32k {
  42. compatible = "fixed-clock";
  43. clock-frequency = <32000>;
  44. #clock-cells = <0>;
  45. };
  46. uart_clk: dummy26m {
  47. compatible = "fixed-clock";
  48. clock-frequency = <26000000>;
  49. #clock-cells = <0>;
  50. };
  51. timer: timer@11008000 {
  52. compatible = "mediatek,mt6577-timer";
  53. reg = <0x10008000 0x80>;
  54. interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>;
  55. clocks = <&system_clk>, <&rtc_clk>;
  56. clock-names = "system-clk", "rtc-clk";
  57. };
  58. sysirq: interrupt-controller@10200100 {
  59. compatible = "mediatek,mt6582-sysirq",
  60. "mediatek,mt6577-sysirq";
  61. interrupt-controller;
  62. #interrupt-cells = <3>;
  63. interrupt-parent = <&gic>;
  64. reg = <0x10200100 0x1c>;
  65. };
  66. gic: interrupt-controller@10211000 {
  67. compatible = "arm,cortex-a7-gic";
  68. interrupt-controller;
  69. #interrupt-cells = <3>;
  70. interrupt-parent = <&gic>;
  71. reg = <0x10211000 0x1000>,
  72. <0x10212000 0x2000>,
  73. <0x10214000 0x2000>,
  74. <0x10216000 0x2000>;
  75. };
  76. uart0: serial@11002000 {
  77. compatible = "mediatek,mt6582-uart",
  78. "mediatek,mt6577-uart";
  79. reg = <0x11002000 0x400>;
  80. interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
  81. clocks = <&uart_clk>;
  82. status = "disabled";
  83. };
  84. uart1: serial@11003000 {
  85. compatible = "mediatek,mt6582-uart",
  86. "mediatek,mt6577-uart";
  87. reg = <0x11003000 0x400>;
  88. interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
  89. clocks = <&uart_clk>;
  90. status = "disabled";
  91. };
  92. uart2: serial@11004000 {
  93. compatible = "mediatek,mt6582-uart",
  94. "mediatek,mt6577-uart";
  95. reg = <0x11004000 0x400>;
  96. interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
  97. clocks = <&uart_clk>;
  98. status = "disabled";
  99. };
  100. uart3: serial@11005000 {
  101. compatible = "mediatek,mt6582-uart",
  102. "mediatek,mt6577-uart";
  103. reg = <0x11005000 0x400>;
  104. interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
  105. clocks = <&uart_clk>;
  106. status = "disabled";
  107. };
  108. watchdog: watchdog@10007000 {
  109. compatible = "mediatek,mt6582-wdt",
  110. "mediatek,mt6589-wdt";
  111. reg = <0x10007000 0x100>;
  112. };
  113. };