mt7981b.dtsi 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. // SPDX-License-Identifier: GPL-2.0-only OR MIT
  2. #include <dt-bindings/clock/mediatek,mt7981-clk.h>
  3. #include <dt-bindings/interrupt-controller/arm-gic.h>
  4. #include <dt-bindings/reset/mt7986-resets.h>
  5. / {
  6. compatible = "mediatek,mt7981b";
  7. interrupt-parent = <&gic>;
  8. #address-cells = <2>;
  9. #size-cells = <2>;
  10. cpus {
  11. #address-cells = <1>;
  12. #size-cells = <0>;
  13. cpu@0 {
  14. compatible = "arm,cortex-a53";
  15. reg = <0x0>;
  16. device_type = "cpu";
  17. enable-method = "psci";
  18. };
  19. cpu@1 {
  20. compatible = "arm,cortex-a53";
  21. reg = <0x1>;
  22. device_type = "cpu";
  23. enable-method = "psci";
  24. };
  25. };
  26. oscillator-40m {
  27. compatible = "fixed-clock";
  28. clock-frequency = <40000000>;
  29. clock-output-names = "clkxtal";
  30. #clock-cells = <0>;
  31. };
  32. psci {
  33. compatible = "arm,psci-1.0";
  34. method = "smc";
  35. };
  36. soc {
  37. compatible = "simple-bus";
  38. ranges;
  39. #address-cells = <2>;
  40. #size-cells = <2>;
  41. gic: interrupt-controller@c000000 {
  42. compatible = "arm,gic-v3";
  43. reg = <0 0x0c000000 0 0x40000>, /* GICD */
  44. <0 0x0c080000 0 0x200000>; /* GICR */
  45. interrupt-parent = <&gic>;
  46. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  47. interrupt-controller;
  48. #interrupt-cells = <3>;
  49. };
  50. infracfg: clock-controller@10001000 {
  51. compatible = "mediatek,mt7981-infracfg", "syscon";
  52. reg = <0 0x10001000 0 0x1000>;
  53. #clock-cells = <1>;
  54. };
  55. topckgen: clock-controller@1001b000 {
  56. compatible = "mediatek,mt7981-topckgen", "syscon";
  57. reg = <0 0x1001b000 0 0x1000>;
  58. #clock-cells = <1>;
  59. };
  60. watchdog: watchdog@1001c000 {
  61. compatible = "mediatek,mt7986-wdt";
  62. reg = <0 0x1001c000 0 0x1000>;
  63. interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
  64. #reset-cells = <1>;
  65. };
  66. clock-controller@1001e000 {
  67. compatible = "mediatek,mt7981-apmixedsys";
  68. reg = <0 0x1001e000 0 0x1000>;
  69. #clock-cells = <1>;
  70. };
  71. pwm@10048000 {
  72. compatible = "mediatek,mt7981-pwm";
  73. reg = <0 0x10048000 0 0x1000>;
  74. clocks = <&infracfg CLK_INFRA_PWM_STA>,
  75. <&infracfg CLK_INFRA_PWM_HCK>,
  76. <&infracfg CLK_INFRA_PWM1_CK>,
  77. <&infracfg CLK_INFRA_PWM2_CK>,
  78. <&infracfg CLK_INFRA_PWM3_CK>;
  79. clock-names = "top", "main", "pwm1", "pwm2", "pwm3";
  80. #pwm-cells = <2>;
  81. };
  82. serial@11002000 {
  83. compatible = "mediatek,mt7981-uart", "mediatek,mt6577-uart";
  84. reg = <0 0x11002000 0 0x100>;
  85. interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
  86. interrupt-names = "uart", "wakeup";
  87. clocks = <&infracfg CLK_INFRA_UART0_SEL>,
  88. <&infracfg CLK_INFRA_UART0_CK>;
  89. clock-names = "baud", "bus";
  90. status = "disabled";
  91. };
  92. serial@11003000 {
  93. compatible = "mediatek,mt7981-uart", "mediatek,mt6577-uart";
  94. reg = <0 0x11003000 0 0x100>;
  95. interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
  96. interrupt-names = "uart", "wakeup";
  97. clocks = <&infracfg CLK_INFRA_UART1_SEL>,
  98. <&infracfg CLK_INFRA_UART1_CK>;
  99. clock-names = "baud", "bus";
  100. status = "disabled";
  101. };
  102. serial@11004000 {
  103. compatible = "mediatek,mt7981-uart", "mediatek,mt6577-uart";
  104. reg = <0 0x11004000 0 0x100>;
  105. interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
  106. interrupt-names = "uart", "wakeup";
  107. clocks = <&infracfg CLK_INFRA_UART2_SEL>,
  108. <&infracfg CLK_INFRA_UART2_CK>;
  109. clock-names = "baud", "bus";
  110. status = "disabled";
  111. };
  112. i2c@11007000 {
  113. compatible = "mediatek,mt7981-i2c";
  114. reg = <0 0x11007000 0 0x1000>,
  115. <0 0x10217080 0 0x80>;
  116. interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
  117. clocks = <&infracfg CLK_INFRA_I2C0_CK>,
  118. <&infracfg CLK_INFRA_AP_DMA_CK>,
  119. <&infracfg CLK_INFRA_I2C_MCK_CK>,
  120. <&infracfg CLK_INFRA_I2C_PCK_CK>;
  121. clock-names = "main", "dma", "arb", "pmic";
  122. #address-cells = <1>;
  123. #size-cells = <0>;
  124. status = "disabled";
  125. };
  126. spi@11009000 {
  127. compatible = "mediatek,mt7981-spi-ipm", "mediatek,spi-ipm";
  128. reg = <0 0x11009000 0 0x1000>;
  129. interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
  130. clocks = <&topckgen CLK_TOP_CB_M_D2>,
  131. <&topckgen CLK_TOP_SPI_SEL>,
  132. <&infracfg CLK_INFRA_SPI2_CK>,
  133. <&infracfg CLK_INFRA_SPI2_HCK_CK>;
  134. clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
  135. #address-cells = <1>;
  136. #size-cells = <0>;
  137. status = "disabled";
  138. };
  139. spi@1100a000 {
  140. compatible = "mediatek,mt7981-spi-ipm", "mediatek,spi-ipm";
  141. reg = <0 0x1100a000 0 0x1000>;
  142. interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
  143. clocks = <&topckgen CLK_TOP_CB_M_D2>,
  144. <&topckgen CLK_TOP_SPI_SEL>,
  145. <&infracfg CLK_INFRA_SPI0_CK>,
  146. <&infracfg CLK_INFRA_SPI0_HCK_CK>;
  147. clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
  148. #address-cells = <1>;
  149. #size-cells = <0>;
  150. status = "disabled";
  151. };
  152. spi@1100b000 {
  153. compatible = "mediatek,mt7981-spi-ipm", "mediatek,spi-ipm";
  154. reg = <0 0x1100b000 0 0x1000>;
  155. interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
  156. clocks = <&topckgen CLK_TOP_CB_M_D2>,
  157. <&topckgen CLK_TOP_SPI_SEL>,
  158. <&infracfg CLK_INFRA_SPI1_CK>,
  159. <&infracfg CLK_INFRA_SPI1_HCK_CK>;
  160. clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
  161. #address-cells = <1>;
  162. #size-cells = <0>;
  163. status = "disabled";
  164. };
  165. pio: pinctrl@11d00000 {
  166. compatible = "mediatek,mt7981-pinctrl";
  167. reg = <0 0x11d00000 0 0x1000>,
  168. <0 0x11c00000 0 0x1000>,
  169. <0 0x11c10000 0 0x1000>,
  170. <0 0x11d20000 0 0x1000>,
  171. <0 0x11e00000 0 0x1000>,
  172. <0 0x11e20000 0 0x1000>,
  173. <0 0x11f00000 0 0x1000>,
  174. <0 0x11f10000 0 0x1000>,
  175. <0 0x1000b000 0 0x1000>;
  176. reg-names = "gpio", "iocfg_rt", "iocfg_rm", "iocfg_rb", "iocfg_lb",
  177. "iocfg_bl", "iocfg_tm", "iocfg_tl", "eint";
  178. interrupt-controller;
  179. interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
  180. interrupt-parent = <&gic>;
  181. gpio-ranges = <&pio 0 0 56>;
  182. gpio-controller;
  183. #gpio-cells = <2>;
  184. #interrupt-cells = <2>;
  185. };
  186. efuse@11f20000 {
  187. compatible = "mediatek,mt7981-efuse", "mediatek,efuse";
  188. reg = <0 0x11f20000 0 0x1000>;
  189. #address-cells = <1>;
  190. #size-cells = <1>;
  191. };
  192. clock-controller@15000000 {
  193. compatible = "mediatek,mt7981-ethsys", "syscon";
  194. reg = <0 0x15000000 0 0x1000>;
  195. #clock-cells = <1>;
  196. #reset-cells = <1>;
  197. };
  198. wifi@18000000 {
  199. compatible = "mediatek,mt7981-wmac";
  200. reg = <0 0x18000000 0 0x1000000>,
  201. <0 0x10003000 0 0x1000>,
  202. <0 0x11d10000 0 0x1000>;
  203. interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
  204. <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
  205. <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
  206. <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
  207. clocks = <&topckgen CLK_TOP_NETSYS_MCU_SEL>,
  208. <&topckgen CLK_TOP_AP2CNN_HOST_SEL>;
  209. clock-names = "mcu", "ap2conn";
  210. resets = <&watchdog MT7986_TOPRGU_CONSYS_SW_RST>;
  211. reset-names = "consys";
  212. };
  213. };
  214. timer {
  215. compatible = "arm,armv8-timer";
  216. interrupt-parent = <&gic>;
  217. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
  218. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
  219. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
  220. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
  221. };
  222. };