Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [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,es8328.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Everest ES8328 audio CODEC |
| 8 | |
| 9 | description: |
| 10 | Everest Audio Codec, which can be connected via I2C or SPI. |
| 11 | Pins on the device (for linking into audio routes) are |
| 12 | * LOUT1 |
| 13 | * LOUT2 |
| 14 | * ROUT1 |
| 15 | * ROUT2 |
| 16 | * LINPUT1 |
| 17 | * RINPUT1 |
| 18 | * LINPUT2 |
| 19 | * RINPUT2 |
| 20 | * Mic Bias |
| 21 | |
| 22 | maintainers: |
| 23 | - David Yang <yangxiaohua@everest-semi.com> |
| 24 | |
| 25 | properties: |
| 26 | compatible: |
| 27 | enum: |
| 28 | - everest,es8328 |
| 29 | - everest,es8388 |
| 30 | |
| 31 | reg: |
| 32 | maxItems: 1 |
| 33 | |
| 34 | "#sound-dai-cells": |
| 35 | const: 0 |
| 36 | |
| 37 | clocks: |
| 38 | items: |
| 39 | - description: A 22.5792 or 11.2896 MHz clock |
| 40 | |
| 41 | DVDD-supply: |
| 42 | description: Regulator providing digital core supply voltage 1.8 - 3.6V |
| 43 | |
| 44 | AVDD-supply: |
| 45 | description: Regulator providing analog supply voltage 3.3V |
| 46 | |
| 47 | PVDD-supply: |
| 48 | description: Regulator providing digital IO supply voltage 1.8 - 3.6V |
| 49 | |
| 50 | HPVDD-supply: |
| 51 | description: Regulator providing analog output voltage 3.3V |
| 52 | |
| 53 | required: |
| 54 | - compatible |
| 55 | - clocks |
| 56 | - DVDD-supply |
| 57 | - AVDD-supply |
| 58 | - PVDD-supply |
| 59 | - HPVDD-supply |
| 60 | |
| 61 | additionalProperties: false |
| 62 | |
| 63 | examples: |
| 64 | - | |
| 65 | i2c { |
| 66 | #address-cells = <1>; |
| 67 | #size-cells = <0>; |
| 68 | es8328: codec@11 { |
| 69 | compatible = "everest,es8328"; |
| 70 | reg = <0x11>; |
| 71 | AVDD-supply = <®_3p3v>; |
| 72 | DVDD-supply = <®_3p3v>; |
| 73 | HPVDD-supply = <®_3p3v>; |
| 74 | PVDD-supply = <®_3p3v>; |
| 75 | clocks = <&clks 169>; |
| 76 | }; |
| 77 | }; |