Advertisement
Guest User

tlv320_overlay.dts

a guest
May 12th, 2025
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. /dts-v1/;
  2. /plugin/;
  3.  
  4. / {
  5. compatible = "brcm,bcm2835";
  6.  
  7. fragment@0 {
  8. target = <&i2s>;
  9. overlay {
  10. status = "okay";
  11. #sound-dai-cells = <0>;
  12. };
  13. };
  14.  
  15. fragment@1 {
  16. target-path = "/"; /* just а nodelabel definition /
  17. overlay {
  18. adc3140_mclk: adc3140-mclk {
  19. compatible = "fixed-clock";
  20. #clock-cells = <0>;
  21. clock-frequency = <12288000>; / 12.288 MHz /
  22. };
  23. };
  24. };
  25.  
  26. fragment@2 {
  27. target = <&sound>;
  28. overlay {
  29. compatible = "simple-audio-card";
  30. simple-audio-card,name = "TLV320ADC3140";
  31. simple-audio-card,format = "dsp_a"; / DSP_A = 4-channel TDM /
  32. simple-audio-card,dai-tdm-slot-num = <4>;
  33. simple-audio-card,dai-tdm-slot-width = <32>;
  34. simple-audio-card,bitclock-master = <&adc3140>;
  35. simple-audio-card,frame-master = <&adc3140>;
  36.  
  37. simple-audio-card,cpu {
  38. sound-dai = <&i2s>;
  39. };
  40.  
  41. simple-audio-card,codec {
  42. sound-dai = <&adc3140>;
  43. clocks = <&adc3140_mclk>;
  44. #clock-cells = <0>;
  45. };
  46. };
  47. };
  48.  
  49. fragment@3 {
  50. target = <&i2c1>; / or &i2c0 depending on wire setup /
  51. overlay {
  52. status = "okay";
  53. };
  54. };
  55.  
  56. fragment@4 {
  57. / PHY node for the TLV320ADC3140 /
  58. target-path = "/";
  59. overlay {
  60. adc3140: tlv320adc3140@4c {
  61. compatible = "ti,tlv320adc3140";
  62. reg = <0x4c>; / I²C adress /
  63. #sound-dai-cells = <0>;
  64. ti,use-internal-areg; / internal LDO /
  65. ti,mic-bias-source = <6>; / MICBIAS to pin 6 */
  66. iov-supply = <&reg_3v3>;
  67. ldoin-supply = <&reg_3v3>;
  68. };
  69. };
  70.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement