File Index
Files and directories
Sign in
FILE

cirrus,cs530x.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/sound/cirrus,cs530x.yaml YAML
 1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
 2%YAML 1.2
 3---
 4$id: http://devicetree.org/schemas/sound/cirrus,cs530x.yaml#
 5$schema: http://devicetree.org/meta-schemas/core.yaml#
 6
 7title: Cirrus Logic cs530x family of audio ADCs
 8
 9maintainers:
10  - Paul Handrigan <paulha@opensource.cirrus.com>
11  - patches@opensource.cirrus.com
12
13description:
14  The CS530X devices are a family of high performance audio ADCs.
15
16allOf:
17  - $ref: dai-common.yaml#
18  - $ref: /schemas/spi/spi-peripheral-props.yaml#
19
20properties:
21  compatible:
22    enum:
23      - cirrus,cs4282
24      - cirrus,cs4302
25      - cirrus,cs4304
26      - cirrus,cs4308
27      - cirrus,cs5302
28      - cirrus,cs5304
29      - cirrus,cs5308
30
31  reg:
32    maxItems: 1
33
34  spi-max-frequency:
35    maximum: 24000000
36
37  '#sound-dai-cells':
38    const: 1
39
40  reset-gpios:
41    maxItems: 1
42
43  vdd-a-supply:
44    description: Analog power supply
45
46  vdd-io-supply:
47    description: Digital IO power supply
48
49  cirrus,in-hiz-pin12:
50    description:
51      Sets input channels one and two to high impedance.
52    type: boolean
53
54  cirrus,in-hiz-pin34:
55    description:
56      Sets input channels three and four to high impedance.
57    type: boolean
58
59  cirrus,in-hiz-pin56:
60    description:
61      Sets input channels five and six to high impedance.
62    type: boolean
63
64  cirrus,in-hiz-pin78:
65    description:
66      Sets input channels seven and eight to high impedance.
67    type: boolean
68
69required:
70  - compatible
71  - reg
72  - "#sound-dai-cells"
73
74unevaluatedProperties: false
75
76examples:
77  - |
78    #include <dt-bindings/gpio/gpio.h>
79
80    i2c {
81        #address-cells = <1>;
82        #size-cells = <0>;
83
84        cs5304: adc@48 {
85            compatible = "cirrus,cs5304";
86            reg = <0x48>;
87            #sound-dai-cells = <1>;
88            reset-gpios = <&gpio 110 GPIO_ACTIVE_LOW>;
89            vdd-a-supply = <&vreg>;
90            vdd-io-supply = <&vreg>;
91            cirrus,in-hiz-pin34;
92        };
93    };
~/ Read-only file preview.