| 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,es7241.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Everest ES7241 2 channels I2S analog to digital converter |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Neil Armstrong <[email protected]> |
| 11 |
|
| 12 |
properties: |
| 13 |
compatible: |
| 14 |
enum: |
| 15 |
- everest,es7241 |
| 16 |
|
| 17 |
reset-gpios: |
| 18 |
maxItems: 1 |
| 19 |
description: GPIO connected to the reset pin |
| 20 |
|
| 21 |
m0-gpios: |
| 22 |
maxItems: 1 |
| 23 |
description: GPIO connected to the m0 pin |
| 24 |
|
| 25 |
m1-gpios: |
| 26 |
maxItems: 1 |
| 27 |
description: GPIO connected to the m0 pin |
| 28 |
|
| 29 |
everest,sdout-pull-down: |
| 30 |
type: boolean |
| 31 |
description: |
| 32 |
Format used by the serial interface is controlled by pulling |
| 33 |
the sdout. If the sdout is pulled down, leftj format is used. |
| 34 |
If this property is not provided, sdout is assumed to pulled |
| 35 |
up and i2s format is used |
| 36 |
|
| 37 |
VDDP-supply: true |
| 38 |
VDDA-supply: true |
| 39 |
VDDD-supply: true |
| 40 |
|
| 41 |
'#sound-dai-cells': |
| 42 |
const: 0 |
| 43 |
|
| 44 |
required: |
| 45 |
- compatible |
| 46 |
- VDDP-supply |
| 47 |
- VDDA-supply |
| 48 |
- VDDD-supply |
| 49 |
|
| 50 |
allOf: |
| 51 |
- $ref: dai-common.yaml# |
| 52 |
|
| 53 |
unevaluatedProperties: false |
| 54 |
|
| 55 |
examples: |
| 56 |
- | |
| 57 |
#include <dt-bindings/gpio/gpio.h> |
| 58 |
|
| 59 |
codec { |
| 60 |
compatible = "everest,es7241"; |
| 61 |
#sound-dai-cells = <0>; |
| 62 |
reset-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; |
| 63 |
VDDP-supply = <&vddp_supply>; |
| 64 |
VDDA-supply = <&vdda_supply>; |
| 65 |
VDDD-supply = <&vddd_supply>; |
| 66 |
}; |
| 67 |
|
| 68 |
... |