1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/cirrus,cs4271.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Cirrus Logic CS4271 audio CODEC
10 - Alexander Sverdlin <alexander.sverdlin@gmail.com>
11 - Nikita Shubin <nikita.shubin@maquefel.me>
14 The CS4271 is a stereo audio codec. This device supports both the I2C
18 - $ref: dai-common.yaml#
19 - $ref: /schemas/spi/spi-peripheral-props.yaml#
37 This pin will be deasserted before communication to the codec starts.
41 description: Analog power supply.
44 description: Digital power supply.
47 description: Serial Control Port power supply.
50 $ref: audio-graph-port.yaml#
51 unevaluatedProperties: false
53 cirrus,amuteb-eq-bmutec:
55 When given, the Codec's AMUTEB=BMUTEC flag is enabled.
58 cirrus,enable-soft-reset:
60 The CS4271 requires its LRCLK and MCLK to be stable before its RESET
61 line is de-asserted. That also means that clocks cannot be changed
62 without putting the chip back into hardware reset, which also requires
63 a complete re-initialization of all registers.
65 One (undocumented) workaround is to assert and de-assert the PDN bit
66 in the MODE2 register. This workaround can be enabled with this DT
69 Note that this is not needed in case the clocks are stable
70 throughout the entire runtime of the codec.
77 unevaluatedProperties: false
81 #include <dt-bindings/gpio/gpio.h>
86 compatible = "cirrus,cs4271";
88 #sound-dai-cells = <0>;
89 spi-max-frequency = <6000000>;
92 reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
95 remote-endpoint = <&i2s_ep>;