| 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 |
|
| 7 |
title: Cirrus Logic cs530x family of audio ADCs |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Paul Handrigan <[email protected]> |
| 11 |
- [email protected] |
| 12 |
|
| 13 |
description: |
| 14 |
The CS530X devices are a family of high performance audio ADCs. |
| 15 |
|
| 16 |
allOf: |
| 17 |
- $ref: dai-common.yaml# |
| 18 |
- $ref: /schemas/spi/spi-peripheral-props.yaml# |
| 19 |
|
| 20 |
properties: |
| 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 |
|
| 69 |
required: |
| 70 |
- compatible |
| 71 |
- reg |
| 72 |
- "#sound-dai-cells" |
| 73 |
|
| 74 |
unevaluatedProperties: false |
| 75 |
|
| 76 |
examples: |
| 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 |
}; |