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,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 <neil.armstrong@linaro.org> |
| 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 | codec { |
| 59 | compatible = "everest,es7241"; |
| 60 | #sound-dai-cells = <0>; |
| 61 | reset-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; |
| 62 | VDDP-supply = <&vddp_supply>; |
| 63 | VDDA-supply = <&vdda_supply>; |
| 64 | VDDD-supply = <&vddd_supply>; |
| 65 | }; |
| 66 | |
| 67 | ... |