wm8960-soundcard.dts 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /dts-v1/;
  2. /plugin/;
  3. / {
  4. compatible = "brcm,bcm2708";
  5. fragment@0 {
  6. target = <&i2s>;
  7. __overlay__ {
  8. status = "okay";
  9. };
  10. };
  11. fragment@1 {
  12. target-path="/";
  13. __overlay__ {
  14. wm8960_mclk: wm8960_mclk {
  15. compatible = "fixed-clock";
  16. #clock-cells = <0>;
  17. clock-frequency = <12288000>;
  18. };
  19. };
  20. };
  21. fragment@2 {
  22. target = <&i2c1>;
  23. __overlay__ {
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. status = "okay";
  27. wm8960: wm8960{
  28. compatible = "wlf,wm8960";
  29. reg = <0x1a>;
  30. #sound-dai-cells = <0>;
  31. AVDD-supply = <&vdd_5v0_reg>;
  32. DVDD-supply = <&vdd_3v3_reg>;
  33. };
  34. };
  35. };
  36. fragment@3 {
  37. target = <&sound>;
  38. slave_overlay: __overlay__ {
  39. compatible = "simple-audio-card";
  40. simple-audio-card,format = "i2s";
  41. simple-audio-card,name = "wm8960-soundcard";
  42. status = "okay";
  43. simple-audio-card,widgets =
  44. "Microphone", "Mic Jack",
  45. "Line", "Line In",
  46. "Line", "Line Out",
  47. "Speaker", "Speaker",
  48. "Headphone", "Headphone Jack";
  49. simple-audio-card,routing =
  50. "Headphone Jack", "HP_L",
  51. "Headphone Jack", "HP_R",
  52. "Speaker", "SPK_LP",
  53. "Speaker", "SPK_LN",
  54. "LINPUT1", "Mic Jack",
  55. "LINPUT3", "Mic Jack",
  56. "RINPUT1", "Mic Jack",
  57. "RINPUT2", "Mic Jack";
  58. simple-audio-card,cpu {
  59. sound-dai = <&i2s>;
  60. };
  61. dailink0_slave: simple-audio-card,codec {
  62. sound-dai = <&wm8960>;
  63. clocks = <&wm8960_mclk>;
  64. clock-names = "mclk";
  65. };
  66. };
  67. };
  68. __overrides__ {
  69. alsaname = <&slave_overlay>,"simple-audio-card,name";
  70. compatible = <&wm8960>,"compatible";
  71. master = <0>,"=2!3";
  72. };
  73. };