k3-am65.dtsi 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for AM6 SoC Family
  4. *
  5. * Copyright (C) 2016-2018 Texas Instruments Incorporated - https://www.ti.com/
  6. */
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/interrupt-controller/irq.h>
  9. #include <dt-bindings/interrupt-controller/arm-gic.h>
  10. #include <dt-bindings/pinctrl/k3.h>
  11. #include <dt-bindings/soc/ti,sci_pm_domain.h>
  12. / {
  13. model = "Texas Instruments K3 AM654 SoC";
  14. compatible = "ti,am654";
  15. interrupt-parent = <&gic500>;
  16. #address-cells = <2>;
  17. #size-cells = <2>;
  18. aliases {
  19. serial0 = &wkup_uart0;
  20. serial1 = &mcu_uart0;
  21. serial2 = &main_uart0;
  22. serial3 = &main_uart1;
  23. serial4 = &main_uart2;
  24. i2c0 = &wkup_i2c0;
  25. i2c1 = &mcu_i2c0;
  26. i2c2 = &main_i2c0;
  27. i2c3 = &main_i2c1;
  28. i2c4 = &main_i2c2;
  29. i2c5 = &main_i2c3;
  30. ethernet0 = &cpsw_port1;
  31. mmc0 = &sdhci0;
  32. mmc1 = &sdhci1;
  33. };
  34. chosen { };
  35. firmware {
  36. optee {
  37. compatible = "linaro,optee-tz";
  38. method = "smc";
  39. };
  40. psci: psci {
  41. compatible = "arm,psci-1.0";
  42. method = "smc";
  43. };
  44. };
  45. a53_timer0: timer-cl0-cpu0 {
  46. compatible = "arm,armv8-timer";
  47. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* cntpsirq */
  48. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* cntpnsirq */
  49. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* cntvirq */
  50. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* cnthpirq */
  51. };
  52. pmu: pmu {
  53. compatible = "arm,cortex-a53-pmu";
  54. /* Recommendation from GIC500 TRM Table A.3 */
  55. interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
  56. };
  57. cbass_main: bus@100000 {
  58. compatible = "simple-bus";
  59. #address-cells = <2>;
  60. #size-cells = <2>;
  61. ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */
  62. <0x00 0x00600000 0x00 0x00600000 0x00 0x00001100>, /* GPIO */
  63. <0x00 0x00900000 0x00 0x00900000 0x00 0x00012000>, /* serdes */
  64. <0x00 0x01000000 0x00 0x01000000 0x00 0x0af02400>, /* Most peripherals */
  65. <0x00 0x30800000 0x00 0x30800000 0x00 0x0bc00000>, /* MAIN NAVSS */
  66. <0x00 0x70000000 0x00 0x70000000 0x00 0x00200000>, /* MSMC SRAM */
  67. <0x00 0x10000000 0x00 0x10000000 0x00 0x10000000>, /* PCIe DAT */
  68. /* MCUSS Range */
  69. <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>,
  70. <0x00 0x40200000 0x00 0x40200000 0x00 0x00900100>,
  71. <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */
  72. <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>,
  73. <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>,
  74. <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>,
  75. <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>,
  76. <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>,
  77. <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>,
  78. <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>,
  79. <0x00 0x50000000 0x00 0x50000000 0x00 0x8000000>,
  80. <0x00 0x6f000000 0x00 0x6f000000 0x00 0x00310000>, /* A53 PERIPHBASE */
  81. <0x00 0x70000000 0x00 0x70000000 0x00 0x200000>,
  82. <0x05 0x00000000 0x05 0x00000000 0x01 0x0000000>,
  83. <0x07 0x00000000 0x07 0x00000000 0x01 0x0000000>;
  84. cbass_mcu: bus@28380000 {
  85. compatible = "simple-bus";
  86. #address-cells = <2>;
  87. #size-cells = <2>;
  88. ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/
  89. <0x00 0x40200000 0x00 0x40200000 0x00 0x00900100>, /* First peripheral window */
  90. <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */
  91. <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */
  92. <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */
  93. <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>, /* MCU SRAM */
  94. <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP */
  95. <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, /* MMRs, remaining NAVSS */
  96. <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, /* CPSW */
  97. <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, /* OSPI space 1 */
  98. <0x00 0x50000000 0x00 0x50000000 0x00 0x8000000>, /* FSS OSPI0 data region 1 */
  99. <0x05 0x00000000 0x05 0x00000000 0x01 0x0000000>, /* FSS OSPI0 data region 3*/
  100. <0x07 0x00000000 0x07 0x00000000 0x01 0x0000000>; /* FSS OSPI1 data region 3*/
  101. cbass_wakeup: bus@42040000 {
  102. compatible = "simple-bus";
  103. #address-cells = <1>;
  104. #size-cells = <1>;
  105. /* WKUP Basic peripherals */
  106. ranges = <0x42040000 0x00 0x42040000 0x03ac2400>;
  107. };
  108. };
  109. };
  110. };
  111. /* Now include the peripherals for each bus segments */
  112. #include "k3-am65-main.dtsi"
  113. #include "k3-am65-mcu.dtsi"
  114. #include "k3-am65-wakeup.dtsi"