dra7-evm-common.dtsi 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com/
  4. */
  5. #include "dra74-ipu-dsp-common.dtsi"
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include <dt-bindings/clock/ti-dra7-atl.h>
  8. #include <dt-bindings/input/input.h>
  9. / {
  10. chosen {
  11. stdout-path = &uart1;
  12. };
  13. extcon_usb1: extcon_usb1 {
  14. compatible = "linux,extcon-usb-gpio";
  15. id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
  16. };
  17. extcon_usb2: extcon_usb2 {
  18. compatible = "linux,extcon-usb-gpio";
  19. id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
  20. };
  21. sound0: sound0 {
  22. compatible = "simple-audio-card";
  23. simple-audio-card,name = "DRA7xx-EVM";
  24. simple-audio-card,widgets =
  25. "Headphone", "Headphone Jack",
  26. "Line", "Line Out",
  27. "Microphone", "Mic Jack",
  28. "Line", "Line In";
  29. simple-audio-card,routing =
  30. "Headphone Jack", "HPLOUT",
  31. "Headphone Jack", "HPROUT",
  32. "Line Out", "LLOUT",
  33. "Line Out", "RLOUT",
  34. "MIC3L", "Mic Jack",
  35. "MIC3R", "Mic Jack",
  36. "Mic Jack", "Mic Bias",
  37. "LINE1L", "Line In",
  38. "LINE1R", "Line In";
  39. simple-audio-card,format = "dsp_b";
  40. simple-audio-card,bitclock-master = <&sound0_master>;
  41. simple-audio-card,frame-master = <&sound0_master>;
  42. simple-audio-card,bitclock-inversion;
  43. sound0_master: simple-audio-card,cpu {
  44. sound-dai = <&mcasp3>;
  45. system-clock-frequency = <5644800>;
  46. };
  47. simple-audio-card,codec {
  48. sound-dai = <&tlv320aic3106>;
  49. clocks = <&atl_clkin2_ck>;
  50. };
  51. };
  52. leds {
  53. compatible = "gpio-leds";
  54. led0 {
  55. label = "dra7:usr1";
  56. gpios = <&pcf_lcd 4 GPIO_ACTIVE_LOW>;
  57. default-state = "off";
  58. };
  59. led1 {
  60. label = "dra7:usr2";
  61. gpios = <&pcf_lcd 5 GPIO_ACTIVE_LOW>;
  62. default-state = "off";
  63. };
  64. led2 {
  65. label = "dra7:usr3";
  66. gpios = <&pcf_lcd 6 GPIO_ACTIVE_LOW>;
  67. default-state = "off";
  68. };
  69. led3 {
  70. label = "dra7:usr4";
  71. gpios = <&pcf_lcd 7 GPIO_ACTIVE_LOW>;
  72. default-state = "off";
  73. };
  74. };
  75. gpio_keys {
  76. compatible = "gpio-keys";
  77. #address-cells = <1>;
  78. #size-cells = <0>;
  79. autorepeat;
  80. USER1 {
  81. label = "btnUser1";
  82. linux,code = <BTN_0>;
  83. gpios = <&pcf_lcd 2 GPIO_ACTIVE_LOW>;
  84. };
  85. USER2 {
  86. label = "btnUser2";
  87. linux,code = <BTN_1>;
  88. gpios = <&pcf_lcd 3 GPIO_ACTIVE_LOW>;
  89. };
  90. };
  91. };
  92. &i2c3 {
  93. status = "okay";
  94. clock-frequency = <400000>;
  95. };
  96. &mcspi1 {
  97. status = "okay";
  98. };
  99. &mcspi2 {
  100. status = "okay";
  101. };
  102. &uart1 {
  103. status = "okay";
  104. interrupts-extended = <&crossbar_mpu GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
  105. <&dra7_pmx_core 0x3e0>;
  106. };
  107. &uart2 {
  108. status = "okay";
  109. };
  110. &uart3 {
  111. status = "okay";
  112. };
  113. &qspi {
  114. status = "okay";
  115. spi-max-frequency = <76800000>;
  116. flash@0 {
  117. compatible = "s25fl256s1";
  118. spi-max-frequency = <76800000>;
  119. reg = <0>;
  120. spi-tx-bus-width = <1>;
  121. spi-rx-bus-width = <4>;
  122. #address-cells = <1>;
  123. #size-cells = <1>;
  124. /* MTD partition table.
  125. * The ROM checks the first four physical blocks
  126. * for a valid file to boot and the flash here is
  127. * 64KiB block size.
  128. */
  129. partition@0 {
  130. label = "QSPI.SPL";
  131. reg = <0x00000000 0x000010000>;
  132. };
  133. partition@1 {
  134. label = "QSPI.SPL.backup1";
  135. reg = <0x00010000 0x00010000>;
  136. };
  137. partition@2 {
  138. label = "QSPI.SPL.backup2";
  139. reg = <0x00020000 0x00010000>;
  140. };
  141. partition@3 {
  142. label = "QSPI.SPL.backup3";
  143. reg = <0x00030000 0x00010000>;
  144. };
  145. partition@4 {
  146. label = "QSPI.u-boot";
  147. reg = <0x00040000 0x00100000>;
  148. };
  149. partition@5 {
  150. label = "QSPI.u-boot-spl-os";
  151. reg = <0x00140000 0x00080000>;
  152. };
  153. partition@6 {
  154. label = "QSPI.u-boot-env";
  155. reg = <0x001c0000 0x00010000>;
  156. };
  157. partition@7 {
  158. label = "QSPI.u-boot-env.backup1";
  159. reg = <0x001d0000 0x0010000>;
  160. };
  161. partition@8 {
  162. label = "QSPI.kernel";
  163. reg = <0x001e0000 0x0800000>;
  164. };
  165. partition@9 {
  166. label = "QSPI.file-system";
  167. reg = <0x009e0000 0x01620000>;
  168. };
  169. };
  170. };
  171. &omap_dwc3_1 {
  172. extcon = <&extcon_usb1>;
  173. };
  174. &usb1 {
  175. dr_mode = "otg";
  176. extcon = <&extcon_usb1>;
  177. };
  178. &omap_dwc3_2 {
  179. extcon = <&extcon_usb2>;
  180. };
  181. &usb2 {
  182. dr_mode = "host";
  183. extcon = <&extcon_usb2>;
  184. };
  185. &atl {
  186. assigned-clocks = <&abe_dpll_sys_clk_mux>,
  187. <&atl_clkctrl DRA7_ATL_ATL_CLKCTRL 26>,
  188. <&dpll_abe_ck>,
  189. <&dpll_abe_m2x2_ck>,
  190. <&atl_clkin2_ck>;
  191. assigned-clock-parents = <&sys_clkin2>, <&dpll_abe_m2_ck>;
  192. assigned-clock-rates = <0>, <0>, <180633600>, <361267200>, <5644800>;
  193. status = "okay";
  194. atl2 {
  195. bws = <DRA7_ATL_WS_MCASP2_FSX>;
  196. aws = <DRA7_ATL_WS_MCASP3_FSX>;
  197. };
  198. };
  199. &mcasp3 {
  200. #sound-dai-cells = <0>;
  201. assigned-clocks = <&l4per2_clkctrl DRA7_L4PER2_MCASP3_CLKCTRL 24>;
  202. assigned-clock-parents = <&atl_clkin2_ck>;
  203. status = "okay";
  204. op-mode = <0>; /* MCASP_IIS_MODE */
  205. tdm-slots = <2>;
  206. /* 4 serializer */
  207. serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
  208. 1 2 0 0
  209. >;
  210. tx-num-evt = <32>;
  211. rx-num-evt = <32>;
  212. };
  213. &pcie1_rc {
  214. status = "okay";
  215. };
  216. &mmc4 {
  217. bus-width = <4>;
  218. cap-power-off-card;
  219. keep-power-in-suspend;
  220. non-removable;
  221. #address-cells = <1>;
  222. #size-cells = <0>;
  223. wifi@2 {
  224. compatible = "ti,wl1835";
  225. reg = <2>;
  226. interrupt-parent = <&gpio5>;
  227. interrupts = <7 IRQ_TYPE_EDGE_RISING>;
  228. };
  229. };