Advertisement
JetForMe

Untitled

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