pic32mzda.dtsi 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2015 Microchip Technology Inc. All rights reserved.
  4. */
  5. #include <dt-bindings/clock/microchip,pic32-clock.h>
  6. #include <dt-bindings/interrupt-controller/irq.h>
  7. / {
  8. #address-cells = <1>;
  9. #size-cells = <1>;
  10. interrupt-parent = <&evic>;
  11. aliases {
  12. gpio0 = &gpio0;
  13. gpio1 = &gpio1;
  14. gpio2 = &gpio2;
  15. gpio3 = &gpio3;
  16. gpio4 = &gpio4;
  17. gpio5 = &gpio5;
  18. gpio6 = &gpio6;
  19. gpio7 = &gpio7;
  20. gpio8 = &gpio8;
  21. gpio9 = &gpio9;
  22. serial0 = &uart1;
  23. serial1 = &uart2;
  24. serial2 = &uart3;
  25. serial3 = &uart4;
  26. serial4 = &uart5;
  27. serial5 = &uart6;
  28. };
  29. cpus {
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. cpu@0 {
  33. compatible = "mti,mips14KEc";
  34. device_type = "cpu";
  35. };
  36. };
  37. soc {
  38. compatible = "microchip,pic32mzda-infra";
  39. interrupts = <0 IRQ_TYPE_EDGE_RISING>;
  40. };
  41. /* external clock input on TxCLKI pin */
  42. txcki: txcki_clk {
  43. #clock-cells = <0>;
  44. compatible = "fixed-clock";
  45. clock-frequency = <4000000>;
  46. status = "disabled";
  47. };
  48. /* external input on REFCLKIx pin */
  49. refix: refix_clk {
  50. #clock-cells = <0>;
  51. compatible = "fixed-clock";
  52. clock-frequency = <24000000>;
  53. status = "disabled";
  54. };
  55. rootclk: clock-controller@1f801200 {
  56. compatible = "microchip,pic32mzda-clk";
  57. reg = <0x1f801200 0x200>;
  58. #clock-cells = <1>;
  59. microchip,pic32mzda-sosc;
  60. };
  61. evic: interrupt-controller@1f810000 {
  62. compatible = "microchip,pic32mzda-evic";
  63. interrupt-controller;
  64. #interrupt-cells = <2>;
  65. reg = <0x1f810000 0x1000>;
  66. microchip,external-irqs = <3 8 13 18 23>;
  67. };
  68. pic32_pinctrl: pinctrl@1f801400{
  69. #address-cells = <1>;
  70. #size-cells = <1>;
  71. compatible = "microchip,pic32mzda-pinctrl";
  72. reg = <0x1f801400 0x400>;
  73. clocks = <&rootclk PB1CLK>;
  74. };
  75. /* PORTA */
  76. gpio0: gpio0@1f860000 {
  77. compatible = "microchip,pic32mzda-gpio";
  78. reg = <0x1f860000 0x100>;
  79. interrupts = <118 IRQ_TYPE_LEVEL_HIGH>;
  80. #gpio-cells = <2>;
  81. gpio-controller;
  82. interrupt-controller;
  83. #interrupt-cells = <2>;
  84. clocks = <&rootclk PB4CLK>;
  85. microchip,gpio-bank = <0>;
  86. gpio-ranges = <&pic32_pinctrl 0 0 16>;
  87. };
  88. /* PORTB */
  89. gpio1: gpio1@1f860100 {
  90. compatible = "microchip,pic32mzda-gpio";
  91. reg = <0x1f860100 0x100>;
  92. interrupts = <119 IRQ_TYPE_LEVEL_HIGH>;
  93. #gpio-cells = <2>;
  94. gpio-controller;
  95. interrupt-controller;
  96. #interrupt-cells = <2>;
  97. clocks = <&rootclk PB4CLK>;
  98. microchip,gpio-bank = <1>;
  99. gpio-ranges = <&pic32_pinctrl 0 16 16>;
  100. };
  101. /* PORTC */
  102. gpio2: gpio2@1f860200 {
  103. compatible = "microchip,pic32mzda-gpio";
  104. reg = <0x1f860200 0x100>;
  105. interrupts = <120 IRQ_TYPE_LEVEL_HIGH>;
  106. #gpio-cells = <2>;
  107. gpio-controller;
  108. interrupt-controller;
  109. #interrupt-cells = <2>;
  110. clocks = <&rootclk PB4CLK>;
  111. microchip,gpio-bank = <2>;
  112. gpio-ranges = <&pic32_pinctrl 0 32 16>;
  113. };
  114. /* PORTD */
  115. gpio3: gpio3@1f860300 {
  116. compatible = "microchip,pic32mzda-gpio";
  117. reg = <0x1f860300 0x100>;
  118. interrupts = <121 IRQ_TYPE_LEVEL_HIGH>;
  119. #gpio-cells = <2>;
  120. gpio-controller;
  121. interrupt-controller;
  122. #interrupt-cells = <2>;
  123. clocks = <&rootclk PB4CLK>;
  124. microchip,gpio-bank = <3>;
  125. gpio-ranges = <&pic32_pinctrl 0 48 16>;
  126. };
  127. /* PORTE */
  128. gpio4: gpio4@1f860400 {
  129. compatible = "microchip,pic32mzda-gpio";
  130. reg = <0x1f860400 0x100>;
  131. interrupts = <122 IRQ_TYPE_LEVEL_HIGH>;
  132. #gpio-cells = <2>;
  133. gpio-controller;
  134. interrupt-controller;
  135. #interrupt-cells = <2>;
  136. clocks = <&rootclk PB4CLK>;
  137. microchip,gpio-bank = <4>;
  138. gpio-ranges = <&pic32_pinctrl 0 64 16>;
  139. };
  140. /* PORTF */
  141. gpio5: gpio5@1f860500 {
  142. compatible = "microchip,pic32mzda-gpio";
  143. reg = <0x1f860500 0x100>;
  144. interrupts = <123 IRQ_TYPE_LEVEL_HIGH>;
  145. #gpio-cells = <2>;
  146. gpio-controller;
  147. interrupt-controller;
  148. #interrupt-cells = <2>;
  149. clocks = <&rootclk PB4CLK>;
  150. microchip,gpio-bank = <5>;
  151. gpio-ranges = <&pic32_pinctrl 0 80 16>;
  152. };
  153. /* PORTG */
  154. gpio6: gpio6@1f860600 {
  155. compatible = "microchip,pic32mzda-gpio";
  156. reg = <0x1f860600 0x100>;
  157. interrupts = <124 IRQ_TYPE_LEVEL_HIGH>;
  158. #gpio-cells = <2>;
  159. gpio-controller;
  160. interrupt-controller;
  161. #interrupt-cells = <2>;
  162. clocks = <&rootclk PB4CLK>;
  163. microchip,gpio-bank = <6>;
  164. gpio-ranges = <&pic32_pinctrl 0 96 16>;
  165. };
  166. /* PORTH */
  167. gpio7: gpio7@1f860700 {
  168. compatible = "microchip,pic32mzda-gpio";
  169. reg = <0x1f860700 0x100>;
  170. interrupts = <125 IRQ_TYPE_LEVEL_HIGH>;
  171. #gpio-cells = <2>;
  172. gpio-controller;
  173. interrupt-controller;
  174. #interrupt-cells = <2>;
  175. clocks = <&rootclk PB4CLK>;
  176. microchip,gpio-bank = <7>;
  177. gpio-ranges = <&pic32_pinctrl 0 112 16>;
  178. };
  179. /* PORTI does not exist */
  180. /* PORTJ */
  181. gpio8: gpio8@1f860800 {
  182. compatible = "microchip,pic32mzda-gpio";
  183. reg = <0x1f860800 0x100>;
  184. interrupts = <126 IRQ_TYPE_LEVEL_HIGH>;
  185. #gpio-cells = <2>;
  186. gpio-controller;
  187. interrupt-controller;
  188. #interrupt-cells = <2>;
  189. clocks = <&rootclk PB4CLK>;
  190. microchip,gpio-bank = <8>;
  191. gpio-ranges = <&pic32_pinctrl 0 128 16>;
  192. };
  193. /* PORTK */
  194. gpio9: gpio9@1f860900 {
  195. compatible = "microchip,pic32mzda-gpio";
  196. reg = <0x1f860900 0x100>;
  197. interrupts = <127 IRQ_TYPE_LEVEL_HIGH>;
  198. #gpio-cells = <2>;
  199. gpio-controller;
  200. interrupt-controller;
  201. #interrupt-cells = <2>;
  202. clocks = <&rootclk PB4CLK>;
  203. microchip,gpio-bank = <9>;
  204. gpio-ranges = <&pic32_pinctrl 0 144 16>;
  205. };
  206. sdhci: sdhci@1f8ec000 {
  207. compatible = "microchip,pic32mzda-sdhci";
  208. reg = <0x1f8ec000 0x100>;
  209. interrupts = <191 IRQ_TYPE_LEVEL_HIGH>;
  210. clocks = <&rootclk REF4CLK>, <&rootclk PB5CLK>;
  211. clock-names = "base_clk", "sys_clk";
  212. bus-width = <4>;
  213. cap-sd-highspeed;
  214. status = "disabled";
  215. };
  216. uart1: serial@1f822000 {
  217. compatible = "microchip,pic32mzda-uart";
  218. reg = <0x1f822000 0x50>;
  219. interrupts = <112 IRQ_TYPE_LEVEL_HIGH>,
  220. <113 IRQ_TYPE_LEVEL_HIGH>,
  221. <114 IRQ_TYPE_LEVEL_HIGH>;
  222. clocks = <&rootclk PB2CLK>;
  223. status = "disabled";
  224. };
  225. uart2: serial@1f822200 {
  226. compatible = "microchip,pic32mzda-uart";
  227. reg = <0x1f822200 0x50>;
  228. interrupts = <145 IRQ_TYPE_LEVEL_HIGH>,
  229. <146 IRQ_TYPE_LEVEL_HIGH>,
  230. <147 IRQ_TYPE_LEVEL_HIGH>;
  231. clocks = <&rootclk PB2CLK>;
  232. status = "disabled";
  233. };
  234. uart3: serial@1f822400 {
  235. compatible = "microchip,pic32mzda-uart";
  236. reg = <0x1f822400 0x50>;
  237. interrupts = <157 IRQ_TYPE_LEVEL_HIGH>,
  238. <158 IRQ_TYPE_LEVEL_HIGH>,
  239. <159 IRQ_TYPE_LEVEL_HIGH>;
  240. clocks = <&rootclk PB2CLK>;
  241. status = "disabled";
  242. };
  243. uart4: serial@1f822600 {
  244. compatible = "microchip,pic32mzda-uart";
  245. reg = <0x1f822600 0x50>;
  246. interrupts = <170 IRQ_TYPE_LEVEL_HIGH>,
  247. <171 IRQ_TYPE_LEVEL_HIGH>,
  248. <172 IRQ_TYPE_LEVEL_HIGH>;
  249. clocks = <&rootclk PB2CLK>;
  250. status = "disabled";
  251. };
  252. uart5: serial@1f822800 {
  253. compatible = "microchip,pic32mzda-uart";
  254. reg = <0x1f822800 0x50>;
  255. interrupts = <179 IRQ_TYPE_LEVEL_HIGH>,
  256. <180 IRQ_TYPE_LEVEL_HIGH>,
  257. <181 IRQ_TYPE_LEVEL_HIGH>;
  258. clocks = <&rootclk PB2CLK>;
  259. status = "disabled";
  260. };
  261. uart6: serial@1f822A00 {
  262. compatible = "microchip,pic32mzda-uart";
  263. reg = <0x1f822A00 0x50>;
  264. interrupts = <188 IRQ_TYPE_LEVEL_HIGH>,
  265. <189 IRQ_TYPE_LEVEL_HIGH>,
  266. <190 IRQ_TYPE_LEVEL_HIGH>;
  267. clocks = <&rootclk PB2CLK>;
  268. status = "disabled";
  269. };
  270. };