axentia,tse850-pcm5142.txt 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Devicetree bindings for the Axentia TSE-850 audio complex
  2. Required properties:
  3. - compatible: "axentia,tse850-pcm5142"
  4. - axentia,cpu-dai: The phandle of the cpu dai.
  5. - axentia,audio-codec: The phandle of the PCM5142 codec.
  6. - axentia,add-gpios: gpio specifier that controls the mixer.
  7. - axentia,loop1-gpios: gpio specifier that controls loop relays on channel 1.
  8. - axentia,loop2-gpios: gpio specifier that controls loop relays on channel 2.
  9. - axentia,ana-supply: Regulator that supplies the output amplifier. Must
  10. support voltages in the 2V - 20V range, in 1V steps.
  11. The schematics explaining the gpios are as follows:
  12. loop1 relays
  13. IN1 +---o +------------+ o---+ OUT1
  14. \ /
  15. + +
  16. | / |
  17. +--o +--. |
  18. | add | |
  19. | V |
  20. | .---. |
  21. DAC +----------->|Sum|---+
  22. | '---' |
  23. | |
  24. + +
  25. IN2 +---o--+------------+--o---+ OUT2
  26. loop2 relays
  27. The 'loop1' gpio pin controlls two relays, which are either in loop position,
  28. meaning that input and output are directly connected, or they are in mixer
  29. position, meaning that the signal is passed through the 'Sum' mixer. Similarly
  30. for 'loop2'.
  31. In the above, the 'loop1' relays are inactive, thus feeding IN1 to the mixer
  32. (if 'add' is active) and feeding the mixer output to OUT1. The 'loop2' relays
  33. are active, short-cutting the TSE-850 from channel 2. IN1, IN2, OUT1 and OUT2
  34. are TSE-850 connectors and DAC is the PCB name of the (filtered) output from
  35. the PCM5142 codec.
  36. Example:
  37. &ssc0 {
  38. #sound-dai-cells = <0>;
  39. };
  40. &i2c {
  41. codec: pcm5142@4c {
  42. compatible = "ti,pcm5142";
  43. reg = <0x4c>;
  44. AVDD-supply = <&reg_3v3>;
  45. DVDD-supply = <&reg_3v3>;
  46. CPVDD-supply = <&reg_3v3>;
  47. clocks = <&sck>;
  48. pll-in = <3>;
  49. pll-out = <6>;
  50. };
  51. };
  52. ana: ana-reg {
  53. compatible = "pwm-regulator";
  54. regulator-name = "ANA";
  55. pwms = <&pwm0 2 1000 PWM_POLARITY_INVERTED>;
  56. pwm-dutycycle-unit = <1000>;
  57. pwm-dutycycle-range = <100 1000>;
  58. regulator-min-microvolt = <2000000>;
  59. regulator-max-microvolt = <20000000>;
  60. regulator-ramp-delay = <1000>;
  61. };
  62. sound {
  63. compatible = "axentia,tse850-pcm5142";
  64. axentia,cpu-dai = <&ssc0>;
  65. axentia,audio-codec = <&codec>;
  66. axentia,add-gpios = <&pioA 8 GPIO_ACTIVE_LOW>;
  67. axentia,loop1-gpios = <&pioA 10 GPIO_ACTIVE_LOW>;
  68. axentia,loop2-gpios = <&pioA 11 GPIO_ACTIVE_LOW>;
  69. axentia,ana-supply = <&ana>;
  70. };