Stephan Gerhold | 17ba36b | 2021-05-13 12:41:28 +0200 | [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/nxp,tfa989x.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: NXP/Goodix TFA989X (TFA1) Audio Amplifiers |
| 8 | |
| 9 | maintainers: |
| 10 | - Stephan Gerhold <stephan@gerhold.net> |
| 11 | |
| 12 | properties: |
| 13 | compatible: |
| 14 | enum: |
| 15 | - nxp,tfa9895 |
| 16 | |
| 17 | reg: |
| 18 | maxItems: 1 |
| 19 | |
| 20 | '#sound-dai-cells': |
| 21 | const: 0 |
| 22 | |
| 23 | sound-name-prefix: |
| 24 | $ref: /schemas/types.yaml#/definitions/string |
| 25 | description: |
| 26 | Used as prefix for sink/source names of the component. Must be a |
| 27 | unique string among multiple instances of the same component. |
| 28 | |
| 29 | required: |
| 30 | - compatible |
| 31 | - reg |
| 32 | - '#sound-dai-cells' |
| 33 | |
| 34 | additionalProperties: false |
| 35 | |
| 36 | examples: |
| 37 | - | |
| 38 | i2c { |
| 39 | #address-cells = <1>; |
| 40 | #size-cells = <0>; |
| 41 | |
| 42 | audio-codec@34 { |
| 43 | compatible = "nxp,tfa9895"; |
| 44 | reg = <0x34>; |
| 45 | sound-name-prefix = "Speaker Left"; |
| 46 | #sound-dai-cells = <0>; |
| 47 | }; |
| 48 | audio-codec@36 { |
| 49 | compatible = "nxp,tfa9895"; |
| 50 | reg = <0x36>; |
| 51 | sound-name-prefix = "Speaker Right"; |
| 52 | #sound-dai-cells = <0>; |
| 53 | }; |
| 54 | }; |