st,sta32x.txt 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. STA32X audio CODEC
  2. The driver for this device only supports I2C.
  3. Required properties:
  4. - compatible: "st,sta32x"
  5. - reg: the I2C address of the device for I2C
  6. - reset-gpios: a GPIO spec for the reset pin. If specified, it will be
  7. deasserted before communication to the codec starts.
  8. - power-down-gpios: a GPIO spec for the power down pin. If specified,
  9. it will be deasserted before communication to the codec
  10. starts.
  11. - Vdda-supply: regulator spec, providing 3.3V
  12. - Vdd3-supply: regulator spec, providing 3.3V
  13. - Vcc-supply: regulator spec, providing 5V - 26V
  14. Optional properties:
  15. - st,output-conf: number, Selects the output configuration:
  16. 0: 2-channel (full-bridge) power, 2-channel data-out
  17. 1: 2 (half-bridge). 1 (full-bridge) on-board power
  18. 2: 2 Channel (Full-Bridge) Power, 1 Channel FFX
  19. 3: 1 Channel Mono-Parallel
  20. If parameter is missing, mode 0 will be enabled.
  21. This property has to be specified as '/bits/ 8' value.
  22. - st,ch1-output-mapping: Channel 1 output mapping
  23. - st,ch2-output-mapping: Channel 2 output mapping
  24. - st,ch3-output-mapping: Channel 3 output mapping
  25. 0: Channel 1
  26. 1: Channel 2
  27. 2: Channel 3
  28. If parameter is missing, channel 1 is chosen.
  29. This properties have to be specified as '/bits/ 8' values.
  30. - st,thermal-warning-recover:
  31. If present, thermal warning recovery is enabled.
  32. - st,thermal-warning-adjustment:
  33. If present, thermal warning adjustment is enabled.
  34. - st,fault-detect-recovery:
  35. If present, then fault recovery will be enabled.
  36. - st,drop-compensation-ns: number
  37. Only required for "st,ffx-power-output-mode" ==
  38. "variable-drop-compensation".
  39. Specifies the drop compensation in nanoseconds.
  40. The value must be in the range of 0..300, and only
  41. multiples of 20 are allowed. Default is 140ns.
  42. - st,max-power-use-mpcc:
  43. If present, then MPCC bits are used for MPC coefficients,
  44. otherwise standard MPC coefficients are used.
  45. - st,max-power-corr:
  46. If present, power bridge correction for THD reduction near maximum
  47. power output is enabled.
  48. - st,am-reduction-mode:
  49. If present, FFX mode runs in AM reduction mode, otherwise normal
  50. FFX mode is used.
  51. - st,odd-pwm-speed-mode:
  52. If present, PWM speed mode run on odd speed mode (341.3 kHz) on all
  53. channels. If not present, normal PWM spped mode (384 kHz) will be used.
  54. - st,invalid-input-detect-mute:
  55. If present, automatic invalid input detect mute is enabled.
  56. Example:
  57. codec: sta32x@38 {
  58. compatible = "st,sta32x";
  59. reg = <0x1c>;
  60. reset-gpios = <&gpio1 19 0>;
  61. power-down-gpios = <&gpio1 16 0>;
  62. st,output-conf = /bits/ 8 <0x3>; // set output to 2-channel
  63. // (full-bridge) power,
  64. // 2-channel data-out
  65. st,ch1-output-mapping = /bits/ 8 <0>; // set channel 1 output ch 1
  66. st,ch2-output-mapping = /bits/ 8 <0>; // set channel 2 output ch 1
  67. st,ch3-output-mapping = /bits/ 8 <0>; // set channel 3 output ch 1
  68. st,max-power-correction; // enables power bridge
  69. // correction for THD reduction
  70. // near maximum power output
  71. st,invalid-input-detect-mute; // mute if no valid digital
  72. // audio signal is provided.
  73. };