Based on kernel version 6.11
. Page generated on 2024-09-24 08:21 EST
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | Cirrus Logic CS4271 DT bindings This driver supports both the I2C and the SPI bus. Required properties: - compatible: "cirrus,cs4271" For required properties on SPI, please consult Documentation/devicetree/bindings/spi/spi-bus.txt Required properties on I2C: - reg: the i2c address Optional properties: - reset-gpio: a GPIO spec to define which pin is connected to the chip's !RESET pin - cirrus,amuteb-eq-bmutec: When given, the Codec's AMUTEB=BMUTEC flag is enabled. - cirrus,enable-soft-reset: The CS4271 requires its LRCLK and MCLK to be stable before its RESET line is de-asserted. That also means that clocks cannot be changed without putting the chip back into hardware reset, which also requires a complete re-initialization of all registers. One (undocumented) workaround is to assert and de-assert the PDN bit in the MODE2 register. This workaround can be enabled with this DT property. Note that this is not needed in case the clocks are stable throughout the entire runtime of the codec. - vd-supply: Digital power - vl-supply: Logic power - va-supply: Analog Power Examples: codec_i2c: cs4271@10 { compatible = "cirrus,cs4271"; reg = <0x10>; reset-gpio = <&gpio 23 0>; vd-supply = <&vdd_3v3_reg>; vl-supply = <&vdd_3v3_reg>; va-supply = <&vdd_3v3_reg>; }; codec_spi: cs4271@0 { compatible = "cirrus,cs4271"; reg = <0x0>; reset-gpio = <&gpio 23 0>; spi-max-frequency = <6000000>; }; |