imx6qdl-phytec-pbab01.dtsi 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright 2013 Christian Hemp, Phytec Messtechnik GmbH
  4. */
  5. #include <dt-bindings/sound/fsl-imx-audmux.h>
  6. / {
  7. chosen {
  8. stdout-path = &uart4;
  9. };
  10. regulators {
  11. sound_1v8: regulator@2 {
  12. compatible = "regulator-fixed";
  13. reg = <2>;
  14. regulator-name = "i2s-audio-1v8";
  15. regulator-min-microvolt = <1800000>;
  16. regulator-max-microvolt = <1800000>;
  17. };
  18. sound_3v3: regulator@3 {
  19. compatible = "regulator-fixed";
  20. reg = <3>;
  21. regulator-name = "i2s-audio-3v3";
  22. regulator-min-microvolt = <3300000>;
  23. regulator-max-microvolt = <3300000>;
  24. };
  25. };
  26. tlv320_mclk: oscillator {
  27. compatible = "fixed-clock";
  28. #clock-cells = <0>;
  29. clock-frequency = <19200000>;
  30. clock-output-names = "tlv320-mclk";
  31. };
  32. sound {
  33. compatible = "simple-audio-card";
  34. simple-audio-card,name = "OnboardTLV320AIC3007";
  35. simple-audio-card,format = "i2s";
  36. simple-audio-card,bitclock-master = <&dailink_master>;
  37. simple-audio-card,frame-master = <&dailink_master>;
  38. simple-audio-card,widgets =
  39. "Microphone", "Mic Jack",
  40. "Line", "Line In",
  41. "Line", "Line Out",
  42. "Speaker", "Speaker",
  43. "Headphone", "Headphone Jack";
  44. simple-audio-card,routing =
  45. "Line Out", "LLOUT",
  46. "Line Out", "RLOUT",
  47. "Speaker", "SPOP",
  48. "Speaker", "SPOM",
  49. "Headphone Jack", "HPLOUT",
  50. "Headphone Jack", "HPROUT",
  51. "MIC3L", "Mic Jack",
  52. "MIC3R", "Mic Jack",
  53. "Mic Jack", "Mic Bias",
  54. "LINE1L", "Line In",
  55. "LINE1R", "Line In";
  56. simple-audio-card,cpu {
  57. sound-dai = <&ssi2>;
  58. };
  59. dailink_master: simple-audio-card,codec {
  60. sound-dai = <&codec>;
  61. clocks = <&tlv320_mclk>;
  62. };
  63. };
  64. };
  65. &audmux {
  66. status = "okay";
  67. ssi2 {
  68. fsl,audmux-port = <1>;
  69. fsl,port-config = <
  70. (IMX_AUDMUX_V2_PTCR_SYN |
  71. IMX_AUDMUX_V2_PTCR_TFSDIR |
  72. IMX_AUDMUX_V2_PTCR_TFSEL(4) |
  73. IMX_AUDMUX_V2_PTCR_TCLKDIR |
  74. IMX_AUDMUX_V2_PTCR_TCSEL(4))
  75. IMX_AUDMUX_V2_PDCR_RXDSEL(4)
  76. >;
  77. };
  78. pins5 {
  79. fsl,audmux-port = <4>;
  80. fsl,port-config = <
  81. IMX_AUDMUX_V2_PTCR_SYN
  82. IMX_AUDMUX_V2_PDCR_RXDSEL(1)
  83. >;
  84. };
  85. };
  86. &can1 {
  87. status = "okay";
  88. };
  89. &fec {
  90. status = "okay";
  91. };
  92. &hdmi {
  93. status = "okay";
  94. };
  95. &i2c2 {
  96. status = "okay";
  97. codec: tlv320@18 {
  98. compatible = "ti,tlv320aic3007";
  99. #sound-dai-cells = <0>;
  100. reg = <0x18>;
  101. ai3x-micbias-vg = <2>;
  102. AVDD-supply = <&sound_3v3>;
  103. IOVDD-supply = <&sound_3v3>;
  104. DRVDD-supply = <&sound_3v3>;
  105. DVDD-supply = <&sound_1v8>;
  106. };
  107. stmpe@41 {
  108. compatible = "st,stmpe811";
  109. reg = <0x41>;
  110. };
  111. rtc@51 {
  112. compatible = "epson,rtc8564";
  113. reg = <0x51>;
  114. };
  115. adc@64 {
  116. compatible = "maxim,max1037";
  117. reg = <0x64>;
  118. };
  119. };
  120. &i2c3 {
  121. status = "okay";
  122. };
  123. &pcie {
  124. status = "okay";
  125. };
  126. &ssi2 {
  127. status = "okay";
  128. };
  129. &uart3 {
  130. status = "okay";
  131. };
  132. &uart4 {
  133. status = "okay";
  134. };
  135. &usbh1 {
  136. status = "okay";
  137. };
  138. &usbotg {
  139. status = "okay";
  140. dr_mode = "peripheral";
  141. };
  142. &usdhc2 {
  143. status = "okay";
  144. };
  145. &usdhc3 {
  146. status = "okay";
  147. };