am572x-idk-common.dtsi 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com/
  4. */
  5. #include <dt-bindings/gpio/gpio.h>
  6. #include <dt-bindings/interrupt-controller/irq.h>
  7. #include "am57xx-idk-common.dtsi"
  8. #include "dra74-ipu-dsp-common.dtsi"
  9. / {
  10. memory@0 {
  11. device_type = "memory";
  12. reg = <0x0 0x80000000 0x0 0x80000000>;
  13. };
  14. reserved-memory {
  15. #address-cells = <2>;
  16. #size-cells = <2>;
  17. ranges;
  18. ipu2_memory_region: ipu2-memory@95800000 {
  19. compatible = "shared-dma-pool";
  20. reg = <0x0 0x95800000 0x0 0x3800000>;
  21. reusable;
  22. status = "okay";
  23. };
  24. dsp1_memory_region: dsp1-memory@99000000 {
  25. compatible = "shared-dma-pool";
  26. reg = <0x0 0x99000000 0x0 0x4000000>;
  27. reusable;
  28. status = "okay";
  29. };
  30. ipu1_memory_region: ipu1-memory@9d000000 {
  31. compatible = "shared-dma-pool";
  32. reg = <0x0 0x9d000000 0x0 0x2000000>;
  33. reusable;
  34. status = "okay";
  35. };
  36. dsp2_memory_region: dsp2-memory@9f000000 {
  37. compatible = "shared-dma-pool";
  38. reg = <0x0 0x9f000000 0x0 0x800000>;
  39. reusable;
  40. status = "okay";
  41. };
  42. };
  43. status-leds {
  44. compatible = "gpio-leds";
  45. cpu0-led {
  46. label = "status0:red:cpu0";
  47. gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>;
  48. default-state = "off";
  49. linux,default-trigger = "cpu0";
  50. };
  51. usr0-led {
  52. label = "status0:green:usr";
  53. gpios = <&gpio3 11 GPIO_ACTIVE_HIGH>;
  54. default-state = "off";
  55. };
  56. heartbeat-led {
  57. label = "status0:blue:heartbeat";
  58. gpios = <&gpio3 12 GPIO_ACTIVE_HIGH>;
  59. default-state = "off";
  60. linux,default-trigger = "heartbeat";
  61. };
  62. cpu1-led {
  63. label = "status1:red:cpu1";
  64. gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>;
  65. default-state = "off";
  66. linux,default-trigger = "cpu1";
  67. };
  68. usr1-led {
  69. label = "status1:green:usr";
  70. gpios = <&gpio7 23 GPIO_ACTIVE_HIGH>;
  71. default-state = "off";
  72. };
  73. mmc0-led {
  74. label = "status1:blue:mmc0";
  75. gpios = <&gpio7 22 GPIO_ACTIVE_HIGH>;
  76. default-state = "off";
  77. linux,default-trigger = "mmc0";
  78. };
  79. };
  80. idk-leds {
  81. status = "disabled";
  82. compatible = "gpio-leds";
  83. red0-led {
  84. label = "idk:red0";
  85. gpios = <&gpio6 19 GPIO_ACTIVE_HIGH>;
  86. default-state = "off";
  87. };
  88. green0-led {
  89. label = "idk:green0";
  90. gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>;
  91. default-state = "off";
  92. };
  93. blue0-led {
  94. label = "idk:blue0";
  95. gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
  96. default-state = "off";
  97. };
  98. red1-led {
  99. label = "idk:red1";
  100. gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
  101. default-state = "off";
  102. };
  103. green1-led {
  104. label = "idk:green1";
  105. gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
  106. default-state = "off";
  107. };
  108. blue1-led {
  109. label = "idk:blue1";
  110. gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
  111. default-state = "off";
  112. };
  113. red2-led {
  114. label = "idk:red2";
  115. gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>;
  116. default-state = "off";
  117. };
  118. green2-led {
  119. label = "idk:green2";
  120. gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>;
  121. default-state = "off";
  122. };
  123. blue2-led {
  124. label = "idk:blue2";
  125. gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>;
  126. default-state = "off";
  127. };
  128. red3-led {
  129. label = "idk:red3";
  130. gpios = <&gpio7 11 GPIO_ACTIVE_HIGH>;
  131. default-state = "off";
  132. };
  133. green3-led {
  134. label = "idk:green3";
  135. gpios = <&gpio3 17 GPIO_ACTIVE_HIGH>;
  136. default-state = "off";
  137. };
  138. blue3-led {
  139. label = "idk:blue3";
  140. gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>;
  141. default-state = "off";
  142. };
  143. };
  144. };
  145. &extcon_usb2 {
  146. id-gpio = <&gpio3 16 GPIO_ACTIVE_HIGH>;
  147. vbus-gpio = <&gpio3 26 GPIO_ACTIVE_HIGH>;
  148. };
  149. &sn65hvs882 {
  150. load-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
  151. };
  152. &pcie1_rc {
  153. status = "okay";
  154. gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
  155. };
  156. &ipu2 {
  157. status = "okay";
  158. memory-region = <&ipu2_memory_region>;
  159. };
  160. &ipu1 {
  161. status = "okay";
  162. memory-region = <&ipu1_memory_region>;
  163. };
  164. &dsp1 {
  165. status = "okay";
  166. memory-region = <&dsp1_memory_region>;
  167. };
  168. &dsp2 {
  169. status = "okay";
  170. memory-region = <&dsp2_memory_region>;
  171. };