Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/sound/everest,es71x4.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Everest ES7134/7144/7154 2 channels I2S analog to digital converter |
| 8 | |
| 9 | maintainers: |
| 10 | - Neil Armstrong <neil.armstrong@linaro.org> |
| 11 | |
| 12 | properties: |
| 13 | compatible: |
| 14 | enum: |
| 15 | - everest,es7134 |
| 16 | - everest,es7144 |
| 17 | - everest,es7154 |
| 18 | |
| 19 | VDD-supply: true |
| 20 | PVDD-supply: true |
| 21 | |
| 22 | '#sound-dai-cells': |
| 23 | const: 0 |
| 24 | |
| 25 | required: |
| 26 | - compatible |
| 27 | - VDD-supply |
| 28 | |
| 29 | allOf: |
| 30 | - $ref: dai-common.yaml# |
| 31 | - if: |
| 32 | properties: |
| 33 | compatible: |
| 34 | contains: |
| 35 | enum: |
| 36 | - everest,es7134 |
| 37 | - everest,es7144 |
| 38 | then: |
| 39 | properties: |
| 40 | PVDD-supply: false |
| 41 | |
| 42 | - if: |
| 43 | properties: |
| 44 | compatible: |
| 45 | contains: |
| 46 | enum: |
| 47 | - everest,es7154 |
| 48 | then: |
| 49 | required: |
| 50 | - PVDD-supply |
| 51 | |
| 52 | unevaluatedProperties: false |
| 53 | |
| 54 | examples: |
| 55 | - | |
| 56 | codec { |
| 57 | compatible = "everest,es7134"; |
| 58 | #sound-dai-cells = <0>; |
| 59 | VDD-supply = <&vdd_supply>; |
| 60 | }; |
| 61 | |
| 62 | ... |