cs4271.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Cirrus Logic CS4271 DT bindings
  2. This driver supports both the I2C and the SPI bus.
  3. Required properties:
  4. - compatible: "cirrus,cs4271"
  5. For required properties on SPI, please consult
  6. Documentation/devicetree/bindings/spi/spi-bus.txt
  7. Required properties on I2C:
  8. - reg: the i2c address
  9. Optional properties:
  10. - reset-gpio: a GPIO spec to define which pin is connected to the chip's
  11. !RESET pin
  12. - cirrus,amuteb-eq-bmutec: When given, the Codec's AMUTEB=BMUTEC flag
  13. is enabled.
  14. - cirrus,enable-soft-reset:
  15. The CS4271 requires its LRCLK and MCLK to be stable before its RESET
  16. line is de-asserted. That also means that clocks cannot be changed
  17. without putting the chip back into hardware reset, which also requires
  18. a complete re-initialization of all registers.
  19. One (undocumented) workaround is to assert and de-assert the PDN bit
  20. in the MODE2 register. This workaround can be enabled with this DT
  21. property.
  22. Note that this is not needed in case the clocks are stable
  23. throughout the entire runtime of the codec.
  24. Examples:
  25. codec_i2c: cs4271@10 {
  26. compatible = "cirrus,cs4271";
  27. reg = <0x10>;
  28. reset-gpio = <&gpio 23 0>;
  29. };
  30. codec_spi: cs4271@0 {
  31. compatible = "cirrus,cs4271";
  32. reg = <0x0>;
  33. reset-gpio = <&gpio 23 0>;
  34. spi-max-frequency = <6000000>;
  35. };