Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/sound/richtek,rtq9128.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Richtek RTQ9128 Automative Audio Power Amplifier |
| 8 | |
| 9 | maintainers: |
| 10 | - ChiYuan Huang <cy_huang@richtek.com> |
| 11 | |
| 12 | description: |
| 13 | The RTQ9128 is a ultra-low output noise, high-efficiency, four-channel |
| 14 | class-D audio power amplifier and delivering 4x75W into 4OHm at 10% |
| 15 | THD+N from a 25V supply in automotive applications. |
| 16 | |
| 17 | allOf: |
| 18 | - $ref: dai-common.yaml# |
| 19 | |
| 20 | properties: |
| 21 | compatible: |
| 22 | enum: |
| 23 | - richtek,rtq9128 |
| 24 | |
| 25 | reg: |
| 26 | maxItems: 1 |
| 27 | |
| 28 | enable-gpios: |
| 29 | maxItems: 1 |
| 30 | |
| 31 | richtek,tdm-input-data2-select: |
| 32 | type: boolean |
| 33 | description: |
| 34 | By default, if TDM mode is used, TDM data input will select 'DATA1' pin |
| 35 | as the data source. This option will configure TDM data input source from |
| 36 | 'DATA1' to 'DATA2' pin. |
| 37 | |
| 38 | '#sound-dai-cells': |
| 39 | const: 0 |
| 40 | |
| 41 | required: |
| 42 | - compatible |
| 43 | - reg |
| 44 | - '#sound-dai-cells' |
| 45 | |
| 46 | unevaluatedProperties: false |
| 47 | |
| 48 | examples: |
| 49 | - | |
| 50 | #include <dt-bindings/gpio/gpio.h> |
| 51 | i2c { |
| 52 | #address-cells = <1>; |
| 53 | #size-cells = <0>; |
| 54 | |
| 55 | speaker@1a { |
| 56 | compatible = "richtek,rtq9128"; |
| 57 | reg = <0x1a>; |
| 58 | enable-gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; |
| 59 | #sound-dai-cells = <0>; |
| 60 | }; |
| 61 | }; |