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/ti,tas57xx.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Texas Instruments TAS5711/TAS5717/TAS5719/TAS5721 stereo power amplifiers |
| 8 | |
| 9 | maintainers: |
| 10 | - Neil Armstrong <neil.armstrong@linaro.org> |
| 11 | |
| 12 | properties: |
| 13 | compatible: |
| 14 | enum: |
| 15 | - ti,tas5707 |
| 16 | - ti,tas5711 |
| 17 | - ti,tas5717 |
| 18 | - ti,tas5719 |
| 19 | - ti,tas5721 |
| 20 | - ti,tas5733 |
| 21 | |
| 22 | reg: |
| 23 | maxItems: 1 |
| 24 | |
| 25 | reset-gpios: |
| 26 | maxItems: 1 |
| 27 | description: GPIO for the active low reset line |
| 28 | |
| 29 | pdn-gpios: |
| 30 | maxItems: 1 |
| 31 | description: GPIO for the active low powerdown line |
| 32 | |
| 33 | clocks: |
| 34 | maxItems: 1 |
| 35 | |
| 36 | clock-names: |
| 37 | const: mclk |
| 38 | |
| 39 | AVDD-supply: true |
| 40 | DVDD-supply: true |
| 41 | HPVDD-supply: true |
| 42 | PVDD_AB-supply: true |
| 43 | PVDD_CD-supply: true |
| 44 | PVDD_A-supply: true |
| 45 | PVDD_B-supply: true |
| 46 | PVDD_C-supply: true |
| 47 | PVDD_D-supply: true |
| 48 | DRVDD-supply: true |
| 49 | PVDD-supply: true |
| 50 | |
| 51 | '#sound-dai-cells': |
| 52 | const: 0 |
| 53 | |
| 54 | port: |
| 55 | $ref: audio-graph-port.yaml# |
| 56 | unevaluatedProperties: false |
| 57 | |
| 58 | required: |
| 59 | - compatible |
| 60 | - reg |
| 61 | - '#sound-dai-cells' |
| 62 | |
| 63 | allOf: |
| 64 | - $ref: dai-common.yaml# |
| 65 | - if: |
| 66 | properties: |
| 67 | compatible: |
| 68 | contains: |
| 69 | enum: |
| 70 | - ti,tas5717 |
| 71 | - ti,tas5719 |
| 72 | then: |
| 73 | properties: |
| 74 | PVDD_A-supply: false |
| 75 | PVDD_B-supply: false |
| 76 | PVDD_C-supply: false |
| 77 | PVDD_D-supply: false |
| 78 | DRVDD-supply: false |
| 79 | PVDD-supply: false |
| 80 | |
| 81 | - if: |
| 82 | properties: |
| 83 | compatible: |
| 84 | contains: |
| 85 | enum: |
| 86 | - ti,tas5711 |
| 87 | then: |
| 88 | properties: |
| 89 | HPVDD-supply: false |
| 90 | PVDD_AB-supply: false |
| 91 | PVDD_CD-supply: false |
| 92 | DRVDD-supply: false |
| 93 | PVDD-supply: false |
| 94 | |
| 95 | - if: |
| 96 | properties: |
| 97 | compatible: |
| 98 | contains: |
| 99 | enum: |
| 100 | - ti,tas5721 |
| 101 | then: |
| 102 | properties: |
| 103 | HPVDD-supply: false |
| 104 | PVDD_AB-supply: false |
| 105 | PVDD_CD-supply: false |
| 106 | PVDD_A-supply: false |
| 107 | PVDD_B-supply: false |
| 108 | PVDD_C-supply: false |
| 109 | PVDD_D-supply: false |
| 110 | |
| 111 | unevaluatedProperties: false |
| 112 | |
| 113 | examples: |
| 114 | - | |
| 115 | i2c { |
| 116 | #address-cells = <1>; |
| 117 | #size-cells = <0>; |
| 118 | |
| 119 | codec@2a { |
| 120 | compatible = "ti,tas5717"; |
| 121 | reg = <0x2a>; |
| 122 | #sound-dai-cells = <0>; |
| 123 | reset-gpios = <&gpio1 15 0>; |
| 124 | pdn-gpios = <&gpio1 15 0>; |
| 125 | AVDD-supply = <&avdd_supply>; |
| 126 | DVDD-supply = <&dvdd_supply>; |
| 127 | HPVDD-supply = <&hpvdd_supply>; |
| 128 | PVDD_AB-supply = <&pvdd_ab_supply>; |
| 129 | PVDD_CD-supply = <&pvdd_cd_supply>; |
| 130 | }; |
| 131 | }; |
| 132 | |
| 133 | ... |