Advertisement
JetForMe

Untitled

Apr 4th, 2016
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1. [ 348.250242] bone_capemgr bone_capemgr: part_number 'LZ-PODTIQUE1', version 'N/A'
  2. [ 348.250484] bone_capemgr bone_capemgr: slot #4: override
  3. [ 348.253489] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
  4. [ 348.253521] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,LZ-PODTIQUE1'
  5. [ 348.270141] gpio-of-helper ocp:gpio_helper: ready
  6. [ 348.276391] bone_capemgr bone_capemgr: slot #4: dtbo 'LZ-PODTIQUE1-00A0.dtbo' loaded; overlay id #0
  7. [ 348.342331] pruss_uio 4a300000.pruss: pins are not configured from the driver
  8. [ 348.344690] asoc-simple-card sound: tlv320aic3x-hifi <-> 48038000.mcasp mapping ok
  9. [ 367.172337] davinci-mcasp 48038000.mcasp: stream has more channels (2) than are enabled in mcasp (0)
  10. [ 367.172374] davinci-mcasp 48038000.mcasp: ASoC: can't set 48038000.mcasp hw params: -22
  11.  
  12.  
  13. #include "dt-bindings/gpio/gpio.h"
  14. #include "dt-bindings/pinctrl/am33xx.h"
  15.  
  16. /dts-v1/;
  17. /plugin/;
  18.  
  19. / {
  20. compatible = "ti,beaglebone-black", "ti,beaglebone-green";
  21.  
  22. /* identification */
  23. part-number = "LZ-PODTIQUE1";
  24.  
  25. /* version */
  26. version = "00A0";
  27.  
  28. fragment@0 {
  29. target = <&am33xx_pinmux>;
  30. __overlay__ {
  31.  
  32. lz_podtique_reg_pins: pinmux_lz_podtique_reg_pins {
  33. pinctrl-single,pins = <
  34. 0x048 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) // P9_14, CODEC regulator enable
  35. 0x04c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) // P9_16, CODEC nRESET
  36. >;
  37. };
  38.  
  39. i2c2_pins: pinmux_i2c2_pins {
  40. pinctrl-single,pins = <
  41. 0x150 (SLEWCTRL_SLOW | PIN_INPUT_PULLUP | MUX_MODE2) // P9_22, spi0_scl.i2c2_sda
  42. 0x154 (SLEWCTRL_SLOW | PIN_INPUT_PULLUP | MUX_MODE2) // P9_21, spi0_d0.i2c2_scl
  43. >;
  44. };
  45.  
  46. i2s_pins: pinmux_i2s_pins {
  47. pinctrl-single,pins = < // Hdr I2S TLV SoC
  48. 0x190 (PIN_INPUT | MUX_MODE0) // P9_31 BCLK BCLK mcasp0_aclkx
  49. 0x194 (PIN_INPUT | MUX_MODE0) // P9_29 WCLK WCLK mcasp0_fsx
  50. 0x198 (PIN_INPUT | MUX_MODE0) // P9_30 RX SDOUT mcasp0_axr0
  51. 0x19c (PIN_INPUT | MUX_MODE2) // P9_28 TX SDIN mcasp0_axr2
  52. 0x1ac (PIN_INPUT | MUX_MODE0) // P9_25 MCLK MCLK mcasp0_ahclkx
  53. >;
  54. };
  55. };
  56. };
  57.  
  58. fragment@2 {
  59. target = <&ocp>;
  60. __overlay__ {
  61. gpio_helper {
  62. compatible = "gpio-of-helper";
  63. status = "okay";
  64. pinctrl-names = "default";
  65. pinctrl-0 = <&lz_podtique_reg_pins>;
  66. };
  67. };
  68. };
  69.  
  70. fragment@3 {
  71. target-path="/";
  72. __overlay__ {
  73. lz_codec_reg: fixedregulator@1 {
  74. compatible = "regulator-fixed";
  75. regulator-name = "lz-codec-reg";
  76. gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>; // GPIO_ACTIVE_HIGH is ignored by regulator-fixed,
  77. enable-active-high; // need to also have enable-active-high.
  78. };
  79. };
  80. };
  81.  
  82. fragment@4 {
  83. target = <&i2c2>;
  84. __overlay__ {
  85. #address-cells = <1>;
  86. #size-cells = <0>;
  87. clock-frequency = <100000>;
  88. status = "okay";
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&i2c2_pins>;
  91.  
  92. tlv320aic3104: tlv320aic3104@0 {
  93. #sound-dai-cells = <0>;
  94. compatible = "ti,tlv320aic3104";
  95. reg = <0x18>;
  96. gpio-reset = <&gpio1 19 GPIO_ACTIVE_LOW>;
  97.  
  98. AVDD-supply = <&lz_codec_reg>;
  99. IOVDD-supply = <&lz_codec_reg>;
  100. DRVDD-supply = <&lz_codec_reg>;
  101. DVDD-supply = <&lz_codec_reg>;
  102. };
  103. };
  104. };
  105.  
  106. fragment@5 {
  107. target = <&mcasp0>;
  108. __overlay__ {
  109. #sound-dai-cells = <0>;
  110. pinctrl-names = "default";
  111. pinctrl-0 = <&i2s_pins>;
  112.  
  113. status = "okay";
  114.  
  115. op-mode = <0>; /* MCASP_IIS_MODE */
  116. tdm-slots = <2>;
  117. num-serializer = <16>;
  118. serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
  119. 2 0 1 0
  120. 0 0 0 0
  121. 0 0 0 0
  122. 0 0 0 0
  123. >;
  124. tx-num-evt = <1>;
  125. rx-num-evt = <1>;
  126. };
  127. };
  128.  
  129. fragment@6 {
  130. target-path="/";
  131. __overlay__ {
  132. sound {
  133. compatible = "simple-audio-card";
  134. simple-audio-card,name = "Podtique Cape Rev A";
  135. simple-audio-card,widgets =
  136. "Speaker", "External Speaker";
  137. simple-audio-card,routing =
  138. "External Speaker", "LLOUT",
  139. "External Speaker", "RLOUT";
  140. simple-audio-card,format = "dsp_b";
  141. simple-audio-card,bitclock-master = <&sound_master>;
  142. simple-audio-card,frame-master = <&sound_master>;
  143. simple-audio-card,bitclock-inversion;
  144.  
  145. simple-audio-card,cpu {
  146. sound-dai = <&mcasp0>;
  147. };
  148.  
  149. sound_master: simple-audio-card,codec {
  150. sound-dai = <&tlv320aic3104>;
  151. system-clock-frequency = <12000000>;
  152. };
  153. };
  154. };
  155. };
  156.  
  157. fragment@7 {
  158. target = <&tscadc>;
  159. __overlay__ {
  160.  
  161. status = "okay";
  162. adc {
  163. ti,adc-channels = <0 1 2>;
  164. };
  165. };
  166. };
  167.  
  168. fragment@8 { // Enable the PRUSS
  169. target = <&pruss>;
  170. __overlay__ {
  171. status = "okay";
  172. };
  173. };
  174. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement