k3-j7200-som-p0.dtsi 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
  4. */
  5. /dts-v1/;
  6. #include "k3-j7200.dtsi"
  7. / {
  8. memory@80000000 {
  9. device_type = "memory";
  10. /* 4G RAM */
  11. reg = <0x00 0x80000000 0x00 0x80000000>,
  12. <0x08 0x80000000 0x00 0x80000000>;
  13. };
  14. reserved_memory: reserved-memory {
  15. #address-cells = <2>;
  16. #size-cells = <2>;
  17. ranges;
  18. secure_ddr: optee@9e800000 {
  19. reg = <0x00 0x9e800000 0x00 0x01800000>;
  20. alignment = <0x1000>;
  21. no-map;
  22. };
  23. mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@a0000000 {
  24. compatible = "shared-dma-pool";
  25. reg = <0x00 0xa0000000 0x00 0x100000>;
  26. no-map;
  27. };
  28. mcu_r5fss0_core0_memory_region: r5f-memory@a0100000 {
  29. compatible = "shared-dma-pool";
  30. reg = <0x00 0xa0100000 0x00 0xf00000>;
  31. no-map;
  32. };
  33. mcu_r5fss0_core1_dma_memory_region: r5f-dma-memory@a1000000 {
  34. compatible = "shared-dma-pool";
  35. reg = <0x00 0xa1000000 0x00 0x100000>;
  36. no-map;
  37. };
  38. mcu_r5fss0_core1_memory_region: r5f-memory@a1100000 {
  39. compatible = "shared-dma-pool";
  40. reg = <0x00 0xa1100000 0x00 0xf00000>;
  41. no-map;
  42. };
  43. main_r5fss0_core0_dma_memory_region: r5f-dma-memory@a2000000 {
  44. compatible = "shared-dma-pool";
  45. reg = <0x00 0xa2000000 0x00 0x100000>;
  46. no-map;
  47. };
  48. main_r5fss0_core0_memory_region: r5f-memory@a2100000 {
  49. compatible = "shared-dma-pool";
  50. reg = <0x00 0xa2100000 0x00 0xf00000>;
  51. no-map;
  52. };
  53. main_r5fss0_core1_dma_memory_region: r5f-dma-memory@a3000000 {
  54. compatible = "shared-dma-pool";
  55. reg = <0x00 0xa3000000 0x00 0x100000>;
  56. no-map;
  57. };
  58. main_r5fss0_core1_memory_region: r5f-memory@a3100000 {
  59. compatible = "shared-dma-pool";
  60. reg = <0x00 0xa3100000 0x00 0xf00000>;
  61. no-map;
  62. };
  63. rtos_ipc_memory_region: ipc-memories@a4000000 {
  64. reg = <0x00 0xa4000000 0x00 0x00800000>;
  65. alignment = <0x1000>;
  66. no-map;
  67. };
  68. };
  69. };
  70. &wkup_pmx0 {
  71. mcu_fss0_hpb0_pins_default: mcu-fss0-hpb0-pins-default {
  72. pinctrl-single,pins = <
  73. J721E_WKUP_IOPAD(0x0, PIN_OUTPUT, 1) /* (B6) MCU_OSPI0_CLK.MCU_HYPERBUS0_CK */
  74. J721E_WKUP_IOPAD(0x4, PIN_OUTPUT, 1) /* (C8) MCU_OSPI0_LBCLKO.MCU_HYPERBUS0_CKn */
  75. J721E_WKUP_IOPAD(0x2c, PIN_OUTPUT, 1) /* (D6) MCU_OSPI0_CSn0.MCU_HYPERBUS0_CSn0 */
  76. J721E_WKUP_IOPAD(0x30, PIN_OUTPUT, 1) /* (D7) MCU_OSPI0_CSn1.MCU_HYPERBUS0_RESETn */
  77. J721E_WKUP_IOPAD(0x8, PIN_INPUT, 1) /* (B7) MCU_OSPI0_DQS.MCU_HYPERBUS0_RWDS */
  78. J721E_WKUP_IOPAD(0xc, PIN_INPUT, 1) /* (D8) MCU_OSPI0_D0.MCU_HYPERBUS0_DQ0 */
  79. J721E_WKUP_IOPAD(0x10, PIN_INPUT, 1) /* (C7) MCU_OSPI0_D1.MCU_HYPERBUS0_DQ1 */
  80. J721E_WKUP_IOPAD(0x14, PIN_INPUT, 1) /* (C5) MCU_OSPI0_D2.MCU_HYPERBUS0_DQ2 */
  81. J721E_WKUP_IOPAD(0x18, PIN_INPUT, 1) /* (A5) MCU_OSPI0_D3.MCU_HYPERBUS0_DQ3 */
  82. J721E_WKUP_IOPAD(0x1c, PIN_INPUT, 1) /* (A6) MCU_OSPI0_D4.MCU_HYPERBUS0_DQ4 */
  83. J721E_WKUP_IOPAD(0x20, PIN_INPUT, 1) /* (B8) MCU_OSPI0_D5.MCU_HYPERBUS0_DQ5 */
  84. J721E_WKUP_IOPAD(0x24, PIN_INPUT, 1) /* (A8) MCU_OSPI0_D6.MCU_HYPERBUS0_DQ6 */
  85. J721E_WKUP_IOPAD(0x28, PIN_INPUT, 1) /* (A7) MCU_OSPI0_D7.MCU_HYPERBUS0_DQ7 */
  86. >;
  87. };
  88. mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins-default {
  89. pinctrl-single,pins = <
  90. J721E_WKUP_IOPAD(0x0000, PIN_OUTPUT, 0) /* MCU_OSPI0_CLK */
  91. J721E_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* MCU_OSPI0_CSn0 */
  92. J721E_WKUP_IOPAD(0x000c, PIN_INPUT, 0) /* MCU_OSPI0_D0 */
  93. J721E_WKUP_IOPAD(0x0010, PIN_INPUT, 0) /* MCU_OSPI0_D1 */
  94. J721E_WKUP_IOPAD(0x0014, PIN_INPUT, 0) /* MCU_OSPI0_D2 */
  95. J721E_WKUP_IOPAD(0x0018, PIN_INPUT, 0) /* MCU_OSPI0_D3 */
  96. J721E_WKUP_IOPAD(0x001c, PIN_INPUT, 0) /* MCU_OSPI0_D4 */
  97. J721E_WKUP_IOPAD(0x0020, PIN_INPUT, 0) /* MCU_OSPI0_D5 */
  98. J721E_WKUP_IOPAD(0x0024, PIN_INPUT, 0) /* MCU_OSPI0_D6 */
  99. J721E_WKUP_IOPAD(0x0028, PIN_INPUT, 0) /* MCU_OSPI0_D7 */
  100. J721E_WKUP_IOPAD(0x0008, PIN_INPUT, 0) /* MCU_OSPI0_DQS */
  101. >;
  102. };
  103. };
  104. &main_pmx0 {
  105. main_i2c0_pins_default: main-i2c0-pins-default {
  106. pinctrl-single,pins = <
  107. J721E_IOPAD(0xd4, PIN_INPUT_PULLUP, 0) /* (V3) I2C0_SCL */
  108. J721E_IOPAD(0xd8, PIN_INPUT_PULLUP, 0) /* (W2) I2C0_SDA */
  109. >;
  110. };
  111. };
  112. &hbmc {
  113. /* OSPI and HBMC are muxed inside FSS, Bootloader will enable
  114. * appropriate node based on board detection
  115. */
  116. status = "disabled";
  117. pinctrl-names = "default";
  118. pinctrl-0 = <&mcu_fss0_hpb0_pins_default>;
  119. ranges = <0x00 0x00 0x05 0x00000000 0x4000000>, /* 64MB Flash on CS0 */
  120. <0x01 0x00 0x05 0x04000000 0x800000>; /* 8MB RAM on CS1 */
  121. flash@0,0 {
  122. compatible = "cypress,hyperflash", "cfi-flash";
  123. reg = <0x00 0x00 0x4000000>;
  124. };
  125. };
  126. &mailbox0_cluster0 {
  127. interrupts = <436>;
  128. mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
  129. ti,mbox-rx = <0 0 0>;
  130. ti,mbox-tx = <1 0 0>;
  131. };
  132. mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
  133. ti,mbox-rx = <2 0 0>;
  134. ti,mbox-tx = <3 0 0>;
  135. };
  136. };
  137. &mailbox0_cluster1 {
  138. interrupts = <432>;
  139. mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
  140. ti,mbox-rx = <0 0 0>;
  141. ti,mbox-tx = <1 0 0>;
  142. };
  143. mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
  144. ti,mbox-rx = <2 0 0>;
  145. ti,mbox-tx = <3 0 0>;
  146. };
  147. };
  148. &mailbox0_cluster2 {
  149. status = "disabled";
  150. };
  151. &mailbox0_cluster3 {
  152. status = "disabled";
  153. };
  154. &mailbox0_cluster4 {
  155. status = "disabled";
  156. };
  157. &mailbox0_cluster5 {
  158. status = "disabled";
  159. };
  160. &mailbox0_cluster6 {
  161. status = "disabled";
  162. };
  163. &mailbox0_cluster7 {
  164. status = "disabled";
  165. };
  166. &mailbox0_cluster8 {
  167. status = "disabled";
  168. };
  169. &mailbox0_cluster9 {
  170. status = "disabled";
  171. };
  172. &mailbox0_cluster10 {
  173. status = "disabled";
  174. };
  175. &mailbox0_cluster11 {
  176. status = "disabled";
  177. };
  178. &mcu_r5fss0_core0 {
  179. mboxes = <&mailbox0_cluster0 &mbox_mcu_r5fss0_core0>;
  180. memory-region = <&mcu_r5fss0_core0_dma_memory_region>,
  181. <&mcu_r5fss0_core0_memory_region>;
  182. };
  183. &mcu_r5fss0_core1 {
  184. mboxes = <&mailbox0_cluster0 &mbox_mcu_r5fss0_core1>;
  185. memory-region = <&mcu_r5fss0_core1_dma_memory_region>,
  186. <&mcu_r5fss0_core1_memory_region>;
  187. };
  188. &main_r5fss0_core0 {
  189. mboxes = <&mailbox0_cluster1 &mbox_main_r5fss0_core0>;
  190. memory-region = <&main_r5fss0_core0_dma_memory_region>,
  191. <&main_r5fss0_core0_memory_region>;
  192. };
  193. &main_r5fss0_core1 {
  194. mboxes = <&mailbox0_cluster1 &mbox_main_r5fss0_core1>;
  195. memory-region = <&main_r5fss0_core1_dma_memory_region>,
  196. <&main_r5fss0_core1_memory_region>;
  197. };
  198. &main_i2c0 {
  199. pinctrl-names = "default";
  200. pinctrl-0 = <&main_i2c0_pins_default>;
  201. clock-frequency = <400000>;
  202. exp_som: gpio@21 {
  203. compatible = "ti,tca6408";
  204. reg = <0x21>;
  205. gpio-controller;
  206. #gpio-cells = <2>;
  207. gpio-line-names = "USB2.0_MUX_SEL", "CANUART_MUX1_SEL0",
  208. "CANUART_MUX2_SEL0", "CANUART_MUX_SEL1",
  209. "UART/LIN_MUX_SEL", "TRC_D17/AUDIO_REFCLK_SEL",
  210. "GPIO_LIN_EN", "CAN_STB";
  211. };
  212. };
  213. &ospi0 {
  214. pinctrl-names = "default";
  215. pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;
  216. flash@0 {
  217. compatible = "jedec,spi-nor";
  218. reg = <0x0>;
  219. spi-tx-bus-width = <8>;
  220. spi-rx-bus-width = <8>;
  221. spi-max-frequency = <25000000>;
  222. cdns,tshsl-ns = <60>;
  223. cdns,tsd2d-ns = <60>;
  224. cdns,tchsh-ns = <60>;
  225. cdns,tslch-ns = <60>;
  226. cdns,read-delay = <4>;
  227. };
  228. };