diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/sound/cs4271.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/cs4271.txt b/Documentation/devicetree/bindings/sound/cs4271.txt new file mode 100644 index 000000000000..c81b5fd5a5bc --- /dev/null +++ b/Documentation/devicetree/bindings/sound/cs4271.txt | |||
@@ -0,0 +1,36 @@ | |||
1 | Cirrus Logic CS4271 DT bindings | ||
2 | |||
3 | This driver supports both the I2C and the SPI bus. | ||
4 | |||
5 | Required properties: | ||
6 | |||
7 | - compatible: "cirrus,cs4271" | ||
8 | |||
9 | For required properties on SPI, please consult | ||
10 | Documentation/devicetree/bindings/spi/spi-bus.txt | ||
11 | |||
12 | Required properties on I2C: | ||
13 | |||
14 | - reg: the i2c address | ||
15 | |||
16 | |||
17 | Optional properties: | ||
18 | |||
19 | - reset-gpio: a GPIO spec to define which pin is connected to the chip's | ||
20 | !RESET pin | ||
21 | |||
22 | Examples: | ||
23 | |||
24 | codec_i2c: cs4271@10 { | ||
25 | compatible = "cirrus,cs4271"; | ||
26 | reg = <0x10>; | ||
27 | reset-gpio = <&gpio 23 0>; | ||
28 | }; | ||
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 | }; | ||
36 | |||